config

package
v0.17.2 Latest Latest
Warning

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

Go to latest
Published: May 4, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MergeSeeds

func MergeSeeds(cfg *config.Config, newSeeds []string) *config.Config

MergeSeeds adds the additional seeds to the existing config and ensures they are all distinct

func ReadSeeds

func ReadSeeds(v *viper.Viper) ([]string, error)

ReadSeeds read seeds from a seeds.toml file in the config directory

Types

type Seed

type Seed struct {
	Address string `mapstructure:"address"`
}

Seed is used to unmarshal the seeds.toml file

Jump to

Keyboard shortcuts

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