config

package
v0.0.0-...-3979f71 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const EnvPrefix = "INDEXER"

EnvPrefix is the prefix for environment variable configurations.

View Source
const FileName = "indexer"

FileName is the name of the config file. Don't use 'algorand-indexer', viper gets confused and thinks the binary is a config file with no extension.

Variables

View Source
var FileTypes = [...]string{"yml", "yaml"}

FileTypes is an array of types of the config file.

Functions

func AlgodArgsForDataDir

func AlgodArgsForDataDir(datadir string) (netAddr string, token string, lastmod time.Time, err error)

AlgodArgsForDataDir opens the token and network files in the data directory, returning data for constructing client

func BindFlagSet

func BindFlagSet(flags *pflag.FlagSet)

BindFlagSet glues cobra and viper together via FlagSets

Types

This section is empty.

Jump to

Keyboard shortcuts

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