Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IRouterService ¶
type IRouterService interface { Chain(c ...alice.Constructor) []alice.Constructor ChainHandler(h http.Handler, c ...alice.Constructor) http.Handler Delete(path string, fn http.HandlerFunc, c ...alice.Constructor) Get(path string, fn http.HandlerFunc, c ...alice.Constructor) Patch(path string, fn http.HandlerFunc, c ...alice.Constructor) Post(path string, fn http.HandlerFunc, c ...alice.Constructor) Put(path string, fn http.HandlerFunc, c ...alice.Constructor) }
IRouterService is the interface for page routing.
type IViewService ¶
type IViewService interface { Render(w http.ResponseWriter, r *http.Request) error SetFolder(relativeFolderPath string) SetExtension(fileExtension string) SetBaseTemplate(relativeFilePath string) SetTemplate(relativeFilePath string) AddVar(key string, value interface{}) DelVar(key string) GetVar(key string) interface{} SetVars(vars map[string]interface{}) }
IViewService is the interface for HTML templates.
Click to show internal directories.
Click to hide internal directories.