Documentation
¶
Overview ¶
Package notifykit is what notify adapters share. An adapter that posts to one place its configuration names, with nothing to connect and no channels to choose, embeds Unconnected for the methods it has no use for.
Index ¶
- type Unconnected
- func (u Unconnected) BeginAuthorization(context.Context, api.AuthorizationRequest) (api.Authorization, error)
- func (u Unconnected) Channels(context.Context, string) ([]api.NotifyChannel, error)
- func (u Unconnected) CompleteAuthorization(context.Context, api.AuthorizationCompletion) (api.AuthorizationResult, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Unconnected ¶
type Unconnected struct {
// Name is the adapter's provider, for messages.
Name string
}
Unconnected answers Channels and authorization for an adapter that takes neither: its configuration names the one place it posts, and it has nothing to connect.
func (Unconnected) BeginAuthorization ¶
func (u Unconnected) BeginAuthorization(context.Context, api.AuthorizationRequest) (api.Authorization, error)
func (Unconnected) Channels ¶
func (u Unconnected) Channels(context.Context, string) ([]api.NotifyChannel, error)
func (Unconnected) CompleteAuthorization ¶
func (u Unconnected) CompleteAuthorization(context.Context, api.AuthorizationCompletion) (api.AuthorizationResult, error)
Click to show internal directories.
Click to hide internal directories.