config

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultHome = filepath.Join(os.Getenv("HOME"), ".relayer")

CONTRACT: this has to be consistent in the official relayer so that all commands inherited from the official relayer can find the config file

Functions

func GetCfgPath added in v0.3.0

func GetCfgPath(homePath string) string

func GetDBPath added in v0.3.0

func GetDBPath(homePath string) string

func LoadConfig

func LoadConfig(homePath string, cmd *cobra.Command) (*relayercmd.Config, error)

LoadConfig loads the config file in the given path to a config struct (adapted from https://github.com/cosmos/relayer/blob/v2.1.2/cmd/config.go#L544)

func NewRootLogger

func NewRootLogger(format string, debug bool) (*zap.Logger, error)

NewRootLogger returns a new Zap logger (adapted from https://github.com/cosmos/relayer/blob/v2.1.2/cmd/root.go#L177)

Types

This section is empty.

Jump to

Keyboard shortcuts

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