Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewConnKeyByEndpoints ¶
func NewConnKeyByString ¶
func NewConnKeyByString(host, port string) ckey
Types ¶
type HTTPLogger ¶
type HTTPLogger struct {
// contains filtered or unexported fields
}
func NewHTTPLogger ¶
func NewHTTPLogger(port uint) *HTTPLogger
func (*HTTPLogger) Port ¶
func (h *HTTPLogger) Port() uint
func (*HTTPLogger) Shutdown ¶
func (h *HTTPLogger) Shutdown() error
func (*HTTPLogger) Start ¶
func (h *HTTPLogger) Start(p *Processor) error
func (*HTTPLogger) Type ¶
func (h *HTTPLogger) Type() string
type Logger ¶
type Logger interface { Debug(args ...interface{}) Debugf(format string, args ...interface{}) Error(args ...interface{}) Errorf(format string, args ...interface{}) Fatal(args ...interface{}) Fatalf(format string, args ...interface{}) Info(args ...interface{}) Infof(format string, args ...interface{}) Panic(args ...interface{}) Panicf(format string, args ...interface{}) Warn(args ...interface{}) Warnf(format string, args ...interface{}) }
type Processor ¶
type Processor struct { Connections *connTable // contains filtered or unexported fields }
func (*Processor) PacketsProcessed ¶
type Rule ¶
type Rule struct { Match string `yaml:"match"` Type string `yaml:"type"` Target string `yaml:"target,omitempty"` Name string `yaml:"name,omitempty"` // contains filtered or unexported fields }
func ParseRuleSpec ¶
type TCPLogger ¶
type TCPLogger struct {
// contains filtered or unexported fields
}
func NewTCPLogger ¶
type TCPProxy ¶
type TCPProxy struct {
// contains filtered or unexported fields
}
func NewTCPProxy ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.