Documentation
¶
Index ¶
- type EntityService
- func (s *EntityService) CreateEntity(orgID string, req *ontology.CreateEntityRequest) (*ontology.Entity, error)
- func (s *EntityService) DeleteEntity(orgID, entityID string) error
- func (s *EntityService) GetEntity(orgID, entityID string) (*ontology.Entity, error)
- func (s *EntityService) ListAllEntities() ([]ontology.Entity, error)
- func (s *EntityService) ListEntities(orgID string) ([]ontology.Entity, error)
- func (s *EntityService) UpdateEntity(orgID, entityID string, updates map[string]interface{}) (*ontology.Entity, error)
- func (s *EntityService) UpdateEntityStatus(orgID, entityID, status string) error
- type OrganizationService
- func (s *OrganizationService) CreateOrganization(req *ontology.CreateOrganizationRequest) (*ontology.Organization, error)
- func (s *OrganizationService) DB() *sql.DB
- func (s *OrganizationService) DeleteOrganization(orgID string) error
- func (s *OrganizationService) GetOrganization(orgID string) (*ontology.Organization, error)
- func (s *OrganizationService) ListOrganizations() ([]ontology.Organization, error)
- func (s *OrganizationService) UpdateOrganization(orgID string, updates map[string]interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EntityService ¶
type EntityService struct {
// contains filtered or unexported fields
}
func NewEntityService ¶
func NewEntityService(db *sql.DB, nats *embeddednats.EmbeddedNATS) *EntityService
func (*EntityService) CreateEntity ¶
func (s *EntityService) CreateEntity(orgID string, req *ontology.CreateEntityRequest) (*ontology.Entity, error)
func (*EntityService) DeleteEntity ¶
func (s *EntityService) DeleteEntity(orgID, entityID string) error
func (*EntityService) GetEntity ¶
func (s *EntityService) GetEntity(orgID, entityID string) (*ontology.Entity, error)
func (*EntityService) ListAllEntities ¶
func (s *EntityService) ListAllEntities() ([]ontology.Entity, error)
func (*EntityService) ListEntities ¶
func (s *EntityService) ListEntities(orgID string) ([]ontology.Entity, error)
func (*EntityService) UpdateEntity ¶
func (*EntityService) UpdateEntityStatus ¶
func (s *EntityService) UpdateEntityStatus(orgID, entityID, status string) error
type OrganizationService ¶
type OrganizationService struct {
// contains filtered or unexported fields
}
func NewOrganizationService ¶
func NewOrganizationService(db *sql.DB, nats *embeddednats.EmbeddedNATS) *OrganizationService
func (*OrganizationService) CreateOrganization ¶
func (s *OrganizationService) CreateOrganization(req *ontology.CreateOrganizationRequest) (*ontology.Organization, error)
func (*OrganizationService) DB ¶
func (s *OrganizationService) DB() *sql.DB
func (*OrganizationService) DeleteOrganization ¶
func (s *OrganizationService) DeleteOrganization(orgID string) error
func (*OrganizationService) GetOrganization ¶
func (s *OrganizationService) GetOrganization(orgID string) (*ontology.Organization, error)
func (*OrganizationService) ListOrganizations ¶
func (s *OrganizationService) ListOrganizations() ([]ontology.Organization, error)
func (*OrganizationService) UpdateOrganization ¶
func (s *OrganizationService) UpdateOrganization(orgID string, updates map[string]interface{}) error
Click to show internal directories.
Click to hide internal directories.