Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type QueryLog ¶
type QueryLog struct { Query string `json:"query"` Duration int64 `json:"duration"` Args interface{} `json:"args,omitempty"` }
QueryLog represents a logged Redis query.
type Redis ¶
type Redis struct { *redis.Client // contains filtered or unexported fields }
func NewClient ¶
func NewClient(config Config, logger datasource.Logger) (*Redis, error)
NewClient return a redis client if connection is successful based on Config. In case of error, it returns an error as second parameter.
func (*Redis) HealthCheck ¶
func (r *Redis) HealthCheck() datasource.Health
Click to show internal directories.
Click to hide internal directories.