config

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2021 License: GPL-3.0 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"`
	Gas    Gas       `json:"gas"`
}

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"`
	Amount decimal.Decimal `json:"amount"`
}

type Group

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

Jump to

Keyboard shortcuts

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