http

package
v0.0.65 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultManager

type DefaultManager struct {
}

DefaultManager -

func (*DefaultManager) Delete added in v0.0.48

func (m *DefaultManager) Delete(url, token string) error

Delete deletes a given resource on the server.

func (*DefaultManager) Get

func (m *DefaultManager) Get(url, token string, target interface{}) error

Get - return struct marshalled into target

func (*DefaultManager) Post

func (m *DefaultManager) Post(url, token, payload string) (string, error)

Post -

func (*DefaultManager) Put

func (m *DefaultManager) Put(url, token, payload string) error

Put -

type Manager

type Manager interface {
	Put(url, token, payload string) (err error)
	Post(url, token, payload string) (body string, err error)
	Get(url, token string, target interface{}) (err error)
	Delete(url, token string) error
}

Manager -

func NewManager

func NewManager() (mgr Manager)

NewManager -

Jump to

Keyboard shortcuts

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