Documentation
¶
Index ¶
- Variables
- type Client
- type Config
- type Option
- func WithLogger(log logger.Logger) Option
- func WithOnlineReadOnly() Option
- func WithOnlineReadOnlyInconsistent() Option
- func WithQueryTimeout(timeout time.Duration) Option
- func WithSerializableReadWrite() Option
- func WithSessionCreateTimeout(timeout time.Duration) Option
- func WithSessionPoolSize(size uint) Option
- func WithSnapshotReadOnly() Option
- func WithStaleReadOnly() Option
- func WithTransportTLS() Option
- func WithUserPass(username, password string) Option
- func WithYCAuthBytes(iamKeyBytes []byte) Option
- func WithYCAuthFile(filename string) Option
- func WithZapLogger(log *zap.Logger) Option
- func WithZeroLogger(log zerolog.Logger) Option
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoInitialNodes = errors.New("no initial nodes was provided") ErrDBEmpty = errors.New("db is empty") ErrDiscoveryTransportCreate = errors.New("discovery transport create error") )
View Source
var ErrAuthTransport = errors.New("unable to create auth transport")
Functions ¶
This section is empty.
Types ¶
type Option ¶
func WithLogger ¶
func WithOnlineReadOnly ¶
func WithOnlineReadOnly() Option
func WithOnlineReadOnlyInconsistent ¶
func WithOnlineReadOnlyInconsistent() Option
func WithQueryTimeout ¶ added in v0.0.1
func WithSerializableReadWrite ¶
func WithSerializableReadWrite() Option
func WithSessionPoolSize ¶
func WithSnapshotReadOnly ¶
func WithSnapshotReadOnly() Option
func WithStaleReadOnly ¶
func WithStaleReadOnly() Option
func WithTransportTLS ¶
func WithTransportTLS() Option
func WithUserPass ¶
func WithYCAuthBytes ¶
func WithYCAuthFile ¶
func WithZapLogger ¶ added in v0.0.1
func WithZeroLogger ¶
Click to show internal directories.
Click to hide internal directories.