Documentation ¶
Index ¶
Constants ¶
View Source
const (
Version string = "1.0.6"
)
Version of release
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnPool ¶
type ConnPool struct {
// contains filtered or unexported fields
}
ConnPool implements pool of *nats.Conn of a bounded channel
func New ¶
New create new ConnPool bounded to the given poolSize, with specify the URL string to connect to natsd on url. option is used for nats#Connect when creating pool connections
func (*ConnPool) DisconnectAll ¶ added in v1.0.5
func (p *ConnPool) DisconnectAll()
DisconnectAll close all connected *nats.Conn connections in pool
func (*ConnPool) Get ¶
Get returns *nats.Conn, if connection is available, or makes a new connection and returns a value if not. if *nats.Conn is not connected in pool, make new connection in the same way.
Click to show internal directories.
Click to hide internal directories.