Documentation ¶
Index ¶
- type Endpoint
- func (endpoint *Endpoint) Eval(f func(*Manifest, interface{}) bool) *Endpoint
- func (endpoint *Endpoint) Evaluate(manifest *Manifest, x interface{}) bool
- func (endpoint *Endpoint) NewBodyArgs(args map[string]string) *Endpoint
- func (endpoint *Endpoint) NewBodyLiterals(args map[string]interface{}) *Endpoint
- func (endpoint *Endpoint) NewPathArgs(args map[string]string) *Endpoint
- func (endpoint *Endpoint) NewUsage(args map[string]string) *Endpoint
- func (endpoint *Endpoint) SecDelayAfter(x int) *Endpoint
- func (endpoint *Endpoint) SecDelayBefore(x int) *Endpoint
- type Manifest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Endpoint ¶
type Endpoint struct { Label string `json:label` Method string `json:"method"` Endpoint string `json:"endpoint"` PathArgs map[string]string `json:"pathArgs"` BodyArgs map[string]string `json:"bodyArgs"` BodyLiterals map[string]interface{} `json:"bodyLiterals"` Use map[string]string `json:"use"` Spec *common.HandlerSpec `json:"spec"` DelayBefore int `json:"delayBefore"` DelayAfter int `json:"delayAfter"` // contains filtered or unexported fields }
func (*Endpoint) NewBodyArgs ¶
func (*Endpoint) NewBodyLiterals ¶
func (*Endpoint) NewPathArgs ¶
func (*Endpoint) SecDelayAfter ¶
func (*Endpoint) SecDelayBefore ¶
type Manifest ¶
type Manifest struct { Host string `json:"host"` Spec string `json:"spec"` Headers map[string]string `json:"headers"` Label string `json:"label"` Variables map[string]interface{} `json:"variables"` Endpoints []*Endpoint `json:"endpoints"` }
func LoadManifest ¶
func ParseManifest ¶
func (*Manifest) AddEndpoints ¶
func (*Manifest) NewEndpoint ¶
Click to show internal directories.
Click to hide internal directories.