package
Version:
v0.0.0-...-678bb0e
Opens a new window with list of versions in this module.
Published: Aug 8, 2017
License: Apache-2.0
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package memory implements in-memory backend for the config client.
May be useful during local development or from unit tests. Do not use in
production. It is terribly slow.
New makes an implementation of the config service which takes all configs
from provided mapping {config set name -> map of configs}. For unit testing.
SetError artificially pins the error code returned by impl to err. If err is
nil, impl will behave normally.
impl must be a memory config isntance created with New, else SetError will
panic.
ConfigSet is a mapping from a file path to a config file body.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.