backends

package
v0.0.0-...-90603f3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 23, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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) Get

func (b *HttpBackend) Get(url string, contentType string, timeout int) ([]byte, error)

func (*HttpBackend) GetJson

func (b *HttpBackend) GetJson(u string, target interface{}) error

func (*HttpBackend) Post

func (b *HttpBackend) Post(url string, contentType string, data []byte, timeout int) ([]byte, error)

func (*HttpBackend) PostJson

func (b *HttpBackend) PostJson(u string, data map[string]interface{}, target interface{}) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL