Documentation ¶
Index ¶
- Constants
- func Admin(manager *session.Manager, url string) phx.Middleware
- func Authorize(manager *session.Manager, url string) phx.Middleware
- func AuthorizeRoles(manager *session.Manager, url string, roles []core.Role) phx.Middleware
- func Cors(opt CorsOptions) phx.Middleware
- func CorsDefault() phx.Middleware
- func Csrf(cs *csrf.Csrf) phx.Middleware
- func Logger(next phx.Handler) phx.Handler
- type CorsOptions
Constants ¶
View Source
const (
CorsAny string = "*"
)
Variables ¶
This section is empty.
Functions ¶
func Authorize ¶ added in v0.3.3
func Authorize(manager *session.Manager, url string) phx.Middleware
func AuthorizeRoles ¶ added in v0.3.3
func Cors ¶ added in v0.3.4
func Cors(opt CorsOptions) phx.Middleware
func CorsDefault ¶ added in v0.3.4
func CorsDefault() phx.Middleware
Types ¶
Click to show internal directories.
Click to hide internal directories.