Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { WalletKey string `envconfig:"WALLET_KEY" default:""` Server struct { Port int `envconfig:"PORT" default:"8080"` Host string `envconfig:"HOST" default:"localhost"` } Ens struct { EthNodeURL string `envconfig:"ETH_NODE_URL"` Network string `envconfig:"ENS_NETWORK"` Owner string `envconfig:"ENS_OWNER"` } }
Config structure represent yaml config for did driver.
func ReadConfigFromFile ¶
ReadConfigFromFile parse config file.
type ResolverSettings ¶
type ResolverSettings map[string]map[string]struct { ContractAddress string `yaml:"contractAddress"` NetworkURL string `yaml:"networkURL"` }
ResolverSettings represent settings for resolver.
func ParseResolversSettings ¶
func ParseResolversSettings(path string) (ResolverSettings, error)
ParseResolversSettings parse yaml file with resolver settings.
Click to show internal directories.
Click to hide internal directories.