login

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: May 8, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNilLogin = errors.New("nil login function")
View Source
var SetAgent = gohttp.SetAgent

Functions

This section is empty.

Types

type Session

type Session struct {
	*gohttp.Session
	// contains filtered or unexported fields
}

func New

func New() *Session

func (*Session) Kaptcha

func (s *Session) Kaptcha(kaptcha func(*Session) (string, error)) error

func (*Session) Login

func (s *Session) Login() error

func (*Session) SetLogin

func (s *Session) SetLogin(fn func(*Session, any) error) *Session

func (*Session) SetRetryInterval

func (s *Session) SetRetryInterval(d time.Duration) *Session

func (*Session) SetSession

func (s *Session) SetSession(session *gohttp.Session) *Session

func (*Session) SetWrongRetry

func (s *Session) SetWrongRetry(n int) *Session

Jump to

Keyboard shortcuts

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