Documentation
¶
Index ¶
- func NewHttpClient(scheme string, host string, timeout time.Duration, options ...Option) *httpClient
- func NewJsonClient(scheme string, host string, timeout time.Duration, options ...Option) *jsonClient
- func NewNopLogger() *nopLogger
- type HttpClient
- type JsonClient
- type Logger
- type Option
- type Options
Constants ¶
This section is empty.
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.