Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // default values DEFAULT_HEADERS = map[string]interface{}{} DEFAULT_PARAMS = map[string]interface{}{} )
Functions ¶
func HttpFactory ¶
HttpFactory initilize and returns a new Worker of type std_http
Types ¶
type Http ¶
type Http struct {
// contains filtered or unexported fields
}
Http a worker that makes std_http requests to external APIs
func (*Http) ConfigStruct ¶
func (h *Http) ConfigStruct() interface{}
type HttpParams ¶
type HttpParams struct { Body json.RawMessage `json:"body"` Headers map[string]interface{} `json:"headers"` Url string `json:"url"` Method string `json:"method"` UrlParams map[string]interface{} `jons:"url_params"` }
HttpParams provides params for an http worker
Click to show internal directories.
Click to hide internal directories.