Documentation
¶
Index ¶
- Constants
- Variables
- func NewBindRepo(ctx context.Context, ec *ent.Client, cache cache.CacheInterface) biz.BindRepo
- func NewCache(ctx context.Context, c *conf.Bootstrap) cache.CacheInterface
- func NewEnt(ctx context.Context, c *conf.Bootstrap) (*ent.Client, error)
- func NewPolicyRepo(ctx context.Context, ec *ent.Client, cache cache.CacheInterface) biz.PolicyRepo
- func NewRoleRepo(ctx context.Context, ec *ent.Client, cache cache.CacheInterface) biz.RoleRepo
- func NewTenantRepo(ctx context.Context, ec *ent.Client, cache cache.CacheInterface) biz.TenantRepo
- func NewUserRepo(ctx context.Context, ec *ent.Client, cache cache.CacheInterface) biz.UserRepo
- type Data
Constants ¶
View Source
const ( StatusActive = "active" StatusDisable = "disable" StatusDelete = "delete" )
Variables ¶
View Source
var ProviderSet = wire.NewSet( NewEnt, NewCache, NewUserRepo, NewRoleRepo, NewBindRepo, NewTenantRepo, NewPolicyRepo, )
ProviderSet provided NewData and NewEnt.
Functions ¶
func NewBindRepo ¶
NewBindRepo creates a new data which is a biz.BindRepo.
func NewPolicyRepo ¶
func NewPolicyRepo(ctx context.Context, ec *ent.Client, cache cache.CacheInterface) biz.PolicyRepo
NewPolicyRepo creates a new data which is a biz.PolicyRepo.
func NewRoleRepo ¶
NewRoleRepo creates a new data which is a biz.RoleRepo.
func NewTenantRepo ¶
func NewTenantRepo(ctx context.Context, ec *ent.Client, cache cache.CacheInterface) biz.TenantRepo
NewTenantRepo creates a new data which is a biz.TenantRepo.
func NewUserRepo ¶
NewUserRepo creates a new data which is a biz.UserRepo.
Types ¶
type Data ¶
type Data struct {
// contains filtered or unexported fields
}
Data handle db connection and implemented biz.EchoRepo.
func (*Data) CreateUser ¶
CreateUser creates a new user.
Click to show internal directories.
Click to hide internal directories.