Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AppYaml ¶
type AppYaml struct { Runtime string `yaml:"runtime"` Service string `yaml:"service"` Main string `yaml:"main"` Handlers AppYamlHandlers `yaml:"handlers"` }
func ParseAppYaml ¶
type AppYamlHandler ¶
type AppYamlHandler struct { URL string `yaml:"url"` StaticFiles string `yaml:"static_files"` StaticDir string `yaml:"static_dir"` MimeType string `yaml:"mime_type"` HTTPHeaders map[string]string `yaml:"http_headers"` // contains filtered or unexported fields }
func (*AppYamlHandler) BuildPath ¶
func (h *AppYamlHandler) BuildPath(w http.ResponseWriter, r *http.Request, m1 []string) (string, error)
func (*AppYamlHandler) ProcessHeaders ¶
func (h *AppYamlHandler) ProcessHeaders(w http.ResponseWriter, r *http.Request)
func (*AppYamlHandler) Setup ¶
func (h *AppYamlHandler) Setup() error
type AppYamlHandlers ¶
type AppYamlHandlers []*AppYamlHandler
func (AppYamlHandlers) Each ¶
func (s AppYamlHandlers) Each(f func(*AppYamlHandler) error) error
func (AppYamlHandlers) NewHandler ¶
func (s AppYamlHandlers) NewHandler(defaultHandler http.Handler) http.HandlerFunc
func (AppYamlHandlers) Select ¶
func (s AppYamlHandlers) Select(f func(*AppYamlHandler) bool) AppYamlHandlers
Click to show internal directories.
Click to hide internal directories.