cloudflare

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Request

func Request(rq *ReqeustParam) (any, error)

Types

type Output

type Output struct {
	Datasets any
	Messages string `json:",omitempty"`
}

type OutputInfo

type OutputInfo struct {
	Page    int
	PerPage int
	Total   int
}

type OutputWithInfo

type OutputWithInfo struct {
	*Output
	DataInfo *OutputInfo
}

type ReqeustParam

type ReqeustParam struct {
	Token   string `note:"Api Token"`
	Method  string `binding:"required"`
	Path    string `binding:"required"`
	Query   string `note:"请求参数"`
	Payload json.RawMessage
}

type ResponseData

type ResponseData struct {
	Success    bool
	Errors     []ResponseInfo
	Messages   []ResponseInfo
	Result     any
	ResultInfo ResultInfo
}

type ResponseInfo

type ResponseInfo struct {
	Code    int
	Message string
}

type ResultInfo

type ResultInfo struct {
	Page       int
	PerPage    int
	TotalPages int
	Count      int
	Total      int
	Cursor     string
	Cursors    ResultInfoCursors
}

type ResultInfoCursors

type ResultInfoCursors struct {
	Before string
	After  string
}

Jump to

Keyboard shortcuts

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