Documentation
¶
Overview ¶
Package config provides configuration for GRPC and HTTP api servers
Index ¶
Constants ¶
const Account1Private = "" /* 130-byte string literal not displayed */
Account1Private is the private key for test account.
const Account2Private = "" /* 130-byte string literal not displayed */
Account2Private is the private key for second test account.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { StartGrpcServices []string `mapstructure:"grpc"` GrpcServerPort int `mapstructure:"grpc-port"` GrpcServerInterface string `mapstructure:"grpc-interface"` StartJSONServer bool `mapstructure:"json-server"` JSONServerPort int `mapstructure:"json-port"` // no direct command line flags for these StartDebugService bool StartGatewayService bool StartGlobalStateService bool StartMeshService bool StartNodeService bool StartSmesherService bool StartTransactionService bool }
Config defines the api config params.
func DefaultConfig ¶
func DefaultConfig() Config
DefaultConfig defines the default configuration options for api.
func DefaultTestConfig ¶
func DefaultTestConfig() Config
DefaultTestConfig returns the default config for tests.
func (*Config) ParseServicesList ¶ added in v0.1.15
ParseServicesList enables the requested services.
type GenesisConfig ¶
GenesisConfig defines accounts that will exist in state at genesis.
func DefaultGenesisConfig ¶
func DefaultGenesisConfig() *GenesisConfig
DefaultGenesisConfig is the default configuration for the node.
func DefaultTestGenesisConfig ¶
func DefaultTestGenesisConfig() *GenesisConfig
DefaultTestGenesisConfig is the default test configuration for the node.
func (*GenesisConfig) ToAccounts ¶
func (g *GenesisConfig) ToAccounts() []types.Account
ToAccounts creates list of types.Account instance from config.