# README
RethinkDB adaptor
The RethinkDB adaptor is capable of reading/tailing tables and receiving data for inserts.
Configuration:
- rethink:
type: rethinkdb
uri: rethink://127.0.0.1:28015/
# timeout: 30s
# tail: false
# ssl: false
# cacerts: ["/path/to/cert.pem"]
# Functions
NewClient creates a new client to work with RethinkDB.
WithCACerts configures the RootCAs for the underlying TLS connection.
WithDatabase configures the database to use for the connection.
WithReadTimeout overrides the DefaultTimeout and should be parseable by time.ParseDuration.
WithSessionTimeout overrides the DefaultTimeout and should be parseable by time.ParseDuration.
WithSSL configures the database connection to connect via TLS.
WithURI defines the full connection string of the RethinkDB database.
WithWriteTimeout overrides the DefaultTimeout and should be parseable by time.ParseDuration.
# Constants
DefaultDatabase used for the connection options.
DefaultTimeout is the default time.Duration used if one is not provided for options that pertain to timeouts.
DefaultURI is the default endpoint for RethinkDB on the local machine.
# Structs
Client creates and holds the session to RethinkDB.
Config provides custom configuration options for the RethinkDB adapter.
Reader fulfills the client.Reader interface for use with both copying and tailing a RethinkDB database.
RethinkDB is an adaptor that writes metrics to rethinkdb (http://rethinkdb.com/) An open-source distributed database.
Session contains an instance of the rethink.Session for use by Readers/Writers.
Writer implements client.Writer for use with RethinkDB.
# Type aliases
ClientOptionFunc is a function that configures a Client.