package
0.12.8
Repository: https://github.com/rotationalio/ensign.git
Documentation: pkg.go.dev

# Functions

NewServer creates and starts a new mock server for testing Quarterdeck interactions.
Return a 401 response if the request is not authenticated.
Configure a basic error reply to be returned by the handler.
Use the given handler, overriding all other options.
Configure a JSON fixture to be returned by the handler.
Configure the status code to be returned by the handler.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

Server embeds an httptest Server and provides additional methods for configuring mock responses and counting requests.

# Type aliases

HandlerOption allows users of the mock to configure specific endpoint handler behavior or override it entirely.