providers

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2022 License: BSD-3-Clause Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrProviderFail = errors.New("provider not found")
)

Functions

This section is empty.

Types

type IProvider

type IProvider interface {
	Code() string
	Config(config.ConfigItem)
	AuthCodeURL() string
	AuthCodeKey() string
	Exchange(string) (isp.IUser, error)
}

type IProviders

type IProviders interface {
	Get(string) (IProvider, error)
}

type Providers

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

func New

func New(c *config.Config) *Providers

func (*Providers) Add

func (v *Providers) Add(p ...IProvider)

func (*Providers) Get

func (v *Providers) Get(name string) (IProvider, error)

Directories

Path Synopsis
isp

Jump to

Keyboard shortcuts

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