Documentation ¶
Overview ¶
Package conf parse config to configuration
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadECPrivateKeyFromPEM ¶
LoadECPrivateKeyFromPEM reads file, divides into key and certificates
Types ¶
type Config ¶
type Config struct { IsHTTP bool ChainID int64 CAFile string Key string Cert string IsSMCrypto bool PrivateKey []byte GroupID int NodeURL string }
Config contains configuration items for sdk
func ParseConfig ¶
ParseConfig parses the configuration from []byte
func ParseConfigFile ¶
ParseConfigFile parses the configuration from toml config file
Click to show internal directories.
Click to hide internal directories.