Documentation
¶
Index ¶
- type App
- func (a *App) AmqpHandler(message amqp.Delivery) error
- func (a *App) Create(ctx context.Context, pathname string, recursive bool, ...) (string, error)
- func (a *App) Delete(ctx context.Context, id string) error
- func (a *App) EventConsumer(ctx context.Context, event provider.Event)
- func (a *App) Exclusive(ctx context.Context, name string, duration time.Duration, ...) error
- func (a *App) List() (webhooks []provider.Webhook)
- func (a *App) Start(_ <-chan struct{})
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
App of package
func New ¶
func New(config Config, storageApp absto.Storage, prometheusRegisterer prometheus.Registerer, amqpClient *amqp.Client, rendererApp renderer.App, thumbnailApp thumbnail.App) (*App, error)
New creates new App from Config
func (*App) AmqpHandler ¶ added in v0.11.0
AmqpHandler handle exif message
func (*App) Create ¶
func (a *App) Create(ctx context.Context, pathname string, recursive bool, kind provider.WebhookKind, url string, types []provider.EventType) (string, error)
Create a webhook
func (*App) EventConsumer ¶
EventConsumer handle event pushed to the event bus
Click to show internal directories.
Click to hide internal directories.