Documentation ¶
Index ¶
Constants ¶
View Source
const ( ErrorService = "internal service error" ErrorNotFound = "event not found" ErrorEventExists = "event already exists" )
Event Service Error descriptions
View Source
const ServiceName = "event"
ServiceName of this service.
Variables ¶
View Source
var ( ErrService = errors.New(ErrorService) ErrNotFound = errors.New(ErrorNotFound) ErrEventExists = errors.New(ErrorEventExists) )
Event Service Errors
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service interface { Create(ctx context.Context, tenantID uuid.UUID, event Event) (*uuid.UUID, error) Get(ctx context.Context, tenantID, id uuid.UUID) (*Event, error) Update(ctx context.Context, tenantID uuid.UUID, event Event) error Delete(ctx context.Context, tenantID uuid.UUID, id uuid.UUID) error List(ctx context.Context, tenantID uuid.UUID) ([]*Event, error) }
Service describes our Event service.
Click to show internal directories.
Click to hide internal directories.