seed

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package seed handles seeding config values.

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
Package consul handles seeding capabilities with consul.
Package consul handles seeding capabilities with consul.
Package redis handles seeding capabilities with redis.
Package redis handles seeding capabilities with redis.

Jump to

Keyboard shortcuts

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