functionservice

package
v0.0.76 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2025 License: Apache-2.0 Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 New

func New(db libdb.DBManager) Service

func WithActivityTracker

func WithActivityTracker(service Service, tracker libtracker.ActivityTracker) Service

Jump to

Keyboard shortcuts

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