Documentation ¶
Index ¶
- Variables
- func GetBodyJSON(resp *http.Response, i interface{})
- func InitLog()
- func InitLogTest()
- func IsDev() bool
- func IsProd() bool
- func IsTest() bool
- type Client
- func (c Client) CallRequest(method string, path string, reader io.Reader) *Response
- func (c Client) CallRequestNoBody(method string, path string) *Response
- func (c Client) CallRequestNoBodytWithHeaders(method string, path string, headers map[string]string) *Response
- func (c Client) CallRequestWithHeaders(method string, path string, reader io.Reader, headers map[string]string) *Response
- type InfoExec
- type MapExec
- type Response
Constants ¶
This section is empty.
Variables ¶
View Source
var Default = 0
View Source
var Log *log.Logger
View Source
var LogWriter io.Writer
LogWriter for logging
Functions ¶
func GetBodyJSON ¶
GetBodyJSON Gets json form body
Types ¶
type Client ¶
Client for http requests
func (Client) CallRequest ¶
CallRequest with body
func (Client) CallRequestNoBody ¶
CallRequestNoBody without body
Click to show internal directories.
Click to hide internal directories.