Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(h Hooks) fh.HandlerFunc
func NewWithConfig ¶
func NewWithConfig(cfg Config) fh.HandlerFunc
Types ¶
type Config ¶
type Config struct {
Hooks Hooks
// RunAfterOnError controls whether OnAfterHandler runs after c.Next()
// even when c.Next() returned an error.
RunAfterOnError bool
// SwallowErrorOnHandled controls whether OnError returning nil means
// the original handler error is considered handled.
SwallowErrorOnHandled bool
}
Click to show internal directories.
Click to hide internal directories.