config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultConfigFilename = "./config/config.json"
)

Variables

View Source
var Version string

Functions

This section is empty.

Types

type ConfigFile

type ConfigFile struct {
	ConfigFile Configuration `json:"Configuration"`
}

type Configuration

type Configuration struct {
	MagicCode       int64              `json:"MagicCode"`   //magic code for blockchain data file
	Version         int                `json:"Ver"`         //version of starchain
	SeedList        []string           `json:"VerifyList"`  //list of seed
	BookKeepers     []string           `json:"BookKeepers"` // The default book keepers' publickey
	HttpRestPort    int                `json:"RestPort"`
	HttpRestStart   bool               `json:"RestStart"`
	RestCertPath    string             `json:"RestCertPath"` // certification file path
	RestKeyPath     string             `json:"RestKeyPath"`  //certification key file path
	HttpInfoPort    uint16             `json:"HttpApiPort"`  // http api port
	HttpInfoStart   bool               `json:"HttpApiStart"`
	HttpWsPort      int                `json:"WsPort"`
	HttpJsonPort    int                `json:"JsonPort"`
	OauthServerUrl  string             `json:"OauthUrl"`
	NoticeServerUrl string             `json:"NoticeUrl"`
	NodePort        int                `json:"NodePort"`
	NodeType        string             `json:"NodeType"`
	WebSocketPort   int                `json:"WebSocketPort"`
	PrintLevel      string             `json:"LogLevel"`
	LogPath         string             `json:"LogPath"`
	IsTLS           bool               `json:"Tls"`
	AppKey          string             `json:"AppKey"`
	SecretKey       string             `json:"SecretKey"`
	CertPath        string             `json:"CertPath"`
	KeyPath         string             `json:"KeyPath"`
	AllowIp         string             `json:"AllowIp"`
	ChainPath       string             `json:"ChainPath"`
	WalletPath      string             `json:"WalletPath"`
	CAPath          string             `json:"CAPath"`
	GenBlockTime    uint               `json:"GenBlockTime"`
	MultiCoreNum    uint               `json:"MultiCoreNum"`
	EncryptAlg      string             `json:"EncryptAlg"`
	MaxLogSize      int64              `json:"MaxLogSize"`
	MaxTxInBlock    int                `json:"MaxTransactionInBlock"`
	MaxHdrSyncReqs  int                `json:"MaxConcurrentSyncHeaderReqs"`
	TransactionFee  map[string]float64 `json:"TransactionFee"`
}
var Parameters *Configuration

Jump to

Keyboard shortcuts

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