Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Chain ¶
func Chain(handler http.HandlerFunc, middlewares ...Middleware) http.HandlerFunc
func ReusableHandler ¶
func ReusableHandler(appContext *handlers.AppContext, allowUnauthorized bool, getHandler AppContextHandler, postHandler AppContextHandler) http.HandlerFunc
func StartServer ¶
func StartServer(db *gorm.DB, store *sessions.CookieStore) (err error)
Types ¶
type AppContextHandler ¶
type Middleware ¶
type Middleware func(http.HandlerFunc) http.HandlerFunc
func AllowIdSuffixOnly ¶
func AllowIdSuffixOnly(prefix string) Middleware
func DisallowSubtreeWrapper ¶
func DisallowSubtreeWrapper(permittedPath string) Middleware
Click to show internal directories.
Click to hide internal directories.