Documentation ¶
Index ¶
- func GetJsonString(data interface{}) (string, error)
- type NatAsyncHttpConnection
- func (c *NatAsyncHttpConnection) AddDelete(url string) error
- func (c *NatAsyncHttpConnection) AddDeleteForm(url string, data map[string][]string)
- func (c *NatAsyncHttpConnection) AddDeleteJson(url string, data interface{}) error
- func (c *NatAsyncHttpConnection) AddGet(url string)
- func (c *NatAsyncHttpConnection) AddPost(url string) error
- func (c *NatAsyncHttpConnection) AddPostForm(url string, data map[string][]string)
- func (c *NatAsyncHttpConnection) AddPostJson(url string, data interface{}) error
- func (c *NatAsyncHttpConnection) AddPut(url string) error
- func (c *NatAsyncHttpConnection) AddPutForm(url string, data map[string][]string)
- func (c *NatAsyncHttpConnection) AddPutJson(url string, data interface{}) error
- func (c *NatAsyncHttpConnection) Request() error
- func (c *NatAsyncHttpConnection) SetRequestQueueName(name string)
- type NatHttpConnection
- func (c *NatHttpConnection) Delete(url string) (string, error)
- func (c *NatHttpConnection) DeleteForm(url string, data map[string][]string) (string, error)
- func (c *NatHttpConnection) DeleteJson(url string, data interface{}) (string, error)
- func (c *NatHttpConnection) Get(url string) (string, error)
- func (c *NatHttpConnection) Post(url string) (string, error)
- func (c *NatHttpConnection) PostForm(url string, data map[string][]string) (string, error)
- func (c *NatHttpConnection) PostJson(url string, data interface{}) (string, error)
- func (c *NatHttpConnection) Put(url string) (string, error)
- func (c *NatHttpConnection) PutForm(url string, data map[string][]string) (string, error)
- func (c *NatHttpConnection) PutJson(url string, data interface{}) (string, error)
- func (c *NatHttpConnection) Request(message NatHttpRequestMessage) (res string, err error)
- func (c *NatHttpConnection) SetRequestQueueName(name string)
- func (c *NatHttpConnection) SetResponseQueueName(name string)
- type NatHttpRequestMessage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetJsonString ¶
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) DeleteForm ¶
func (*NatHttpConnection) DeleteJson ¶
func (c *NatHttpConnection) DeleteJson(url string, data interface{}) (string, error)
func (*NatHttpConnection) PostJson ¶
func (c *NatHttpConnection) PostJson(url string, data interface{}) (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"` }
Click to show internal directories.
Click to hide internal directories.