Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Subscription ¶
type Subscription struct {
URL string `json:"url"`
EventTypes []string `json:"event_types"`
Schema string `json:"schema"`
Table string `json:"table"`
// Headers are optional HTTP headers sent on each webhook POST.
Headers map[string]string `json:"headers,omitempty"`
}
func (*Subscription) IsFor ¶
func (s *Subscription) IsFor(action, schema, table string) bool
func (*Subscription) Key ¶
func (s *Subscription) Key() string
Click to show internal directories.
Click to hide internal directories.