config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: Apache-2.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 MergeConfig

type MergeConfig struct {
	ChanSize         int `json:"chan_size"`
	PayloadMaxSize   int `json:"payload_max_size"`
	PayloadBatchSize int `json:"payload_batch_size"`
	TickInterval     int `json:"tick_interval"`
}

type ServerConfig

type ServerConfig struct {
	TcpPort      int                 `json:"tcp_port"`
	HttpPort     int                 `json:"http_port"`
	ProfilePort  int                 `json:"profile_port"`
	MaxConnCount int                 `json:"max_conn_count"`
	ScanTable    bool                `json:"scan_table"`
	FrontEndPath string              `json:"front_end_path"`
	Log          newlog.LogConfig    `json:"log"`
	TaosServer   TaosConfig          `json:"taos_server"`
	MySQLServer  dbmodel.MySQLConfig `json:"mysql_server"`
	Merge        MergeConfig         `json:"merge"`
}

func (*ServerConfig) Parse

func (c *ServerConfig) Parse(configPath string)

type TaosConfig

type TaosConfig struct {
	Host     string `json:"host"`
	Port     int    `json:"port"`
	User     string `json:"user"`
	Password string `json:"password"`
	Database string `json:"database"`
}

Jump to

Keyboard shortcuts

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