stub

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 14, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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) GetLogger

func (h *Handler) GetLogger() *log.Logger

func (*Handler) Handle

func (h *Handler) Handle(req *handler.HandleRequest, sender handlers.ResponseSender) error

func (*Handler) Name

func (h *Handler) Name() string

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

func (*Handler) SetLogger

func (h *Handler) SetLogger(logger *log.Logger)

func (*Handler) Version

func (h *Handler) Version() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL