Documentation ¶
Overview ¶
Package redis provides implementation of Go API for redis interface
Index ¶
- Variables
- func Select(table string, columns []string, cmps ...Cmp) (stmt string, names []string)
- type BatchBuilder
- type Cassandra
- type Cmp
- type DeleteBuilder
- type Deleter
- type Getter
- type InsertBuilder
- type Lister
- 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 WithDefaultIdempotence(defaultIdempotence bool) Option
- func WithDefaultTimestamp(defaultTimestamp bool) Option
- func WithDialer(der gocql.Dialer) Option
- func WithDisableDCAwareRouting() Option
- func WithDisableInitialHostLookup(disableInitialHostLookup bool) Option
- func WithDisableNodeStatusEvents(disableNodeStatusEvents bool) Option
- func WithDisableNonLocalReplicasFallback() Option
- func WithDisableSchemaEvents(disableSchemaEvents bool) Option
- func WithDisableShuffleReplicas() Option
- func WithDisableSkipMetadata(disableSkipMetadata bool) Option
- func WithDisableTopologyEvents(disableTopologyEvents bool) Option
- func WithEnableDCAwareRouting() Option
- func WithEnableHostVerification(enableHostVerification bool) Option
- func WithEnableNonLocalReplicasFallback() Option
- func WithEnableShuffleReplicas() Option
- func WithHosts(hosts ...string) Option
- func WithIgnorePeerAddr(ignorePeerAddr bool) Option
- func WithKVTable(kvTable string) Option
- func WithKeyspace(keyspace string) Option
- func WithMaxPreparedStmts(maxPreparedStmts int) Option
- func WithMaxRoutingKeyInfo(maxRoutingKeyInfo int) Option
- func WithMaxWaitSchemaAgreement(maxWaitSchemaAgreement string) 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 gocql.SerialConsistency) 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 WithUsername(username string) Option
- func WithVKTable(vkTable string) Option
- func WithWriteCoalesceWaitTime(writeCoalesceWaitTime string) Option
- type Querier
- type Queryx
- type Session
- type Setter
- type UpdateBuilder
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotFound = gocql.ErrNotFound
)
Functions ¶
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 WithDefaultIdempotence ¶
func WithDefaultTimestamp ¶
func WithDialer ¶ added in v0.0.2
func WithDisableDCAwareRouting ¶
func WithDisableDCAwareRouting() Option
func WithDisableNonLocalReplicasFallback ¶
func WithDisableNonLocalReplicasFallback() Option
func WithDisableSchemaEvents ¶
func WithDisableShuffleReplicas ¶
func WithDisableShuffleReplicas() Option
func WithDisableSkipMetadata ¶
func WithEnableDCAwareRouting ¶
func WithEnableDCAwareRouting() Option
func WithEnableNonLocalReplicasFallback ¶
func WithEnableNonLocalReplicasFallback() Option
func WithEnableShuffleReplicas ¶
func WithEnableShuffleReplicas() Option
func WithIgnorePeerAddr ¶
func WithKVTable ¶
func WithKeyspace ¶
func WithMaxPreparedStmts ¶
func WithMaxRoutingKeyInfo ¶
func WithNumConns ¶
func WithPageSize ¶
func WithPassword ¶
func WithProtoVersion ¶
func WithReconnectInterval ¶
func WithSerialConsistency ¶
func WithSerialConsistency(consistency gocql.SerialConsistency) Option
func WithSocketKeepalive ¶
func WithTLSCAPath ¶
func WithTLSCertPath ¶
func WithTLSKeyPath ¶
func WithTimeout ¶
func WithUsername ¶
func WithVKTable ¶
type UpdateBuilder ¶
type UpdateBuilder = qb.UpdateBuilder
func Update ¶
func Update(table string) *UpdateBuilder
Source Files ¶
Click to show internal directories.
Click to hide internal directories.