Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Link ¶
type Link interface {
GetID() string
// GetBytes rx, tx
GetBytes() (uint64, uint64)
// GetPackets rx, tx
GetPackets() (uint64, uint64)
}
Link link interface
type LinkedRule ¶ added in v0.10.0
type LinkedRule interface {
NewLink(id, remote string, localConn net.Conn, remoteConn *conn.Conn) Link
GetRemote() string
GetTarget() string
GetLinks() []Link
OnDisconnect(string)
}
LinkedRule linked rule interface
type Mgr ¶
Mgr rule manager
func (*Mgr) GetLinked ¶ added in v0.10.0
func (mgr *Mgr) GetLinked(name, remote string) LinkedRule
GetLinked get rule by name
func (*Mgr) OnDisconnect ¶ added in v0.10.0
OnDisconnect on disconnect message
Click to show internal directories.
Click to hide internal directories.