Documentation
¶
Index ¶
- type CommonResource
- type ResourceBodyFilterParameters
- type ResourceFilter
- type ResourceHeaderFilterParameters
- type ResourceHeaderTemplate
- type ResourceQueryFilterParameters
- type ResourceRequestMatcher
- type ResourceResponseRegulation
- type ResourceResponseRegulationSet
- type ResourceResponseTemplate
- type ResourceRule
- type ResourceVariable
- type ResourceWeight
- type ResourceWeightingFactor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommonResource ¶
type ResourceBodyFilterParameters ¶
func (ResourceBodyFilterParameters) Check ¶
func (bfp ResourceBodyFilterParameters) Check() error
type ResourceFilter ¶
type ResourceFilter struct { Header ResourceHeaderFilterParameters `json:"header,omitempty"` Query ResourceQueryFilterParameters `json:"query,omitempty"` Body ResourceBodyFilterParameters `json:"body,omitempty"` }
type ResourceHeaderFilterParameters ¶
func (ResourceHeaderFilterParameters) Check ¶
func (hfp ResourceHeaderFilterParameters) Check() error
type ResourceHeaderTemplate ¶
type ResourceQueryFilterParameters ¶
func (ResourceQueryFilterParameters) Check ¶
func (qfp ResourceQueryFilterParameters) Check() error
type ResourceRequestMatcher ¶
type ResourceResponseRegulation ¶
type ResourceResponseRegulation struct { IsDefault bool `json:"is_default,omitempty"` Filter *ResourceFilter `json:"filter,omitempty"` Response *ResourceResponseTemplate `json:"response"` }
func (*ResourceResponseRegulation) Check ¶
func (rmr *ResourceResponseRegulation) Check() error
type ResourceResponseRegulationSet ¶
type ResourceResponseRegulationSet []*ResourceResponseRegulation
func (ResourceResponseRegulationSet) Check ¶
func (rrr ResourceResponseRegulationSet) Check() error
func (*ResourceResponseRegulationSet) UnmarshalByte ¶
func (rrr *ResourceResponseRegulationSet) UnmarshalByte(data []byte) error
type ResourceResponseTemplate ¶
type ResourceResponseTemplate struct { IsTemplate bool `json:"is_template,omitempty"` Header ResourceHeaderTemplate `json:"header,omitempty"` StatusCode int `json:"status_code,omitempty"` Body string `json:"body,omitempty"` B64EncodedBody string `json:"base64encoded_body,omitempty"` }
type ResourceRule ¶
type ResourceRule struct { ID string `json:"id,omitempty" ddb:"id"` Path string `json:"path,omitempty" ddb:"path"` Method string `json:"method,omitempty" ddb:"method"` Variable *ResourceVariable `json:"variable,omitempty" ddb:"variable"` Weight *ResourceWeight `json:"weight,omitempty" ddb:"weight"` Responses *ResourceResponseRegulationSet `json:"responses,omitempty" ddb:"responses"` Version int `json:"-" ddb:"version"` CreatedTime time.Time `json:"-" ddb:"ctime"` ModifiedTime time.Time `json:"-" ddb:"mtime"` Disabled bool `json:"-" ddb:"disabled"` }
func (ResourceRule) Check ¶
func (rr ResourceRule) Check() error
type ResourceVariable ¶
type ResourceVariable map[string]interface{}
func (*ResourceVariable) UnmarshalByte ¶
func (rv *ResourceVariable) UnmarshalByte(data []byte) error
type ResourceWeight ¶
type ResourceWeight map[string]ResourceWeightingFactor
func (*ResourceWeight) UnmarshalByte ¶
func (rw *ResourceWeight) UnmarshalByte(data []byte) error
type ResourceWeightingFactor ¶
Click to show internal directories.
Click to hide internal directories.