httpclient

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2022 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrWrongCaptcha the captcha is wrong
	ErrWrongCaptcha = errors.New("login: wrong captcha")
	// ErrCannotRecognizeCaptcha could not recognize captcha
	ErrCannotRecognizeCaptcha = errors.New("login: cannot recognize captcha")
)
View Source
var (
	//ErrIncompleteForm the form is incomplete
	ErrIncompleteForm = errors.New("form: incomplete form")
)

Functions

func LoginConfirm

func LoginConfirm(ctx context.Context, account interface{}) error

LoginConfirm 验证账号密码

func Punch

func Punch(ctx context.Context, account interface{}) (err error)

Punch 打卡

Types

type Account

type Account struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

Account account info for login

func (Account) Name

func (a Account) Name() string

Name get the name of the account

Jump to

Keyboard shortcuts

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