# Functions
Connect creates pool for instances with specified instances.
ConnectWithOpts creates pool for instances with specified instances and opts.
NewConnectorAdapter creates a new ConnectorAdapter object for a pool and with a mode.
# Constants
The request can be executed on any instance (master or replica).
master.
If there is one, otherwise fallback to a read only one (replica).
If there is one, otherwise fallback to a writeable one (master).
replica.
The request can only be executed on replica.
The request can only be executed on master.
unknown.
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
ConnectionInfo structure for information about connection statuses:
- ConnectedNow reports if connection is established at the moment.
Main features:
- Return available connection from pool according to round-robin strategy.
ConnectorAdapter allows to use Pooler as Connector.
Instance describes a single instance configuration in the pool.
Opts provides additional options (configurable via ConnectWithOpts).
# Interfaces
ConnectionHandler provides callbacks for components interested in handling changes of connections in a ConnectionPool.
Pooler is the interface that must be implemented by a connection pool.
TopologyEditor is the interface that must be implemented by a connection pool.
# Type aliases
Default mode for each request table:
Request Default mode
---------- --------------
| call | no default |
| eval | no default |
| execute | no default |
| ping | no default |
| insert | RW |
| delete | RW |
| replace | RW |
| update | RW |
| upsert | RW |
| select | ANY |
| get | ANY |
*/.
Role describes a role of an instance by its mode.