Documentation ¶
Index ¶
- func Database(fname string) (*gorm.DB, error)
- func GetOrDefault(keys map[string]interface{}, key, def string) (string, bool)
- func GetRedisClient(addr string) *redis.Client
- func MarshalIntoRedis(f interface{}, r *redis.Client, key string) error
- func PanfromMobile(username string, r *redis.Client) (string, bool)
- func SaveRedisList(r *redis.Client, key string, value interface{}) error
- func SendSMS(noebsConfig *ebs_fields.NoebsConfig, sms SMS) error
- func StringsToBytes(s []string) (bytes.Buffer, error)
- type SMS
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRedisClient ¶
func GetRedisClient(addr string) *redis.Client
GetRedisClient returns a *redis.Client instance
func MarshalIntoRedis ¶
MarshalIntoRedis marshals a type interface{} into a redis data
func PanfromMobile ¶
func SaveRedisList ¶
SaveRedisList saves to a list in redis
func SendSMS ¶
func SendSMS(noebsConfig *ebs_fields.NoebsConfig, sms SMS) error
SendSMS a generic function to send sms to any user
Types ¶
Click to show internal directories.
Click to hide internal directories.