Documentation
¶
Overview ¶
Package notion implements a gateway.NotificationAdapter that polls the Notion API for recently updated pages and databases.
Index ¶
- type Adapter
- func (a *Adapter) Channels() []gateway.ChannelInfo
- func (a *Adapter) HTTPHandler() http.Handler
- func (a *Adapter) Name() string
- func (a *Adapter) Start(ctx context.Context, handler func(gateway.Notification)) error
- func (a *Adapter) Status() gateway.AdapterStatus
- func (a *Adapter) Stop() error
- func (a *Adapter) Type() gateway.AdapterType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter struct {
// contains filtered or unexported fields
}
Adapter implements gateway.NotificationAdapter for Notion polling.
func (*Adapter) Channels ¶
func (a *Adapter) Channels() []gateway.ChannelInfo
Channels returns the discoverable event channels.
func (*Adapter) HTTPHandler ¶
func (*Adapter) Start ¶
Start polls the Notion API on the configured interval until ctx is canceled.
func (*Adapter) Status ¶
func (a *Adapter) Status() gateway.AdapterStatus
Status returns connection state for the web UI.
func (*Adapter) Type ¶
func (a *Adapter) Type() gateway.AdapterType
Click to show internal directories.
Click to hide internal directories.