request

package
v0.0.0-...-a9153d3 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Request

type Request struct {
	*ResponseData
	*http.Response
	Errors []error
	*gorequest.SuperAgent
	// contains filtered or unexported fields
}

func New

func New() *Request

func (*Request) EndData

func (r *Request) EndData(u interface{})

func (*Request) SetToken

func (r *Request) SetToken(token string) *Request

type ResponseData

type ResponseData struct {
	Cache bool        `json:"cache"`
	Data  interface{} `json:"data"`
	Error int         `json:"error"`
	Msg   string      `json:"msg"`
}

Jump to

Keyboard shortcuts

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