Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Endpoint ¶ added in v1.0.1
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 ¶ added in v1.0.1
type Extractor struct {
// contains filtered or unexported fields
}
func MustExtractor ¶ added in v1.0.1
func NewExtractor ¶ added in v1.0.1
type Extractors ¶ added in v1.0.1
type Extractors []*Extractor
func (Extractors) MarshalJSON ¶ added in v1.0.1
func (ex Extractors) MarshalJSON() ([]byte, error)
func (*Extractors) UnmarshalJSON ¶ added in v1.0.1
func (ex *Extractors) UnmarshalJSON(data []byte) error
type Handler ¶ added in v1.0.1
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) Endpoint ¶ added in v1.0.1
Endpoint will return the Handler's Endpoint from its Config
func (*Handler) LoadConfig ¶ added in v1.0.1
func (*Handler) LoadConfigFile ¶ added in v1.0.1
Click to show internal directories.
Click to hide internal directories.