Documentation
¶
Index ¶
- Variables
- type Handler
- type HandlerOption
- func WithAfter(after func(duration time.Duration) <-chan time.Time) HandlerOption
- func WithFileSystem(fs afero.Fs) HandlerOption
- func WithGenerator(generator fakedata.Generator) HandlerOption
- func WithLogger(logger contracts.Logger) HandlerOption
- func WithResponse(response config.Response) HandlerOption
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidSeed = errors.New("invalid $__uncors__seed parameter")
View Source
var ErrResponseIsNotDefined = errors.New("response is not defined")
Functions ¶
This section is empty.
Types ¶
type Handler ¶ added in v0.2.0
type Handler struct {
// contains filtered or unexported fields
}
func NewMockHandler ¶ added in v0.2.0
func NewMockHandler(options ...HandlerOption) *Handler
type HandlerOption ¶ added in v0.2.0
type HandlerOption = func(*Handler)
func WithFileSystem ¶
func WithFileSystem(fs afero.Fs) HandlerOption
func WithGenerator ¶ added in v0.4.0
func WithGenerator(generator fakedata.Generator) HandlerOption
func WithLogger ¶
func WithLogger(logger contracts.Logger) HandlerOption
func WithResponse ¶
func WithResponse(response config.Response) HandlerOption
Click to show internal directories.
Click to hide internal directories.