Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheStrategy ¶
type CompiledMapping ¶
type CompiledMapping struct { Mapping *Mapping CompiledBody *template.Template CompiledUrl *template.Template CompiledTransform *template.Template CompiledCacheKey *template.Template CompiledMapping map[string][]*regexp.Regexp }
func (*CompiledMapping) Body ¶
func (cm *CompiledMapping) Body(data map[string]interface{}) (string, error)
func (*CompiledMapping) Prepare ¶
func (cm *CompiledMapping) Prepare(data map[string]interface{}) (*RequestMapping, error)
type Mapping ¶
type Mapping struct { Id string Target *TargetMapping Mapping map[string][]string Caching *CacheStrategy }
func (*Mapping) Compile ¶
func (q *Mapping) Compile() (*CompiledMapping, error)
type Mappings ¶
type Mappings []*CompiledMapping
func (*Mappings) DeRegister ¶
type RequestMapping ¶
type TargetMapping ¶
Click to show internal directories.
Click to hide internal directories.