nathttp

package module
v0.0.0-...-8647827 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2016 License: MIT Imports: 6 Imported by: 0

README

nathttp

nathttpd go client

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetJsonString

func GetJsonString(data interface{}) (string, error)

Types

type NatAsyncHttpConnection

type NatAsyncHttpConnection struct {
	// contains filtered or unexported fields
}

func CreateNatAsyncHttpConnection

func CreateNatAsyncHttpConnection(qurl string) *NatAsyncHttpConnection

func (*NatAsyncHttpConnection) AddDelete

func (c *NatAsyncHttpConnection) AddDelete(url string) error

func (*NatAsyncHttpConnection) AddDeleteForm

func (c *NatAsyncHttpConnection) AddDeleteForm(url string, data map[string][]string)

func (*NatAsyncHttpConnection) AddDeleteJson

func (c *NatAsyncHttpConnection) AddDeleteJson(url string, data interface{}) error

func (*NatAsyncHttpConnection) AddGet

func (c *NatAsyncHttpConnection) AddGet(url string)

func (*NatAsyncHttpConnection) AddPost

func (c *NatAsyncHttpConnection) AddPost(url string) error

func (*NatAsyncHttpConnection) AddPostForm

func (c *NatAsyncHttpConnection) AddPostForm(url string, data map[string][]string)

func (*NatAsyncHttpConnection) AddPostJson

func (c *NatAsyncHttpConnection) AddPostJson(url string, data interface{}) error

func (*NatAsyncHttpConnection) AddPut

func (c *NatAsyncHttpConnection) AddPut(url string) error

func (*NatAsyncHttpConnection) AddPutForm

func (c *NatAsyncHttpConnection) AddPutForm(url string, data map[string][]string)

func (*NatAsyncHttpConnection) AddPutJson

func (c *NatAsyncHttpConnection) AddPutJson(url string, data interface{}) error

func (*NatAsyncHttpConnection) Request

func (c *NatAsyncHttpConnection) Request() error

func (*NatAsyncHttpConnection) SetRequestQueueName

func (c *NatAsyncHttpConnection) SetRequestQueueName(name string)

type NatHttpConnection

type NatHttpConnection struct {
	// contains filtered or unexported fields
}

func CreateNatHttpConnection

func CreateNatHttpConnection(qurl string) *NatHttpConnection

func (*NatHttpConnection) Delete

func (c *NatHttpConnection) Delete(url string) (string, error)

func (*NatHttpConnection) DeleteForm

func (c *NatHttpConnection) DeleteForm(url string, data map[string][]string) (string, error)

func (*NatHttpConnection) DeleteJson

func (c *NatHttpConnection) DeleteJson(url string, data interface{}) (string, error)

func (*NatHttpConnection) Get

func (c *NatHttpConnection) Get(url string) (string, error)

func (*NatHttpConnection) Post

func (c *NatHttpConnection) Post(url string) (string, error)

func (*NatHttpConnection) PostForm

func (c *NatHttpConnection) PostForm(url string, data map[string][]string) (string, error)

func (*NatHttpConnection) PostJson

func (c *NatHttpConnection) PostJson(url string, data interface{}) (string, error)

func (*NatHttpConnection) Put

func (c *NatHttpConnection) Put(url string) (string, error)

func (*NatHttpConnection) PutForm

func (c *NatHttpConnection) PutForm(url string, data map[string][]string) (string, error)

func (*NatHttpConnection) PutJson

func (c *NatHttpConnection) PutJson(url string, data interface{}) (string, error)

func (*NatHttpConnection) Request

func (c *NatHttpConnection) Request(message NatHttpRequestMessage) (res string, err error)

func (*NatHttpConnection) SetRequestQueueName

func (c *NatHttpConnection) SetRequestQueueName(name string)

func (*NatHttpConnection) SetResponseQueueName

func (c *NatHttpConnection) SetResponseQueueName(name string)

type NatHttpRequestMessage

type NatHttpRequestMessage struct {
	Method   string                 `json:"method"`
	Url      string                 `json:"url"`
	JsonData string                 `json:"jsonData"`
	FormData url.Values             `json:"formData"`
	Sync     bool                   `json:"sync"`
	Next     *NatHttpRequestMessage `json:"next"`
	Error    *NatHttpRequestMessage `json:"error"`
}

Jump to

Keyboard shortcuts

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