Documentation
¶
Index ¶
- type Store
- func (s *Store) Delete(_ context.Context, id string) error
- func (s *Store) Get(_ context.Context, id string) (*webhook.Config, error)
- func (s *Store) List(_ context.Context) ([]webhook.Config, error)
- func (s *Store) ListByEvent(_ context.Context, event string) ([]webhook.Config, error)
- func (s *Store) Save(_ context.Context, cfg *webhook.Config) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store implements webhook.Store using a mutex-protected slice.
func (*Store) Delete ¶
Delete removes the config with the given ID. Returns webhook.ErrNotFound if no config with that ID exists.
func (*Store) ListByEvent ¶
ListByEvent returns all active configs that subscribe to the given event.
Click to show internal directories.
Click to hide internal directories.