config

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2019 License: MIT 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

type Config struct {
	Tendermint *tmConfig.Config                 `toml:"Tendermint"`
	RPC        *rpcConfig.RPCConfig             `toml:"RPC"`
	GRPC       *grpcConfig.GRPCConfig           `toml:"GRPC"`
	Logging    *Logging                         `toml:"Logging,omitempty"`
	SputnikVM  *sputnikvmConfig.SputnikvmConfig `toml:"SputnikVM"`
}

func DefaultConfig

func DefaultConfig() *Config

func FromJSON added in v0.5.0

func FromJSON(t string) (*Config, error)

func FromTOML

func FromTOML(t string) (*Config, error)

func LoadFromFile

func LoadFromFile(file string) (*Config, error)

func (*Config) Check added in v0.4.0

func (conf *Config) Check() error

Verify web3 connection - to use it in interChainTrx precompiled contract to connect

func (*Config) SaveToFile

func (conf *Config) SaveToFile(file string) error

func (*Config) ToJSON added in v0.5.0

func (conf *Config) ToJSON() ([]byte, error)

func (*Config) ToTOML

func (conf *Config) ToTOML() ([]byte, error)

type Logging added in v0.7.0

type Logging struct {
}

Jump to

Keyboard shortcuts

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