Documentation
¶
Overview ¶
Package twitter implements a gateway.NotificationAdapter that polls the Twitter API v2 mentions endpoint for new mentions.
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 Twitter API v2.
func (*Adapter) Channels ¶
func (a *Adapter) Channels() []gateway.ChannelInfo
Channels returns a single "mentions" channel.
func (*Adapter) HTTPHandler ¶
func (*Adapter) Status ¶
func (a *Adapter) Status() gateway.AdapterStatus
Status returns the adapter's connection state.
func (*Adapter) Type ¶
func (a *Adapter) Type() gateway.AdapterType
Click to show internal directories.
Click to hide internal directories.