config

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v0.3.0

type Config struct {
	Name string `validate:"required" yaml:"-"`
	Path string `validate:"required" yaml:"-"`

	Server struct {
		Address string `validate:"required"`
	}

	Log struct {
		Format      string `validate:"required"`
		ForceColors bool
		Level       string `validate:"required"`
	}

	Database struct {
		InstanceRelativePath  string `validate:"required"`
		ExecutionRelativePath string `validate:"required"`
		ProcessRelativePath   string `validate:"required"`
	}

	Tendermint struct {
		Config       *tmconfig.Config `validate:"required"`
		RelativePath string           `validate:"required"`
	}

	Cosmos struct {
		RelativePath string `validate:"required"`
	}

	DevGenesis struct {
		AccountName     string `validate:"required"`
		AccountPassword string `validate:"required"`
		ChainID         string `validate:"required"`
	}
}

Config contains all the configuration needed.

func New added in v0.3.0

func New() (*Config, error)

New returns a Config after loaded ENV and validate the values.

Jump to

Keyboard shortcuts

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