config

package
v1.9.5 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2022 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"`
	Gas     Gas       `json:"gas"`
	Flip    Flip      `json:"flip"`
	Vault   Vault     `json:"vault"`
	I18n    I18n      `json:"i18n"`
	DataDog DataDog   `json:"data_dog"`
}

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 DataDog added in v1.5.5

type DataDog struct {
	ConversationID string `json:"conversation_id,omitempty"`
}

type Flip added in v1.5.4

type Flip struct {
	DetailPage string `json:"detail_page,omitempty"`
}

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 Vault added in v1.6.6

type Vault struct {
	DetailPage string `json:"detail_page,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