models

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2018 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultServerConf = `` /* 455-byte string literal not displayed */

配置文件默认值

Functions

This section is empty.

Types

type ConnPool

type ConnPool struct {
	InitialCap  int `toml:"initial_cap"`
	MaxCap      int `toml:"max_cap"`
	IdleTimeout int `toml:"idle_timeout"`
}

type ReaderConf

type ReaderConf struct {
	Network    string `json:"network"`
	Port       int    `toml:"port"`
	Interval   int    `toml:"interval"`
	ReadBuffer int    `toml:"read_buffer"`
	ReadByte   int    `toml:"read_byte"`
	ReadChan   int    `toml:"read_chan"`
}

type RemoteServerConf

type RemoteServerConf struct {
	Protocol    string   `toml:"protocol"`
	Ip          string   `toml:"ip"`
	Port        int      `toml:"port"`
	Weight      int      `toml:"weight"`
	PoolEnabled bool     `toml:"pool_enabled"`
	ConnPool    ConnPool `toml:"conn_pool"`
}

type SenderConf

type SenderConf struct {
	Enabled      bool               `toml:"enabled"`
	ChannelSize  int                `toml:"channel_size"`
	RemoteServer []RemoteServerConf `toml:"remote_server"`
}

type SerConf added in v0.0.5

type SerConf struct {
	Title  string     `toml:"title"`
	LogDir string     `toml:"log_dir"`
	Reader ReaderConf `toml:"reader"`
	Sender SenderConf `toml:"sender"`
}

Jump to

Keyboard shortcuts

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