Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PacketConn ¶
type PacketConn struct { *Session net.PacketConn // contains filtered or unexported fields }
Track SessionPacketConn
func (*PacketConn) Close ¶
func (c *PacketConn) Close() error
type Server ¶
type Server struct { sync.Mutex *http.Server ServeAddr string // contains filtered or unexported fields }
func (*Server) AddSession ¶
func (*Server) RemoveSession ¶
func (s *Server) RemoveSession(key interface{})
type Session ¶
type Session struct { Process string `json:"process"` Network string `json:"network"` DialerAddr string `json:"dialerAddr"` ClientAddr string `json:"clientAddr"` TargetAddr string `json:"targetAddr"` UploadBytes int64 `json:"upload"` DownloadBytes int64 `json:"download"` SessionStart time.Time `json:"sessionStart"` SessionClose time.Time `json:"sessionClose"` }
type Status ¶ added in v1.18.3
type Status struct { Platform string `json:"platform"` Version string `json:"version"` CPU string `json:"cpu"` MEM string `json:"mem"` Uptime string `json:"uptime"` Total int64 `json:"total"` Upload int64 `json:"upload"` Download int64 `json:"download"` Goroutines int `json:"goroutines"` ActiveSessions []Session `json:"activeSessions"` ClosedSessions []Session `json:"closedSessions"` }
Click to show internal directories.
Click to hide internal directories.