Documentation ¶
Overview ¶
Package redis provides implementation of Go API for redis interface
Index ¶
- Variables
- func NewConvictionPolicy() gocql.ConvictionPolicy
- func Select(table string, columns []string, cmps ...Cmp) (stmt string, names []string)
- func WrapErrorWithKeys(err error, keys ...string) error
- type BatchBuilder
- type Cassandra
- type Cmp
- type DeleteBuilder
- type Deleter
- type InsertBuilder
- type Option
- func WithAuthProvider(authProvider func(h *gocql.HostInfo) (gocql.Authenticator, error)) Option
- func WithCQLVersion(version string) Option
- func WithCompressor(compressor gocql.Compressor) Option
- func WithConnectTimeout(dur string) Option
- func WithConsistency(consistency string) Option
- func WithDC(name string) Option
- func WithDCAwareRouting(dcAwareRouting bool) Option
- func WithDCHostFilter(dc string) Option
- func WithDefaultIdempotence(defaultIdempotence bool) Option
- func WithDefaultTimestamp(defaultTimestamp bool) Option
- func WithDialer(der gocql.Dialer) Option
- func WithDisableInitialHostLookup(disableInitialHostLookup bool) Option
- func WithDisableNodeStatusEvents(disableNodeStatusEvents bool) Option
- func WithDisableSchemaEvents(disableSchemaEvents bool) Option
- func WithDisableSkipMetadata(disableSkipMetadata bool) Option
- func WithDisableTopologyEvents(disableTopologyEvents bool) Option
- func WithEnableHostVerification(enableHostVerification bool) Option
- func WithHostFilter(flg bool) Option
- func WithHosts(hosts ...string) Option
- func WithIgnorePeerAddr(ignorePeerAddr bool) Option
- func WithKeyspace(keyspace string) Option
- func WithMaxPreparedStmts(maxPreparedStmts int) Option
- func WithMaxRoutingKeyInfo(maxRoutingKeyInfo int) Option
- func WithMaxWaitSchemaAgreement(maxWaitSchemaAgreement string) Option
- func WithNonLocalReplicasFallback(nonLocalReplicasFallBack bool) Option
- func WithNumConns(numConns int) Option
- func WithPageSize(pageSize int) Option
- func WithPassword(password string) Option
- func WithPort(port int) Option
- func WithProtoVersion(version int) Option
- func WithReconnectInterval(reconnectInterval string) Option
- func WithReconnectionPolicyInitialInterval(initialInterval string) Option
- func WithReconnectionPolicyMaxRetries(maxRetries int) Option
- func WithRetryPolicyMaxDuration(maxDuration string) Option
- func WithRetryPolicyMinDuration(minDuration string) Option
- func WithRetryPolicyNumRetries(n int) Option
- func WithSerialConsistency(consistency string) Option
- func WithShuffleReplicas(shuffleReplicas bool) Option
- func WithSocketKeepalive(socketKeepalive string) Option
- func WithTLS(tls *tls.Config) Option
- func WithTLSCAPath(caPath string) Option
- func WithTLSCertPath(certPath string) Option
- func WithTLSKeyPath(keyPath string) Option
- func WithTimeout(dur string) Option
- func WithTokenAwareHostPolicy(tokenAwareHostPolicy bool) Option
- func WithUsername(username string) Option
- func WithWhiteListHostFilter(list []string) Option
- func WithWriteCoalesceWaitTime(writeCoalesceWaitTime string) Option
- type Queryx
- type Session
- type UpdateBuilder
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotFound = gocql.ErrNotFound ErrUnsupported = gocql.ErrUnsupported ErrTooManyStmts = gocql.ErrTooManyStmts ErrUseStmt = gocql.ErrUseStmt ErrSessionClosed = gocql.ErrSessionClosed ErrNoConnections = gocql.ErrNoConnections ErrNoKeyspace = gocql.ErrNoKeyspace ErrKeyspaceDoesNotExist = gocql.ErrKeyspaceDoesNotExist ErrNoMetadata = gocql.ErrNoMetadata ErrNoHosts = gocql.ErrNoHosts ErrNoConnectionsStarted = gocql.ErrNoConnectionsStarted ErrHostQueryFailed = gocql.ErrHostQueryFailed )
Functions ¶
func NewConvictionPolicy ¶ added in v0.0.27
func NewConvictionPolicy() gocql.ConvictionPolicy
func WrapErrorWithKeys ¶ added in v0.0.26
Types ¶
type Cassandra ¶
type DeleteBuilder ¶
type DeleteBuilder = qb.DeleteBuilder
func Delete ¶
func Delete(table string, cmps ...Cmp) *DeleteBuilder
type InsertBuilder ¶
type InsertBuilder = qb.InsertBuilder
func Insert ¶
func Insert(table string, columns ...string) *InsertBuilder
type Option ¶
type Option func(*client) error
func WithAuthProvider ¶
func WithCQLVersion ¶
func WithCompressor ¶
func WithCompressor(compressor gocql.Compressor) Option
func WithConnectTimeout ¶
func WithConsistency ¶
func WithDCAwareRouting ¶ added in v0.0.32
func WithDCHostFilter ¶ added in v0.0.34
func WithDefaultIdempotence ¶
func WithDefaultTimestamp ¶
func WithDialer ¶ added in v0.0.2
func WithDisableSchemaEvents ¶
func WithDisableSkipMetadata ¶
func WithHostFilter ¶ added in v0.0.34
func WithIgnorePeerAddr ¶
func WithKeyspace ¶
func WithMaxPreparedStmts ¶
func WithMaxRoutingKeyInfo ¶
func WithNonLocalReplicasFallback ¶ added in v0.0.32
func WithNumConns ¶
func WithPageSize ¶
func WithPassword ¶
func WithProtoVersion ¶
func WithReconnectInterval ¶
func WithSerialConsistency ¶
func WithShuffleReplicas ¶ added in v0.0.32
func WithSocketKeepalive ¶
func WithTLSCAPath ¶
func WithTLSCertPath ¶
func WithTLSKeyPath ¶
func WithTimeout ¶
func WithTokenAwareHostPolicy ¶ added in v0.0.34
func WithUsername ¶
func WithWhiteListHostFilter ¶ added in v0.0.34
type UpdateBuilder ¶
type UpdateBuilder = qb.UpdateBuilder
func Update ¶
func Update(table string) *UpdateBuilder
Click to show internal directories.
Click to hide internal directories.