providers

package
v0.0.0-...-6a4a312 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrMissingDiscoveryEndpoint defines the error of an discovery endpoint is missing.
	ErrMissingDiscoveryEndpoint = fmt.Errorf("missing discovery endpoint")

	// Config stores the configuration mapped by the provider name for easier reference.
	Config = make(map[string]config.AuthProvider)
)

Functions

func Register

func Register(opts ...Option) error

Register does the registering of providers for goth.

Types

type Option

type Option func(o *Options)

Option defines a single option function.

func WithConfig

func WithConfig(v string) Option

WithConfig provides a function to set the config option.

type Options

type Options struct {
	Config string
}

Options defines the available options for this package.

type Providers

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

Providers simple stores the registered providers for goth.

Jump to

Keyboard shortcuts

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