Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var FetchElements map[string]FetchElement
FetchElements map of requests
Functions ¶
func AddToElements ¶
func AddToElements(obj *FetchElement) string
AddToElements on global elements array
Types ¶
type FetchElement ¶
type FetchElement struct {
ID string `json:"ID"`
Status int `json:"StatusHttp"`
Headers http.Header `json:"Headers"`
Length int64 `json:"Length"` // answer Length
Error string `json:"Error"`
}
FetchElement list item
func GetElementById ¶
func GetElementById(id string) (FetchElement, error)
GetElementById get element by id
func (*FetchElement) GetOnline ¶
func (t *FetchElement) GetOnline(method, url string) error
GetOnline request to url, and sets params
type PublicElement ¶
type PublicElement struct {
ID string `json:"ID"`
Status int `json:"StatusHttp"`
Headers http.Header `json:"Headers"`
Length int64 `json:"Length"` // answer Length
}
PublicElement public answer after add
func (*PublicElement) Encode ¶
func (obj *PublicElement) Encode(w http.ResponseWriter) error
Encode encode answer
func (*PublicElement) SetFromElement ¶
func (obj *PublicElement) SetFromElement(cl *FetchElement)
SetFromElement set answers values
Click to show internal directories.
Click to hide internal directories.