Documentation
¶
Index ¶
- type Store
- func (s *Store) Delete(ctx context.Context, id string) error
- func (s *Store) Get(ctx context.Context, id string) (*webhook.Config, error)
- func (s *Store) List(ctx context.Context) ([]webhook.Config, error)
- func (s *Store) ListByEvent(ctx context.Context, event string) ([]webhook.Config, error)
- func (s *Store) Save(ctx 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 against PostgreSQL.
func (*Store) Delete ¶
Delete removes the webhook config with the given ID. Returns webhook.ErrNotFound if no row exists.
func (*Store) Get ¶
Get returns the webhook config with the given ID. Returns webhook.ErrNotFound if no row exists.
func (*Store) ListByEvent ¶
ListByEvent returns all active webhook configs subscribed to the given event.
Click to show internal directories.
Click to hide internal directories.