config

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2022 License: GPL-3.0 Imports: 6 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"`
	PriceLimits []*PriceLimits `json:"price_limits"`
}

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"`
	En256SignKey   *en256.PrivateKey `json:"en256_sign_key"`
	ConversationID string            `json:"conversation_id"`
}

type PriceLimits added in v1.2.2

type PriceLimits struct {
	AssetID string          `json:"asset_id"`
	Min     decimal.Decimal `json:"min"`
	Max     decimal.Decimal `json:"max"`
}

Jump to

Keyboard shortcuts

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