Documentation ¶
Overview ¶
Package goredis provides implementation of go-redis client.
Package goredis provides implementation of go-redis client.
Index ¶
Constants ¶
View Source
const BundleName = "redis"
BundleName is default definition name.
View Source
const DEFAULT = "default"
DEFAULT is default connection name.
Variables ¶
View Source
var ( // ErrUnknownConnection is error triggered when connection with provided name not founded. ErrUnknownConnection = errors.New("unknown connection") )
Functions ¶
This section is empty.
Types ¶
type Bundle ¶
type Bundle struct{}
Bundle implements the glue.Bundle interface.
type Config ¶
type Config struct { Host string `json:"host"` Port string `json:"port"` DB int `json:"db"` Username string `json:"username"` Password string `json:"password"` MaxRetries int `json:"max_retries"` IdleTimeout time.Duration `json:"idle_timeout"` ReadTimeout time.Duration `json:"read_timeout"` WriteTimeout time.Duration `json:"write_timeout"` }
Config is registry configuration item.
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry is database connection registry.
func (*Registry) Connection ¶
Connection is default connection getter.
func (*Registry) ConnectionWithName ¶
ConnectionWithName is connection getter by name.
Click to show internal directories.
Click to hide internal directories.