Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
RouterConfig router.Config
RouterHooks RouterHooks
}
type MiddlewareHook ¶
type MiddlewareHook func(m MiddlewareManager)
type MiddlewareManager ¶
type RouteHook ¶
type RouteHook func(r RouteManager)
type RouteManager ¶
type RouteManager interface {
Mount(pattern string, h http.Handler)
Handle(pattern string, h http.Handler)
HandleFunc(pattern string, h http.HandlerFunc)
Method(method, pattern string, h http.Handler)
MethodFunc(method, pattern string, h http.HandlerFunc)
Connect(pattern string, h http.HandlerFunc)
Delete(pattern string, h http.HandlerFunc)
Get(pattern string, h http.HandlerFunc)
Head(pattern string, h http.HandlerFunc)
Options(pattern string, h http.HandlerFunc)
Patch(pattern string, h http.HandlerFunc)
Post(pattern string, h http.HandlerFunc)
Put(pattern string, h http.HandlerFunc)
Trace(pattern string, h http.HandlerFunc)
}
type RouterHooks ¶
type RouterHooks struct {
Middlewares []MiddlewareHook
Routes []RouteHook
}
type ServerLogger ¶
type ServerLogger struct{}
Click to show internal directories.
Click to hide internal directories.