Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LazyRethinkSession ¶
LazyRethinkSession is a connection to the rethinkdb. It implements r.QueryExecutor interface. It will make attempt to connect with first call and reconnect after every error.
func ConnectRethinkDB ¶
func ConnectRethinkDB( addresses []string, username, password string, tlsConfig *tls.Config, poolSize int, ) *LazyRethinkSession
ConnectRethinkDB establishes lazy rethinkdb connection It will make attempt to connect with first call and reconnect after every error
func (*LazyRethinkSession) Close ¶
func (l *LazyRethinkSession) Close() error
Close closes connections
func (*LazyRethinkSession) Exec ¶
Exec executes a ReQL query using the session to connect to the database
func (*LazyRethinkSession) IsConnected ¶
func (l *LazyRethinkSession) IsConnected() bool
IsConnected returns true if session has a valid connection.
Click to show internal directories.
Click to hide internal directories.