config

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2021 License: MIT Imports: 5 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 Bwatch added in v0.0.11

type Bwatch struct {
	ApiBase string `json:"api_base"`
}

type Config

type Config struct {
	DB     db.Config `json:"db"`
	Bwatch Bwatch    `json:"bwatch"`
	Dapp   Dapp      `json:"dapp"`
	Group  Group     `json:"group,omitempty"`
	Gas    Gas       `json:"gas,omitempty"`
}

type Dapp

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

type Gas added in v0.0.2

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

type Group

type Group struct {
	// 节点用于签名的私钥
	SignKey        *blst.PrivateKey `json:"sign_key,omitempty"`
	ConversationID string           `json:"conversation_id,omitempty"`
	Threshold      uint8            `json:"threshold,omitempty"`
}

Jump to

Keyboard shortcuts

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