Documentation ¶ Index ¶ Constants type Conn func NewConn(netConn net.Conn) *Conn func (c *Conn) ClientSayHello() error func (c *Conn) Close() error func (c *Conn) NextMessage(deadline ...time.Time) ([]byte, error) func (c *Conn) SayHello() error func (c *Conn) Send(data []byte, deadline ...time.Time) error Constants ¶ View Source const ( SayHello = "hello" ) Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Conn ¶ type Conn struct { // contains filtered or unexported fields } func NewConn ¶ func NewConn(netConn net.Conn) *Conn func (*Conn) ClientSayHello ¶ func (c *Conn) ClientSayHello() error func (*Conn) Close ¶ func (c *Conn) Close() error func (*Conn) NextMessage ¶ func (c *Conn) NextMessage(deadline ...time.Time) ([]byte, error) func (*Conn) SayHello ¶ func (c *Conn) SayHello() error func (*Conn) Send ¶ func (c *Conn) Send(data []byte, deadline ...time.Time) error Source Files ¶ View all Source files conn.go Click to show internal directories. Click to hide internal directories.