Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMongoDbClient ¶
func GetPostgreSqlClient ¶
func GetRedisClient ¶
func GetRedisClient() *redis.Client
Types ¶
type CartDaoRedis ¶
type CartDaoRedis struct {
// contains filtered or unexported fields
}
func NewCartDaoRedis ¶
func NewCartDaoRedis(client *redis.Client) *CartDaoRedis
func (CartDaoRedis) GetByUserId ¶
type CouponDaoRedis ¶
type CouponDaoRedis struct {
// contains filtered or unexported fields
}
func NewCouponDaoRedis ¶
func NewCouponDaoRedis(client *redis.Client) *CouponDaoRedis
type PaymentDaoSql ¶
type PaymentDaoSql struct {
// contains filtered or unexported fields
}
func NewPaymentDaoSql ¶
func NewPaymentDaoSql(client *gorm.DB) *PaymentDaoSql
type ProductDaoMongo ¶
type ProductDaoMongo struct {
// contains filtered or unexported fields
}
func NewProductDaoMongo ¶
func NewProductDaoMongo(collection *mongo.Collection) *ProductDaoMongo
type TokenDaoRedis ¶
type TokenDaoRedis struct {
// contains filtered or unexported fields
}
func NewTokenDaoRedis ¶
func NewTokenDaoRedis(client *redis.Client) *TokenDaoRedis
type UserDaoSql ¶
type UserDaoSql struct {
// contains filtered or unexported fields
}
func NewUserDaoSql ¶
func NewUserDaoSql(client *gorm.DB) *UserDaoSql
func (*UserDaoSql) GetByEmail ¶
func (sdao *UserDaoSql) GetByEmail(email string) (model.User, error)
Click to show internal directories.
Click to hide internal directories.