seed

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Getter

type Getter interface {
	Get(key string) (*string, uint64, error)
}

Getter interface for fetching a value for a specific key.

type Param

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

Param parameters for setting a getter for a specific source.

func NewParam

func NewParam(src config.Source, getter Getter) (*Param, error)

NewParam constructor.

type Seeder

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

Seeder handles initializing the configuration value.

func New

func New(pp ...Param) *Seeder

New constructor.

func (*Seeder) Seed

func (s *Seeder) Seed(cfg *config.Config) error

Seed the provided config with values for their sources.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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