http

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(config *Config) *client

Types

type Config

type Config struct {
	TimeOver int64
	TimeOut  int64
	Account  string            // 账号
	Pwd      string            // 密码
	Headers  map[string]string // request headers
}

type ServerResponse

type ServerResponse struct {
	Path     string      `json:"path"`
	BaseAuth bool        `json:"baseAuth"`
	Data     interface{} `json:"data"`
}

Jump to

Keyboard shortcuts

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