package
0.1.15
Repository: https://github.com/ironsmile/nedomi.git
Documentation: pkg.go.dev

# Functions

GetLogger is the same as NewLogger but returns types.Logger instead of *Logger.
NewCacheAlgorithm creates and returns a new mock cache algorithm.
NewLogger returns a new Buffers logger.
NewRequestHandler creates and returns a new http.ServeMux instance that serves as a mock upstream.
NewStorage returns a new mock storage that ready for use.

# Constants

Prefixes for the logged messages.
DefaultRequestHandlerResponse is the default response for all requests.
DefaultRequestHandlerResponseCode is the default response code for all requests.
Prefixes for the logged messages.
FatalPanicText is the text of the panic when Fatalf? is called.
Prefixes for the logged messages.
Prefixes for the logged messages.

# Variables

DefaultCacheAlgorithmRepliers always return false and nil.

# Structs

CacheAlgorithm is used in different tests as a cache algorithm substitute.
CacheAlgorithmRepliers are used for setting fake reply for a particular index.
Logger writes all the logs and can return them for later examination.
RequestHandler is used to set custom responses for testing handler-related things.
Storage implements the storage interface and is used for testing.