config

package
v4.8.11+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2020 License: AGPL-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 API

type API struct {
	IsReleaseMode bool `json:"is_release_mode"`
}

type Chain

type Chain struct {
	Name          string `json:"name"`
	Upstream      string `json:"upstream"`
	SyncSeconds   uint64 `json:"sync_seconds"`
	Confirmations uint64 `json:"confirmations"`
}

type Config

type Config struct {
	API            API                `json:"api"`
	MySQLConfig    common.MySQLConfig `json:"mysql"`
	FederationProg vaporJson.HexBytes `json:"federation_prog"`
	Network        string             `json:"network"`
	Mainchain      Chain              `json:"mainchain"`
	Sidechain      Chain              `json:"sidechain"`
}

func NewConfig

func NewConfig() *Config

func NewConfigWithPath

func NewConfigWithPath(path string) *Config

Jump to

Keyboard shortcuts

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