Documentation ¶
Index ¶
- Constants
- func New(opts ...digioauth.Option) (digioauth.LoginMethod, error)
- func WithCancelOnClose(ctx context.Context, done <-chan struct{}) (context.Context, context.CancelFunc)
- type HTTPError
- type InvalidTokenError
- type InvalidTypeOptionError
- type MissingOptionError
- type Screen
- type Screens
- type Validatable
- type WithCookies
- type WithLoggers
- type WithRefreshFrequency
- type WithScreenShortOnError
- type WithScreenshotError
- type WithTimeout
- type WithURL
Constants ¶
View Source
const ( ConfigURL = "url" ConfigCookieJar = "cookie" )
View Source
const ( // DefaultRefreshFrequency is the default refresh frequency for the login process. DefaultRefreshFrequency = 1500 * time.Millisecond )
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(opts ...digioauth.Option) (digioauth.LoginMethod, error)
New creates a new chrome login method. It requires chromedp to be installed.
func WithCancelOnClose ¶
Types ¶
type InvalidTokenError ¶
func (*InvalidTokenError) Error ¶
func (e *InvalidTokenError) Error() string
type InvalidTypeOptionError ¶
type InvalidTypeOptionError struct {
// contains filtered or unexported fields
}
func (*InvalidTypeOptionError) Error ¶
func (e *InvalidTypeOptionError) Error() string
type MissingOptionError ¶
type MissingOptionError struct {
Option string
}
func (*MissingOptionError) Error ¶
func (e *MissingOptionError) Error() string
func (*MissingOptionError) Is ¶
func (e *MissingOptionError) Is(target error) bool
type Validatable ¶
type Validatable interface {
Validate() error
}
type WithCookies ¶
func (*WithCookies) Apply ¶
func (o *WithCookies) Apply(instance interface{}) error
type WithLoggers ¶
func (*WithLoggers) Apply ¶
func (o *WithLoggers) Apply(instance interface{}) error
type WithRefreshFrequency ¶
func (*WithRefreshFrequency) Apply ¶
func (o *WithRefreshFrequency) Apply(instance interface{}) error
func (*WithRefreshFrequency) Validate ¶
func (o *WithRefreshFrequency) Validate() error
type WithScreenShortOnError ¶
type WithScreenShortOnError struct{}
func (*WithScreenShortOnError) Apply ¶
func (o *WithScreenShortOnError) Apply(instance interface{}) error
type WithScreenshotError ¶
func (*WithScreenshotError) Error ¶
func (e *WithScreenshotError) Error() string
func (*WithScreenshotError) Unwrap ¶
func (e *WithScreenshotError) Unwrap() error
type WithTimeout ¶
func (*WithTimeout) Apply ¶
func (o *WithTimeout) Apply(instance interface{}) error
func (*WithTimeout) Validate ¶
func (o *WithTimeout) Validate() error
Click to show internal directories.
Click to hide internal directories.