config

package
v0.0.0-...-d5522c5 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServConf

type ServConf struct {
	// rpc server listen port
	RpcPort            int      `yaml:"rpcPort,omitempty"`
	AdapterRpcPort     int      `yaml:"adapterRpcPort,omitempty"`
	AdapterGWPort      int      `yaml:"adapterGWPort,omitempty"`
	MetricPort         int      `yaml:"metricPort,omitempty"`
	EnableMetric       bool     `yaml:"enableMetric,omitempty"`
	EnableTls          bool     `yaml:"enableTls,omitempty"`
	EnableAdapter      bool     `yaml:"enableAdapter,omitempty"`
	EnableEndorser     bool     `yaml:"enableEndorser,omitempty"`
	EnableEvent        bool     `yaml:"enableEvent,omitempty"`
	EndorserHosts      []string `yaml:"endorserHosts,omitempty"`
	AdapterAllowCROS   bool     `yaml:"adapterAllowCROS,omitempty"`
	MaxMsgSize         int      `yaml:"maxMsgSize,omitempty"`
	ReadBufSize        int      `yaml:"readBufSize,omitempty"`
	WriteBufSize       int      `yaml:"writeBufSize,omitempty"`
	InitWindowSize     int32    `yaml:"initWindowSize,omitempty"`
	InitConnWindowSize int32    `yaml:"initConnWindowSize,omitempty"`
	TlsServerName      string   `yaml:"tlsServerName,omitempty"`
	EventAddrMaxConn   int      `yaml:"eventAddrMaxConn,omitempty"`
}

func GetDefServConf

func GetDefServConf() *ServConf

func LoadServConf

func LoadServConf(cfgFile string) (*ServConf, error)

Jump to

Keyboard shortcuts

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