Documentation ¶
Index ¶
- func NewConnKeyByEndpoints(clientAddr gopacket.Endpoint, clientPort gopacket.Endpoint) ckey
- func NewConnKeyByString(host, port string) ckey
- func NewConnKeyFromNetConn(conn net.Conn) ckey
- type Config
- type ConnHandlerFunc
- type HTTPLogger
- type Logger
- type Metadata
- type Processor
- type Rule
- type RuleType
- type Server
- type TCPLogger
- type TCPProxy
- type UserConnServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewConnKeyByEndpoints ¶
func NewConnKeyByString ¶
func NewConnKeyByString(host, port string) ckey
func NewConnKeyFromNetConn ¶ added in v1.1.0
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 ¶
func (*Processor) RegisterConnHandler ¶ added in v1.1.0
func (p *Processor) RegisterConnHandler(target string, handler ConnHandlerFunc) error
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 ¶
type UserConnServer ¶ added in v1.1.0
type UserConnServer struct {
// contains filtered or unexported fields
}
func NewUserConnServer ¶ added in v1.1.0
func NewUserConnServer(port uint) *UserConnServer
func (*UserConnServer) Port ¶ added in v1.1.0
func (h *UserConnServer) Port() uint
func (*UserConnServer) Shutdown ¶ added in v1.1.0
func (h *UserConnServer) Shutdown() error
func (*UserConnServer) Start ¶ added in v1.1.0
func (h *UserConnServer) Start(processor *Processor) error
func (*UserConnServer) Type ¶ added in v1.1.0
func (h *UserConnServer) Type() string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.