hookproviderservice

package
v0.0.73 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidHook = errors.New("invalid remote hook data")
)

Functions

This section is empty.

Types

type Service

type Service interface {
	Create(ctx context.Context, hook *runtimetypes.RemoteHook) error
	Get(ctx context.Context, id string) (*runtimetypes.RemoteHook, error)
	GetByName(ctx context.Context, name string) (*runtimetypes.RemoteHook, error)
	Update(ctx context.Context, hook *runtimetypes.RemoteHook) error
	Delete(ctx context.Context, id string) error
	List(ctx context.Context, createdAtCursor *time.Time, limit int) ([]*runtimetypes.RemoteHook, error)
}

func New

func New(dbInstance 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