config

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2021 License: GPL-3.0 Imports: 9 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 {
	DB    db.Config `json:"db"`
	Dapp  Dapp      `json:"dapp"`
	Group Group     `json:"group,omitempty"`
	Gas   Gas       `json:"gas"`
	I18n  I18n      `json:"i18n,omitempty"`
}

func Viperion

func Viperion(cfgFile, embed string) (*Config, error)

Viperion load config by viper

type Dapp

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

type Gas added in v1.3.0

type Gas struct {
	AssetID string          `json:"asset_id"`
	Amount  decimal.Decimal `json:"amount"`
}

type Group

type Group struct {
	// 节点管理员 mixin id
	Admins []string `json:"admins,omitempty"`
	// 节点共享的用户解密的私钥
	PrivateKey string   `json:"private_key,omitempty"`
	Members    []string `json:"members,omitempty"`
	Threshold  uint8    `json:"threshold,omitempty"`
}

type I18n

type I18n struct {
	Path string `json:"path,omitempty"`
	// default language
	Language string `json:"language,omitempty"`
}

type Vote

type Vote struct {
	Asset  string          `json:"asset,omitempty"`
	Amount decimal.Decimal `json:"amount,omitempty"`
}

Jump to

Keyboard shortcuts

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