Documentation
¶
Index ¶
- Constants
- func DecomposeResp(response *http.Response, entity interface{}) error
- func GET(uri string, entity interface{}) error
- func GetHttpClient() *http.Client
- func MarshalNotHtml(data interface{}) ([]byte, error)
- func NewClient(conf *HttpConfig)
- func POST(ctx context.Context, uri string, params interface{}, entity interface{}) error
- func Request(uri string, method string, params interface{}, entity interface{}, ...) error
- type HttpConfig
- type R
Constants ¶
View Source
const ( Unknown = -1 NoAccess = -2 TokenFailure = -3 Success = 0 Error = 1 )
Variables ¶
This section is empty.
Functions ¶
func DecomposeResp ¶
func GetHttpClient ¶
func MarshalNotHtml ¶
MarshalNotHtml not encode html
Types ¶
type HttpConfig ¶
Click to show internal directories.
Click to hide internal directories.