configcache

package
v0.4.33 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct {
	// contains filtered or unexported fields
}

Cache manages a cache of Vipers

func New

func New(name, envPrefix, defaultPath string) *Cache

New returns a new config cache for the given path

func (*Cache) Get

func (c *Cache) Get(path string) (*viper.Viper, error)

Get returns the config for the given path.

Jump to

Keyboard shortcuts

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