config

package
v1.2.6 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2021 License: GPL-3.0 Imports: 5 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"`
	I18n  I18n      `json:"i18n,omitempty"`
}

func Viperion

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

Viperion load config by viper

type Dapp

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

type Group

type Group struct {
	// 节点共享的用户解密的私钥
	PublicKey string   `json:"public_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 Member

type Member struct {
	ClientID string `json:"client_id,omitempty"`
	// 节点共享的用户验证签名的公钥
	VerifyKey string `json:"verify_key,omitempty"`
}

Jump to

Keyboard shortcuts

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