Documentation ¶
Index ¶
- Constants
- func CountKeys(rdb redis.UniversalClient, match string) (int, error)
- func GetKeys(rdb redis.UniversalClient, cursor uint64, match string, count int64) <-chan keyMessage
- func New(config Config) (*model, error)
- func Or(queryValues url.Values, key string, b string) string
- func OrInt(queryValues url.Values, key string, b int) int
- func OrSlice(queryValues url.Values, key string, bb ...[]string) []string
- type Config
Constants ¶
View Source
const ( MaxRetries = 3 MaxRedirects = 10 MaxScanCount = 9999 )
redis
View Source
const (
DefaultCount = 20
)
View Source
const (
ListProportion = 0.3
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Username string `mapstructure:"username"` Password string `mapstructure:"password"` // sentinel MasterName string `mapstructure:"master_name"` Addrs []string `mapstructure:"addrs"` DB int `mapstructure:"db"` Limit int64 `mapstructure:"limit"` // default 20 }
Config represents the main config for the application.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.