configs

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GnodeConfig

type GnodeConfig struct {
	// node
	NodeId            int
	NodeWeight        int
	MsgTTR            int
	MsgMaxRetry       int
	MsgMaxPushNum     int
	DataSavePath      string
	EnableCluster     bool
	EnableRaftd       bool
	HeartbeatInterval int

	// gresiter
	GregisterAddr string

	// etcd
	EtcdEndPoints []string

	// raftd
	RaftdEndPoint string

	// http server
	HttpServAddr      string
	HttpServEnableTls bool
	HttpServCertFile  string
	HttpServKeyFile   string

	// tcp server
	TcpServAddr      string
	TcpServEnableTls bool
	TcpServCertFile  string
	TcpServKeyFile   string

	// report addr
	ReportHttpAddr string
	ReportTcpAddr  string

	// log
	LogTargetType string
	LogFilename   string
	LogLevel      int
	LogMaxSize    int
	LogRotate     bool
}

func (*GnodeConfig) SetDefault

func (c *GnodeConfig) SetDefault()

func (*GnodeConfig) Validate

func (c *GnodeConfig) Validate() error

type IConfig

type IConfig interface {
	GetString()
	GetInt()
}

Jump to

Keyboard shortcuts

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