Documentation
¶
Index ¶
Constants ¶
View Source
const ( RequestReceived = Stage(1000) CorsCheck = Stage(1500) Auth = Stage(2000) RequestAccepted = Stage(3000) )
Variables ¶
This section is empty.
Functions ¶
func SetHeader ¶
func SetHeader(key, value string) mux.MiddlewareFunc
Types ¶
type Middleware ¶
type Middleware struct { Name string Stage Stage Func mux.MiddlewareFunc }
type Module ¶
type Module struct {
// contains filtered or unexported fields
}
func (*Module) AddMiddleware ¶
func (m *Module) AddMiddleware(wares ...*Middleware)
func (*Module) ModuleName ¶
func (*Module) OnRegister ¶
func (m *Module) OnRegister(hooks orc.ModuleHooks)
type Stage ¶
type Stage int
func (Stage) Do ¶
func (s Stage) Do(name string, f mux.MiddlewareFunc) *Middleware
Click to show internal directories.
Click to hide internal directories.