Documentation ¶
Index ¶
- type Handler
- func (r *Handler) Get(uri string) (code int, result string, err error)
- func (r *Handler) GetJson(uri string, req interface{}, result interface{}, headers ...Header) (code int, err error)
- func (r *Handler) Post(uri string) (code int, body string, err error)
- func (r *Handler) PostJson(uri string, req interface{}, result interface{}, headers ...Header) (code int, err error)
- type Header
- type ReqOption
- type Rest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
type Rest ¶
type Rest interface { Get(uri string) (code int, body string, err error) GetJson(uri string, body interface{}, result interface{}, headers ...Header) (code int, err error) Post(uri string) (code int, result string, err error) PostJson(uri string, req interface{}, result interface{}, headers ...Header) (code int, err error) }
Click to show internal directories.
Click to hide internal directories.