providers

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 12, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const Giphy_APIKey = "apiKey"
View Source
const ProviderTypeGiphy = "GIPHY"

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

type Factory interface {
	Hostname() string
}

type Giphy

type Giphy struct{}

func NewGiphy

func NewGiphy() Giphy

func (Giphy) AfterConnect

func (adapter Giphy) AfterConnect(factory Factory, client *model.Client) error

AfterCoonnect applies any extra changes to the database after this Adapter is activated.

func (Giphy) AfterUpdate

func (adapter Giphy) AfterUpdate(factory Factory, client *model.Client) error

AfterUpdate is called after a user has successfully updated their Twitter connection

func (Giphy) ManualConfig

func (adapter Giphy) ManualConfig() form.Form

func (Giphy) PollStreams

func (adapter Giphy) PollStreams(client *model.Client) <-chan model.Stream

type ManualProvider

type ManualProvider interface {
	ManualConfig() form.Form
}

type Null

type Null struct{}

func (Null) AfterConnect

func (adapter Null) AfterConnect(factory Factory, client *model.Client) error

func (Null) AfterUpdate

func (adapter Null) AfterUpdate(factory Factory, client *model.Client) error

func (Null) PollStreams

func (adapter Null) PollStreams(client *model.Client) <-chan model.Stream

type OAuthProvider

type OAuthProvider interface {
	OAuthConfig() oauth2.Config
}

type Provider

type Provider interface {

	// Lifecycle Methods
	AfterConnect(factory Factory, client *model.Client) error
	AfterUpdate(factory Factory, client *model.Client) error

	// Provider Methods
	PollStreams(client *model.Client) <-chan model.Stream
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL