Documentation
¶
Index ¶
Constants ¶
View Source
const ( TimeoutDefault = 5 * time.Second SchemeDefault = "https" )
Variables ¶
This section is empty.
Functions ¶
func NewHttpClient ¶
func NewJsonClient ¶
func NewNopLogger ¶ added in v0.2.0
func NewNopLogger() *nopLogger
Types ¶
type HttpClient ¶
type JsonClient ¶
type JsonClient interface {
Delete(
path string,
param map[string]string,
header http.Header,
) (statusCode int, res interface{}, err error)
Get(
path string,
param map[string]string,
header http.Header,
) (statusCode int, res interface{}, err error)
Patch(
path string,
param map[string]interface{},
header http.Header,
) (statusCode int, res interface{}, err error)
Post(
path string,
param map[string]interface{},
header http.Header,
) (statusCode int, res interface{}, err error)
Put(
path string,
param map[string]interface{},
header http.Header,
) (statusCode int, res interface{}, err error)
}
Click to show internal directories.
Click to hide internal directories.