Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct { kv.Provider `yaml:",inline" export:"true"` TLS *types.ClientTLS `description:"Enable TLS support." json:"tls,omitempty" toml:"tls,omitempty" yaml:"tls,omitempty" export:"true"` Username string `` /* 137-byte string literal not displayed */ Password string `` /* 137-byte string literal not displayed */ DB int `` /* 129-byte string literal not displayed */ Sentinel *Sentinel `description:"Enable Sentinel support." json:"sentinel,omitempty" toml:"sentinel,omitempty" yaml:"sentinel,omitempty"` }
Provider holds configurations of the provider.
func (*Provider) SetDefaults ¶
func (p *Provider) SetDefaults()
SetDefaults sets the default values.
type Sentinel ¶
type Sentinel struct { MasterName string `` /* 131-byte string literal not displayed */ Username string `` /* 143-byte string literal not displayed */ Password string `` /* 143-byte string literal not displayed */ LatencyStrategy bool `` /* 261-byte string literal not displayed */ RandomStrategy bool `` /* 256-byte string literal not displayed */ ReplicaStrategy bool `` /* 243-byte string literal not displayed */ UseDisconnectedReplicas bool `` /* 224-byte string literal not displayed */ }
Sentinel holds the Redis Sentinel configuration.
Click to show internal directories.
Click to hide internal directories.