Documentation
¶
Index ¶
- Constants
- Variables
- func NewPgxPool(config *conf.Data_Database) (*pgx.Conn, error)
- func NewRedisClient(config *conf.Data_Redis) redis.Cmdable
- func NewSessionRepo(data *Data, logger log.Logger) biz.SessionRepo
- func NewUserRepo(data *Data, logger log.Logger) biz.UserRepo
- type CreateUserParams
- type DBTX
- type Data
- type Queries
- type User
- type VerifyEmail
Constants ¶
View Source
const CreateUser = `` /* 204-byte string literal not displayed */
View Source
const GetUser = `` /* 168-byte string literal not displayed */
View Source
const GetUserById = `` /* 161-byte string literal not displayed */
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewData, NewUserRepo, NewPgxPool, NewSessionRepo, NewRedisClient)
ProviderSet is data providers.
Functions ¶
func NewPgxPool ¶
func NewPgxPool(config *conf.Data_Database) (*pgx.Conn, error)
func NewRedisClient ¶
func NewRedisClient(config *conf.Data_Redis) redis.Cmdable
func NewSessionRepo ¶
func NewSessionRepo(data *Data, logger log.Logger) biz.SessionRepo
Types ¶
type CreateUserParams ¶
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CreateUser ¶
func (*Queries) GetUserById ¶
type VerifyEmail ¶
type VerifyEmail struct { ID int64 Email string UserID pgtype.UUID SecretCode string IsUsed bool CreatedAt pgtype.Timestamptz ExpiredAt pgtype.Timestamptz }
Click to show internal directories.
Click to hide internal directories.