Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection struct { IsClosed bool // contains filtered or unexported fields }
func NewConnection ¶
func NewConnection(network, address string) (*Connection, error)
Returns a connection to `address`.
func (*Connection) Close ¶
func (c *Connection) Close() error
func (*Connection) Read ¶
func (c *Connection) Read() ([]byte, error)
func (*Connection) Write ¶
func (c *Connection) Write(msg []byte) error
type ConnectionPool ¶
func NewConnectionPool ¶
func NewConnectionPool(network, address string, size uint) (*ConnectionPool, error)
func (*ConnectionPool) Connect ¶
func (p *ConnectionPool) Connect() (*Connection, error)
func (*ConnectionPool) Release ¶
func (p *ConnectionPool) Release(c *Connection)
Click to show internal directories.
Click to hide internal directories.