login

package
v0.0.0-...-3aef210 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Credentials

type Credentials struct {
	Username  string
	Password  string
	OTPSecret string
}

Credentials is the credentials to connect to digiposte.

type InvalidOptionError

type InvalidOptionError struct {
	Name string
	Err  error
}

func (*InvalidOptionError) Apply

func (e *InvalidOptionError) Apply(interface{}) error

func (*InvalidOptionError) Error

func (e *InvalidOptionError) Error() string

func (*InvalidOptionError) Unwrap

func (e *InvalidOptionError) Unwrap() error

type Method

type Method interface {
	Login(ctx context.Context, creds *Credentials) (*oauth2.Token, []*http.Cookie, error)
}

Method is the method to connect to digiposte.

type MethodFunc

type MethodFunc func(ctx context.Context, creds *Credentials) (*oauth2.Token, []*http.Cookie, error)

func (MethodFunc) Login

func (f MethodFunc) Login(ctx context.Context, creds *Credentials) (*oauth2.Token, []*http.Cookie, error)

type Option

type Option interface {
	Apply(instance interface{}) error
}

type OptionFunc

type OptionFunc func(instance interface{}) error

func (OptionFunc) Apply

func (f OptionFunc) Apply(instance interface{}) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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