config

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(cfgFile string, cfg *Config) error

Types

type Config

type Config struct {
	DB   db.Config `json:"db"`
	Dapp Dapp      `json:"dapp,omitempty"`
	Eth  Eth       `json:"eth,omitempty"`
	Gas  Gas       `json:"gas,omitempty"`
}

type Dapp

type Dapp struct {
	mixin.Keystore
	ClientSecret string `json:"client_secret"`
	Pin          string `json:"pin"`
}

type Eth

type Eth struct {
	Endpoint        string `json:"endpoint,omitempty"`
	PrivateKey      string `json:"private_key,omitempty"`
	FactoryContract string `json:"factory_contract,omitempty"`
}

type Gas

type Gas struct {
	Mins []struct {
		Platform string          `json:"platform"`
		Min      decimal.Decimal `json:"min"`
	} `json:"mins"`
	Multiplier       decimal.Decimal `json:"multiplier"`
	StrictMultiplier decimal.Decimal `json:"strict_multiplier"`
}

Jump to

Keyboard shortcuts

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