Documentation ¶
Index ¶
- type HandleObjectFun
- type Hook
- func (h *Hook) Handle(ctx *utils.Ctx, w *utils.Reponse, r *http.Request) (err error)
- func (h *Hook) HandleFun(f interface{}, ctx *utils.Ctx, w *utils.Reponse, r *http.Request)
- func (h *Hook) Mutating(url string, f hook.Mutatingfun)
- func (h *Hook) NextMiddleware(ctx *utils.Ctx, w *utils.Reponse, r *http.Request) (err error)
- func (h *Hook) Query() UrlParams
- func (h *Hook) Route(url string, f func(w *utils.Reponse, r *http.Request))
- func (h *Hook) Run(addr, certFile, keyFile string)
- func (h *Hook) ServeHTTP(w http.ResponseWriter, r *http.Request)
- func (h *Hook) Validating(url string, f hook.ValidateFun)
- type Service
- type ServiceInterface
- type UrlParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HandleObjectFun ¶
type HandleObjectFun func(obj string)
type Hook ¶
type Hook struct {
// contains filtered or unexported fields
}
func Default ¶
func Default(middlewares ...middleware.MiddleWare) *Hook
func (*Hook) NextMiddleware ¶
func (*Hook) Validating ¶
func (h *Hook) Validating(url string, f hook.ValidateFun)
type ServiceInterface ¶
type ServiceInterface interface {
ServeHTTP(http.ResponseWriter, *http.Request)
}
Click to show internal directories.
Click to hide internal directories.