Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidEventTrigger = errors.New("invalid event trigger data")
View Source
var ErrInvalidFunction = errors.New("invalid function data")
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service interface {
// Function management
CreateFunction(ctx context.Context, function *functionstore.Function) error
GetFunction(ctx context.Context, name string) (*functionstore.Function, error)
UpdateFunction(ctx context.Context, function *functionstore.Function) error
DeleteFunction(ctx context.Context, name string) error
ListFunctions(ctx context.Context, createdAtCursor *time.Time, limit int) ([]*functionstore.Function, error)
ListAllFunctions(ctx context.Context) ([]*functionstore.Function, error)
// Event trigger management
CreateEventTrigger(ctx context.Context, trigger *functionstore.EventTrigger) error
GetEventTrigger(ctx context.Context, name string) (*functionstore.EventTrigger, error)
UpdateEventTrigger(ctx context.Context, trigger *functionstore.EventTrigger) error
DeleteEventTrigger(ctx context.Context, name string) error
ListEventTriggers(ctx context.Context, createdAtCursor *time.Time, limit int) ([]*functionstore.EventTrigger, error)
ListAllEventTriggers(ctx context.Context) ([]*functionstore.EventTrigger, error)
ListEventTriggersByEventType(ctx context.Context, eventType string) ([]*functionstore.EventTrigger, error)
ListEventTriggersByFunction(ctx context.Context, functionName string) ([]*functionstore.EventTrigger, error)
}
func WithActivityTracker ¶
func WithActivityTracker(service Service, tracker libtracker.ActivityTracker) Service
Click to show internal directories.
Click to hide internal directories.