models

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2018 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultServerConf = `` /* 867-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 {
	Interval    int  `toml:"interval"`
	ReadBuffer  int  `toml:"read_buffer"`
	ReadChan    int  `toml:"read_chan"`
	AutoNewline bool `toml:"auto_newline"`
}

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 UdpConf

type UdpConf struct {
	Title  string     `toml:"title"`
	Port   int        `toml:"port"`
	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