Documentation ¶
Index ¶
- Variables
- func NewAppRepo(data *Data, logger log.Logger) biz.AppData
- func NewClusterRepo(data *Data, c *conf.Bootstrap, logger log.Logger) biz.ClusterData
- func NewProjectRepo(data *Data, c *conf.Bootstrap, logger log.Logger) biz.ProjectData
- func NewServicesRepo(data *Data, logger log.Logger) biz.ServicesData
- func NewUserRepo(data *Data, c *conf.Bootstrap, logger log.Logger) biz.UserData
- type Data
- func (d *Data) Error(ctx context.Context, msg string, args ...interface{})
- func (d *Data) Info(ctx context.Context, msg string, args ...interface{})
- func (d *Data) LogMode(level gormlogger.LogLevel) gormlogger.Interface
- func (d *Data) Trace(ctx context.Context, begin time.Time, ...)
- func (d *Data) Warn(ctx context.Context, msg string, args ...interface{})
- type UserRepo
- func (u *UserRepo) DeleteUser(ctx context.Context, id int64) error
- func (u *UserRepo) GetUserByBatchID(ctx context.Context, ids []int64) ([]*biz.User, error)
- func (u *UserRepo) GetUserByID(ctx context.Context, id int64) (*biz.User, error)
- func (u *UserRepo) GetUserEmail(ctx context.Context, token string) (string, error)
- func (u *UserRepo) GetUserInfoByEmail(ctx context.Context, email string) (*biz.User, error)
- func (u *UserRepo) GetUsers(ctx context.Context, name, email string, pageNum, pageSize int) (users []*biz.User, total int64, err error)
- func (u *UserRepo) Save(ctx context.Context, user *biz.User) error
- func (u *UserRepo) SignIn(ctx context.Context, userParam *biz.User) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewData, NewClusterRepo, NewAppRepo, NewServicesRepo, NewUserRepo, NewProjectRepo)
ProviderSet is data providers.
Functions ¶
func NewClusterRepo ¶
func NewProjectRepo ¶
func NewServicesRepo ¶
func NewServicesRepo(data *Data, logger log.Logger) biz.ServicesData
Types ¶
type Data ¶
type Data struct {
// contains filtered or unexported fields
}
func (*Data) LogMode ¶
func (d *Data) LogMode(level gormlogger.LogLevel) gormlogger.Interface
type UserRepo ¶
type UserRepo struct {
// contains filtered or unexported fields
}
func (*UserRepo) GetUserByBatchID ¶
func (*UserRepo) GetUserByID ¶
func (*UserRepo) GetUserEmail ¶
func (*UserRepo) GetUserInfoByEmail ¶
Click to show internal directories.
Click to hide internal directories.