Documentation
¶
Index ¶
- Variables
- func AWSClient() *awsClient
- func NewRedis()
- func NewRender(folder, vExt string) *render
- func ShortID() *shortid.Shortid
- type HeaderMetaData
- type Mongo
- type MongoSettings
- type RedisClient
- func (r *RedisClient) Delete(keys ...string) (int64, error)
- func (r *RedisClient) Exist(keys ...string) bool
- func (r *RedisClient) Get(key string) (string, error)
- func (r *RedisClient) Keys(pattern string) ([]string, error)
- func (r *RedisClient) Set(key string, value interface{}, expiration time.Duration) *redis.StatusCmd
- func (r *RedisClient) TTL(key string) (time.Duration, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var Render *render
Functions ¶
Types ¶
type HeaderMetaData ¶
type Mongo ¶
type Mongo struct {
// contains filtered or unexported fields
}
func NewMongo ¶
func NewMongo(settings MongoSettings) *Mongo
func (*Mongo) Collection ¶
type MongoSettings ¶
type MongoSettings struct {
Host, Username, Password, Database string
}
type RedisClient ¶
var RedisManager *RedisClient
func (*RedisClient) Exist ¶
func (r *RedisClient) Exist(keys ...string) bool
Your keys count must match the exist amount or not all keys exist Exists in redis doesn't return what keys actually existed so this function is pretty basic
Click to show internal directories.
Click to hide internal directories.