mock

package
v1.0.0-beta Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 24, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cache

func Cache(data map[string]any)

Cache is a simple mocked cache where user provides the map of key value pairs and it will automatically wrap it with Heimdall's metadata. This mocked cache supports errors where if the value to a key is an error, it will return that error. This mocked cache also supports string or any other structure types in the value field.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL