Documentation
¶
Index ¶
- type ClientConfig
- type ConnectionConfig
- type Provider
- func (instance *Provider) Close(client rueidis.Client) error
- func (instance *Provider) Open(resolver containercontract.Resolver) (rueidis.Client, error)
- func (instance *Provider) Ping(client rueidis.Client) error
- func (instance *Provider) WithClientConfig(clientConfig *ClientConfig) *Provider
- func (instance *Provider) WithTimeoutConfig(timeoutConfig *TimeoutConfig) *Provider
- type TimeoutConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientConfig ¶
type ClientConfig struct {
ClientName string
SelectDb int
DisableCache bool
TlsConfig *tls.Config
PingOnStart bool
DialTimeout time.Duration
ConnWriteTimeout time.Duration
}
func DefaultClientConfig ¶
func DefaultClientConfig() *ClientConfig
type ConnectionConfig ¶
func NewConnectionConfig ¶
func NewConnectionConfig( address string, user string, password string, ) *ConnectionConfig
func (*ConnectionConfig) SafeContext ¶
func (instance *ConnectionConfig) SafeContext() exceptioncontract.Context
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func NewProvider ¶
func NewProviderWithConfig ¶
func NewProviderWithConfig( addressParameterName string, userParameterName string, passwordParameterName string, clientConfig *ClientConfig, timeoutConfig *TimeoutConfig, ) *Provider
func (*Provider) WithClientConfig ¶
func (instance *Provider) WithClientConfig(clientConfig *ClientConfig) *Provider
func (*Provider) WithTimeoutConfig ¶
func (instance *Provider) WithTimeoutConfig(timeoutConfig *TimeoutConfig) *Provider
type TimeoutConfig ¶
func DefaultTimeoutConfig ¶
func DefaultTimeoutConfig() *TimeoutConfig
Source Files
¶
Click to show internal directories.
Click to hide internal directories.