Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultTimeout = 5 * time.Second
View Source
const KeyFormat = "lock-account-%s"
View Source
const TTL = 10 * time.Second
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MongoClient ¶
type MongoClient struct {
// contains filtered or unexported fields
}
func NewMongoClient ¶
func NewMongoClient(collection *mongo.Collection) *MongoClient
type RedisClient ¶
type RedisClient struct {
// contains filtered or unexported fields
}
func NewRedisClient ¶
func NewRedisClient(redis *redis.Client) *RedisClient
Click to show internal directories.
Click to hide internal directories.