configs

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: AGPL-3.0 Imports: 6 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 {
	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

func ReadConfigFromFile() (*Config, error)

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.

Jump to

Keyboard shortcuts

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