Documentation ¶
Index ¶
- type HttpBackend
- func (b *HttpBackend) Get(url string, contentType string, timeout int) ([]byte, error)
- func (b *HttpBackend) GetJson(u string, target interface{}) error
- func (b *HttpBackend) Post(url string, contentType string, data []byte, timeout int) ([]byte, error)
- func (b *HttpBackend) PostJson(u string, data map[string]interface{}, target interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpBackend ¶
type HttpBackend struct {
DefaultTimeout int `json:"default_timeout" bson:"default_timeout" yaml:"default_timeout" hcl:"default_timeout"`
}
func (*HttpBackend) GetJson ¶
func (b *HttpBackend) GetJson(u string, target interface{}) error
Click to show internal directories.
Click to hide internal directories.