config

package
v1.8.9-test-1 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2022 License: GPL-3.0 Imports: 8 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, embed 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"`
}

Jump to

Keyboard shortcuts

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