Documentation
¶
Index ¶
- type App
- func (a *App) Create(pathname string, recursive bool, url string, types []provider.EventType) (string, error)
- func (a *App) Delete(id string) error
- func (a *App) Enabled() bool
- func (a *App) EventConsumer(e provider.Event)
- func (a *App) List() map[string]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 ¶
type App struct {
// contains filtered or unexported fields
}
App of package
func New ¶
func New(config Config, storageApp provider.Storage, prometheusRegisterer prometheus.Registerer) (*App, error)
New creates new App from Config
func (*App) Create ¶
func (a *App) Create(pathname string, recursive bool, 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.