Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Address string Database int Username string Password string Sentinel struct { Enabled bool MasterName string } TLS struct { Enabled bool InsecureSkipVerify bool } }
Config stores the user provided configuration parameters
type Option ¶
type Option func(*Options)
func WithMeterProvider ¶
func WithMeterProvider(p metric.MeterProvider) Option
WithMeterProvider allows to instrument redis.Client with custom metrics provider
func WithTracingProvider ¶
func WithTracingProvider(p trace.TracerProvider) Option
WithTracingProvider allows to instrument redis.Client with custom tracing provider
type Options ¶
type Options struct { Config TracingProvider trace.TracerProvider MeterProvider metric.MeterProvider }
Options stores all the input parameters to initialize new redis.Client
Click to show internal directories.
Click to hide internal directories.