Documentation ¶
Overview ¶
Package config provide methods to get the configurations reqruied by code in src/common
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileKeyProvider ¶
type FileKeyProvider struct {
// contains filtered or unexported fields
}
FileKeyProvider reads key from file
type KeyProvider ¶
type KeyProvider interface { // Get returns the key // params can be used to pass parameters in different implements Get(params map[string]interface{}) (string, error) }
KeyProvider provides the key used to encrypt and decrypt attrs
func NewFileKeyProvider ¶
func NewFileKeyProvider(path string) KeyProvider
NewFileKeyProvider returns an instance of FileKeyProvider path: where the key should be read from
type Manager ¶
type Manager struct { Cache bool // contains filtered or unexported fields }
Manager manages configurations
func NewManager ¶
NewManager returns an instance of Manager
func (*Manager) Get ¶
Get : if cache is enabled, read configurations from cache, if cache is null or cache is disabled it loads configurations directly
Click to show internal directories.
Click to hide internal directories.