Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Template ¶
type Template struct { Template string `cfg:"template"` // RawBody is the value of the body is raw or is an interface{} RawBody bool `cfg:"raw_body"` // Status code to return, default is from response StatusCode int `cfg:"status_code"` // Value from load name, key value and type is map[string]interface{} Value string `cfg:"value"` // Additional is additional values for the template Additional map[string]interface{} `cfg:"additional"` // Headers are additional to return Headers map[string]string `cfg:"headers"` // ApplyStatusCodes on specific status codes ApplyStatusCodes []int `cfg:"apply_status_codes"` // Trust is allow to use powerful functions Trust bool `cfg:"trust"` // WorkDir is the directory for some functions WorkDir string `cfg:"work_dir"` // Delims is the delimiters for the template Delims []string `cfg:"delims"` // contains filtered or unexported fields }
func (*Template) Middleware ¶
Click to show internal directories.
Click to hide internal directories.