Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
SafeMethods = []string{"GET", "HEAD", "OPTIONS", "TRACE"}
)
Functions ¶
Types ¶
type EncodeErrorFunc ¶
type EncodeErrorFunc func(http.ResponseWriter, *http.Request, error)
EncodeErrorFunc how to encode error when a unit of work rollback
type HandlerFunc ¶
type HandlerFunc func(w http.ResponseWriter, r *http.Request) error
type Option ¶
type Option func(*option)
func WithErrorEncoder ¶
func WithErrorEncoder(f EncodeErrorFunc) Option
WithErrorEncoder error encoder. default will not encode any error
Click to show internal directories.
Click to hide internal directories.