Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OutputErr ¶
func OutputErr(w http.ResponseWriter, err error)
Types ¶
type API ¶
type API interface { GetAPIs() []*APIHandler GetName() string }
type APIConf ¶
type APIConf struct { Port string `yaml:"port,omitempty"` Cors bool `yaml:"cors"` Middle map[string]bool `yaml:"middle,omitempty"` Apis map[string]bool `yaml:"api,omitempty"` }
func (*APIConf) EnableCORS ¶
type APIHandler ¶
Click to show internal directories.
Click to hide internal directories.