webhook

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2024 License: MIT Imports: 23 Imported by: 1 module, 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

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	HmacSecret    string
	PubsubChannel string
}

func Flags

func Flags(fs *flag.FlagSet, prefix string) *Config

type Service added in v0.26.0

type Service struct {
	// contains filtered or unexported fields
}

func New

func New(config *Config, storageService absto.Storage, meterProvider metric.MeterProvider, redisClient redis.Client, rendererService *renderer.Service, thumbnailService thumbnail.Service, exclusiveApp exclusive.Service) *Service

func (*Service) Create added in v0.26.0

func (s *Service) Create(ctx context.Context, pathname string, recursive bool, kind provider.WebhookKind, url string, types []provider.EventType) (string, error)

func (*Service) Delete added in v0.26.0

func (s *Service) Delete(ctx context.Context, id string) error

func (*Service) Done added in v0.26.0

func (s *Service) Done() <-chan struct{}

func (*Service) EventConsumer added in v0.26.0

func (s *Service) EventConsumer(ctx context.Context, event provider.Event)

func (*Service) Exclusive added in v0.26.0

func (s *Service) Exclusive(ctx context.Context, name string, action func(ctx context.Context) error) error

func (*Service) List added in v0.26.0

func (s *Service) List() (output []provider.Webhook)

func (*Service) PubSubHandle added in v0.26.0

func (s *Service) PubSubHandle(webhook provider.Webhook, err error)

func (*Service) Start added in v0.26.0

func (s *Service) Start(ctx context.Context)

Jump to

Keyboard shortcuts

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