Documentation ¶
Index ¶
- type Handler
- func (h *Handler) GetLogger() *log.Logger
- func (h *Handler) Handle(req *handler.HandleRequest, sender handlers.ResponseSender) error
- func (h *Handler) Name() string
- func (h *Handler) PostHandle(req *handler.PostHandleRequest, sender handlers.ResponseSender) error
- func (h *Handler) PreHandle(req *handler.HandleRequest, sender handlers.ResponseSender) error
- func (h *Handler) SetLogger(logger *log.Logger)
- func (h *Handler) Version() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct { PreHandleFunc func(*handler.HandleRequest, handlers.ResponseSender) error HandleFunc func(*handler.HandleRequest, handlers.ResponseSender) error PostHandleFunc func(*handler.PostHandleRequest, handlers.ResponseSender) error Logger *log.Logger }
Handler 単体テスト用のスタブハンドラ
func (*Handler) Handle ¶
func (h *Handler) Handle(req *handler.HandleRequest, sender handlers.ResponseSender) error
func (*Handler) PostHandle ¶
func (h *Handler) PostHandle(req *handler.PostHandleRequest, sender handlers.ResponseSender) error
func (*Handler) PreHandle ¶
func (h *Handler) PreHandle(req *handler.HandleRequest, sender handlers.ResponseSender) error
Click to show internal directories.
Click to hide internal directories.