Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Templates []Template Pages map[string]Page // map key is a page code Formats map[string]Format // map key is a format name }
Config is a main (exportable) config struct.
func FromYamlFile ¶
FromYamlFile creates new Config instance using YAML file.
func (*Config) JSONFormat ¶
func (*Config) TemplateNames ¶
TemplateNames returns all template names.
type Format ¶
type Format struct {
// contains filtered or unexported fields
}
Format describes different response formats.
type Page ¶
type Page struct {
// contains filtered or unexported fields
}
Page describes error page.
func (Page) Description ¶
Description returns the description of the Page.
Click to show internal directories.
Click to hide internal directories.