request

package
v0.0.0-...-50172b1 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DomainID

type DomainID string

type Info

type Info struct {
	ID           DomainID
	Domain       string
	Status       string
	IsEnterprise bool
	PayStatus    string
}

type Request

type Request struct {
	// contains filtered or unexported fields
}

func (*Request) DELETE

func (r *Request) DELETE(addr string) (Response, error)

func (*Request) DomainIDFetch

func (r *Request) DomainIDFetch(domain string) (DomainID, error)

func (*Request) FetchInfo

func (r *Request) FetchInfo(domain string) (Info, error)

func (*Request) GET

func (r *Request) GET(addr string) (Response, error)

func (*Request) IsEnterprise

func (r *Request) IsEnterprise(domain string) (bool, error)

func (*Request) PATCH

func (r *Request) PATCH(addr string, body io.Reader) (Response, error)

func (*Request) POST

func (r *Request) POST(addr string, body io.Reader) (Response, error)

func (*Request) PUT

func (r *Request) PUT(addr string, body io.Reader) (Response, error)

func (*Request) RequestRaw

func (r *Request) RequestRaw(m, addr string, body io.Reader) (Response, error)

func (*Request) SetEmail

func (r *Request) SetEmail(str string)

func (*Request) SetInit

func (r *Request) SetInit()

func (*Request) SetKey

func (r *Request) SetKey(str string)

func (*Request) SetTimeout

func (r *Request) SetTimeout(timeout time.Duration)

type Response

type Response struct {
	StatusCode int           /* http响应状态码 */
	SpentTime  time.Duration /* 请求总耗时 */
	Header     http.Header   /* 响应头 */
	Body       []byte        /* 响应体 */
}

Jump to

Keyboard shortcuts

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