Versions in this module Expand all Collapse all v1 v1.18.3 Sep 2, 2020 Changes in this version + type Status struct + ActiveSessions []Session + CPU string + ClosedSessions []Session + Download int64 + Goroutines int + MEM string + Platform string + Total int64 + Upload int64 + Uptime string + Version string v1.18.2 Apr 27, 2020 Changes in this version + type Conn struct + func (c *Conn) Close() error + func (c *Conn) Read(b []byte) (n int, err error) + func (c *Conn) Write(b []byte) (n int, err error) + type Monitor interface + AddSession func(key interface{}, session *Session) + RemoveSession func(key interface{}) + Start func() error + Stop func() error + type PacketConn struct + func (c *PacketConn) Close() error + func (c *PacketConn) ReadFrom(b []byte) (n int, addr net.Addr, err error) + func (c *PacketConn) WriteTo(b []byte, addr net.Addr) (n int, err error) + type Server struct + ServeAddr string + ServePath string + func New(addr string) *Server + func (s *Server) AddSession(key interface{}, session *Session) + func (s *Server) RemoveSession(key interface{}) + func (s *Server) Start() error + func (s *Server) Stop() error + type Session struct + ClientAddr string + DialerAddr string + DownloadBytes int64 + Network string + Process string + SessionClose time.Time + SessionStart time.Time + TargetAddr string + UploadBytes int64