Versions in this module Expand all Collapse all v2 v2.0.0 Dec 28, 2023 Changes in this version + const ConfigCookieJar + const ConfigURL + const DefaultRefreshFrequency + func New(opts ...digioauth.Option) (digioauth.LoginMethod, error) + func WithCancelOnClose(ctx context.Context, done <-chan struct{}) (context.Context, context.CancelFunc) + type HTTPError struct + Status int64 + StatusText string + func (e *HTTPError) Error() string + type InvalidTokenError struct + Token *oauth2.Token + func (e *InvalidTokenError) Error() string + type InvalidTypeOptionError struct + func (e *InvalidTypeOptionError) Error() string + type MissingOptionError struct + Option string + func (e *MissingOptionError) Error() string + func (e *MissingOptionError) Is(target error) bool + type Screen interface + CurrentPageMatches func(ctx context.Context) bool + ShouldWaitForResponse func() bool + type Screens struct + func (s *Screens) Resolve(ctx context.Context) + func (s *Screens) Succeeded() bool + type Validatable interface + Validate func() error + type WithCookies struct + Cookies []*http.Cookie + func (o *WithCookies) Apply(instance interface{}) error + type WithLoggers struct + Error *log.Logger + Info *log.Logger + func (o *WithLoggers) Apply(instance interface{}) error + type WithRefreshFrequency struct + Frequency time.Duration + func (o *WithRefreshFrequency) Apply(instance interface{}) error + func (o *WithRefreshFrequency) Validate() error + type WithScreenShortOnError struct + func (o *WithScreenShortOnError) Apply(instance interface{}) error + type WithScreenshotError struct + Err error + Screenshot []byte + func (e *WithScreenshotError) Error() string + func (e *WithScreenshotError) Unwrap() error + type WithTimeout struct + Timeout time.Duration + func (o *WithTimeout) Apply(instance interface{}) error + func (o *WithTimeout) Validate() error + type WithURL struct + URL string + func (o *WithURL) Apply(instance interface{}) error + func (o *WithURL) Validate() error