Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Exchange ¶
type Exchange struct {
Resp http.ResponseWriter
Req *http.Request
Ctx context.Context
Attr map[string]interface{}
Written sync.Once
// contains filtered or unexported fields
}
Exchange struct
type Filter ¶
type Filter interface {
Init(mux *RouteMux)
Name() string
Filter(exchange *Exchange, c interface{}) error
}
Filter interface
type RespErr ¶ added in v0.2.2
type RespErr struct {
// contains filtered or unexported fields
}
func NewRespErr ¶ added in v0.2.2
func (*RespErr) Html ¶ added in v0.2.2
func (r *RespErr) Html(resp http.ResponseWriter)
type RewriteConfig ¶
RewriteConfig struct
type RouteMux ¶ added in v0.2.0
RouteMux struct
func NewRouteMux ¶ added in v0.2.0
NewRouteMux new route mux
Click to show internal directories.
Click to hide internal directories.