Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Endpoint ¶
type Endpoint struct {
Name string `json:"name,omitempty"`
Method string `json:"method,omitempty"`
URL string `json:"url"`
Body string `json:"body,omitempty"`
Headers map[string]string `json:"headers,omitempty"`
List string `json:"list,omitempty"`
Result map[string]Extractors `json:"result"`
Debug bool
}
Endpoint represents a single remote endpoint. The performed query can be modified between each call by parameterising URL. See documentation.
type Extractor ¶
type Extractor struct {
// contains filtered or unexported fields
}
func MustExtractor ¶
func NewExtractor ¶
type Extractors ¶
type Extractors []*Extractor
func (Extractors) MarshalJSON ¶
func (ex Extractors) MarshalJSON() ([]byte, error)
func (*Extractors) UnmarshalJSON ¶
func (ex *Extractors) UnmarshalJSON(data []byte) error
type Handler ¶
type Handler struct {
Config Config `opts:"-"`
Headers map[string]string `opts:"-"`
Auth string `help:"Basic auth credentials <user>:<pass>"`
Log bool `opts:"-"`
Debug bool `help:"Enable debug output"`
}
func (*Handler) LoadConfig ¶
func (*Handler) LoadConfigFile ¶
Click to show internal directories.
Click to hide internal directories.