Versions in this module Expand all Collapse all v0 v0.0.2 Mar 30, 2025 v0.0.1 Mar 28, 2025 Changes in this version + func CloseConn(conn *Conn) (err error) + func LoadKeyCrt(crtFile, keyFile string) (*tls.Config, error) + type AddrMock struct + func (a *AddrMock) Network() string + func (a *AddrMock) String() string + type Conn = gtcp.Conn + func NewConn(addr string, timeout ...time.Duration) (*Conn, error) + func NewConnTLS(addr string, tlsConfig *tls.Config) (*Conn, error) + type ConnCloseErrMock struct + func (c *ConnCloseErrMock) Close() error + type ConnMock struct + func (c *ConnMock) Close() error + func (c *ConnMock) LocalAddr() net.Addr + func (c *ConnMock) Read(b []byte) (n int, err error) + func (c *ConnMock) RemoteAddr() net.Addr + func (c *ConnMock) SetDeadline(t time.Time) error + func (c *ConnMock) SetReadDeadline(t time.Time) error + func (c *ConnMock) SetWriteDeadline(t time.Time) error + func (c *ConnMock) Write(b []byte) (n int, err error) + type IHandler interface + Handle func(conn *Conn) + type PkgOption = gtcp.PkgOption + type Server struct + Address string + CrtFile string + Handler func(conn *Conn) + KeyFile string + StopHandler func() + func NewServer(lifecycle vfx.Lifecycle, s *Server) *Server + func (s *Server) NewServer(lifecycle vfx.Lifecycle) *Server + type ServerGtcp = gtcp.Server + func NewServerKeyCrt(address, crtFile, keyFile string, handler func(*Conn), name ...string) (*ServerGtcp, error)