Documentation ¶
Index ¶
- Constants
- func P(mf MethodFunc, action string, hdrs ...interface{})
- type MethodFunc
- type Router
- func (svr *Router) Any(action string, hdrs ...interface{})
- func (ai Router) AuthInject(name string, injector auth.InjectorFunc)
- func (ai Router) Default(injector auth.InjectorFunc)
- func (svr *Router) G(action string, hdrs ...interface{})
- func (svr *Router) GinEngine() *gin.Engine
- func (svr *Router) HandleDoc(model string)
- func (ai Router) Inject(ctx *gin.Context)
- func (svr *Router) ListAllRouters()
- func (svr *Router) P(action string, hdrs ...interface{})
- func (svr *Router) PRequireCustomer(action string, hdrs ...interface{})
- func (svr *Router) PRequireEmployee(action string, hdrs ...interface{})
- func (svr *Router) PRequireLogin(action string, hdrs ...interface{})
- func (svr *Router) Run(l net.Listener) error
Constants ¶
View Source
const ( PrefixAPIV3 = "/v3/" PrefixAPIDefault = "/v4/" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MethodFunc ¶
type MethodFunc func(relativePath string, handlers ...gin.HandlerFunc) gin.IRoutes
type Router ¶
type Router struct { Prefix string // contains filtered or unexported fields }
Router .
func (Router) AuthInject ¶
func (ai Router) AuthInject(name string, injector auth.InjectorFunc)
func (Router) Default ¶
func (ai Router) Default(injector auth.InjectorFunc)
func (*Router) PRequireCustomer ¶ added in v0.1.9
PRequireCustomer .
func (*Router) PRequireEmployee ¶
PRequireEmployee .
func (*Router) PRequireLogin ¶ added in v0.1.9
PRequireLogin .
Click to show internal directories.
Click to hide internal directories.