Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hello ¶
type Hello struct {
// Message to return, default is "OK"
Message string `cfg:"message"`
// Status code to return, default is 200
StatusCode int `cfg:"status_code"`
Headers map[string]string `cfg:"headers"`
// Type of return (json, json-pretty, html, string), default is string
Type string `cfg:"type"`
// Template to render go template
Template bool `cfg:"template"`
// 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"`
}
func (*Hello) Middleware ¶
func (h *Hello) Middleware() ([]echo.MiddlewareFunc, error)
Click to show internal directories.
Click to hide internal directories.