Documentation ¶
Index ¶
Constants ¶
View Source
const ( Username = "username" ExpiresAt = "expires_at" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend struct{}
func NewBackend ¶
func NewBackend() *Backend
func (*Backend) Entrypoint ¶
func (*Backend) RequestBackend ¶
func (b *Backend) RequestBackend(ctx *fasthttp.RequestCtx, url string) (err error)
RequestBackend request backend by internal http client
type Controllor ¶
type Controllor struct {
// contains filtered or unexported fields
}
func NewController ¶
func NewController(middlewares ...Middleware) *Controllor
func (*Controllor) MiddlewareChain ¶
func (co *Controllor) MiddlewareChain(c *chaining.Chain) *chaining.Chain
func (*Controllor) Run ¶
func (c *Controllor) Run() (err error)
type CtxMeta ¶
type CtxMeta struct { Ctx *fasthttp.RequestCtx Meta map[string]interface{} }
type Middleware ¶
type Middleware interface {
Entrypoint(c *chaining.Chain) (interface{}, error)
}
Click to show internal directories.
Click to hide internal directories.