Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Reader ¶
type Reader struct {
ServiceAddress string
MaxConnections int
ReadBufferSize int
ReadTimeout time.Duration
KeepAlivePeriod time.Duration
IsSplitByLine bool
SocketRule string
HeadPattern *regexp.Regexp
// contains filtered or unexported fields
}
func (*Reader) ReadLine ¶
Note: 对 sourceIp 的操作非线程安全,需由上层逻辑保证同步调用 ReadLine
Source Files
¶
- socket.go
Click to show internal directories.
Click to hide internal directories.