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 ¶
BindFlagSet glues cobra and viper together via FlagSets
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.