Versions in this module Expand all Collapse all v0 v0.2.0 Oct 17, 2019 Changes in this version + type Config map[string]*Endpoint + type Endpoint struct + Body string + Debug bool + Headers map[string]string + List string + Method string + Name string + Result map[string]Extractors + URL string + func (e *Endpoint) Execute(params map[string]string) ([]Result, error) + type Extractor struct + func MustExtractor(value string) *Extractor + func NewExtractor(value string) (*Extractor, error) + func (e *Extractor) Set(value string) (err error) + type Extractors []*Extractor + func (ex *Extractors) UnmarshalJSON(data []byte) error + func (ex Extractors) MarshalJSON() ([]byte, error) + type Handler struct + Auth string + Config Config + Debug bool + Headers map[string]string + Log bool + func (h *Handler) Endpoint(path string) *Endpoint + func (h *Handler) LoadConfig(b []byte) error + func (h *Handler) LoadConfigFile(path string) error + func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) + type Result map[string]string