Documentation ¶
Index ¶
- type Connection
- func (c *Connection) AcceptOneway() (*Oneway, error)
- func (c *Connection) AcceptStream() (*Stream, error)
- func (c *Connection) Close() error
- func (c *Connection) CreateOneway() (*Oneway, error)
- func (c *Connection) CreateStream() (*Stream, error)
- func (c *Connection) RecvMsg(p []byte) error
- func (c *Connection) SendMsg(p []byte) error
- type Gate
- type Oneway
- type Stream
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶ added in v0.1.6
type Connection struct {
// contains filtered or unexported fields
}
Connection
func Dial ¶
func Dial(address string) (*Connection, error)
func DialTimeout ¶
func DialTimeout(address string, timeout time.Duration) (*Connection, error)
func (*Connection) AcceptOneway ¶ added in v0.1.6
func (c *Connection) AcceptOneway() (*Oneway, error)
func (*Connection) AcceptStream ¶ added in v0.1.6
func (c *Connection) AcceptStream() (*Stream, error)
func (*Connection) Close ¶ added in v0.1.6
func (c *Connection) Close() error
func (*Connection) CreateOneway ¶ added in v0.1.6
func (c *Connection) CreateOneway() (*Oneway, error)
func (*Connection) CreateStream ¶ added in v0.1.6
func (c *Connection) CreateStream() (*Stream, error)
func (*Connection) RecvMsg ¶ added in v0.1.6
func (c *Connection) RecvMsg(p []byte) error
func (*Connection) SendMsg ¶ added in v0.1.6
func (c *Connection) SendMsg(p []byte) error
type Gate ¶
type Gate struct {
// contains filtered or unexported fields
}
Gate
func (*Gate) Accept ¶
func (g *Gate) Accept() (*Connection, error)
Click to show internal directories.
Click to hide internal directories.