providers

package
v0.0.0-...-081ecb4 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2020 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BasicFactory

type BasicFactory struct {
	// contains filtered or unexported fields
}

func NewBasicFactory

func NewBasicFactory(log logutil.Log) *BasicFactory

func (BasicFactory) Build

func (f BasicFactory) Build(auth *models.Auth) (provider.Provider, error)

func (BasicFactory) BuildForToken

func (f BasicFactory) BuildForToken(providerName, accessToken string) (provider.Provider, error)

func (BasicFactory) BuildForUser

func (f BasicFactory) BuildForUser(db *gorm.DB, userID uint) (provider.Provider, error)

type Factory

type Factory interface {
	Build(auth *models.Auth) (provider.Provider, error)
	BuildForUser(db *gorm.DB, userID uint) (provider.Provider, error)
	BuildForToken(providerName, accessToken string) (provider.Provider, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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