Documentation
¶
Index ¶
- func CloseConn(conn *Conn) (err error)
- func LoadKeyCrt(crtFile, keyFile string) (*tls.Config, error)
- type AddrMock
- type Conn
- type ConnCloseErrMock
- type ConnMock
- 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
- type PkgOption
- type Server
- type ServerGtcp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConnCloseErrMock ¶
type ConnCloseErrMock struct {
ConnMock
}
func (*ConnCloseErrMock) Close ¶
func (c *ConnCloseErrMock) Close() error
type Server ¶
type ServerGtcp ¶
func NewServerKeyCrt ¶
func NewServerKeyCrt(address, crtFile, keyFile string, handler func(*Conn), name ...string) (*ServerGtcp, error)
Click to show internal directories.
Click to hide internal directories.