jsonprovider

package
v0.0.0-...-ffea4ed Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrEmptyFilename error = errors.New("Filename is empty")
)

Functions

This section is empty.

Types

type Provider

type Provider struct {
	Filename string
}

Provider provides a map with all configuration settings set in a json file The prefix will be removed from the key name. Returns a map or error.

func (Provider) Provide

func (j Provider) Provide() (map[string]string, error)

Provide implements the Provider interface

func (Provider) Save

func (j Provider) Save(cfg *cfg.Config) error

Save will store the provided configuration

Jump to

Keyboard shortcuts

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