services

package
v0.0.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 30, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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 (s *EntityService) UpdateEntity(orgID, entityID string, updates map[string]interface{}) (*ontology.Entity, error)

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 (*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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL