client

package
v0.0.0-...-d6720da Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultAppVersion = "2.9.310"
View Source
const DefaultDeviceToken = "ciweimao_"

Variables

View Source
var DefaultAccount string
View Source
var DefaultToken string

Functions

This section is empty.

Types

type Client

type Client struct {
	ServerURL  string
	Result     interface{}
	QueryValue url.Values
	http.Client
}

func Get

func Get(url string, query url.Values) *Client

func InitClient

func InitClient(Method, urlPath string, dataQuery url.Values) *Client

func Post

func Post(url string, query url.Values) *Client

func Put

func Put(url string, query url.Values) *Client

func (*Client) Dict

func (c *Client) Dict() map[string]interface{}

func (*Client) Json

func (c *Client) Json() gjson.Result

func (*Client) NewDict

func (c *Client) NewDict() map[string]interface{}

func (*Client) NewJson

func (c *Client) NewJson() gjson.Result

func (*Client) NewRequest

func (c *Client) NewRequest(Method, urlPath string) *Client

func (*Client) NewSendRequest

func (c *Client) NewSendRequest(req *http.Request) bool

func (*Client) SetAppParams

func (c *Client) SetAppParams()

func (*Client) String

func (c *Client) String() string

Jump to

Keyboard shortcuts

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