client

package
v3.0.8-alpha.10+incomp... Latest Latest
Warning

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

Go to latest
Published: May 28, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Err_Not_Found_Anything = errors.New("found nothing")
	Err_Not_Set_Input      = errors.New("input nothing")
	Err_Not_Set_ObjID      = errors.New("not set objid")
	Err_Request_Object     = errors.New("http request failed")
	Err_Decode_Json        = errors.New("decode json failed")
	Err_Creaate_Object     = errors.New("create object failed")
	Err_Request            = errors.New("request failed, error")
)

Functions

This section is empty.

Types

type Client

type Client struct {
	Base base.BaseLogic
	// contains filtered or unexported fields
}

Client

func (*Client) GetAddress

func (cli *Client) GetAddress() string

func (*Client) GetRequestInfo

func (cli *Client) GetRequestInfo(method string, data interface{}, url string) (interface{}, error)

func (*Client) GetRequestInfoEx

func (cli *Client) GetRequestInfoEx(method string, data interface{}, url string) (int, *common.APIRsp, error)

GetRequestInfoEx 获取http调用返回值, httpcode, 内容,error

func (*Client) SetAddress

func (cli *Client) SetAddress(address string)

SetAddress

Jump to

Keyboard shortcuts

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