Documentation
¶
Index ¶
- Variables
- func ApplyAppQuery(name string, nsID int64) func(db *gorm.DB) *gorm.DB
- func ApplyNamespaceQuery(name string) func(tx *gorm.DB) *gorm.DB
- func NewAppRepo(data *Data) biz.AppRepo
- func NewAppRuntimeRepo(data *Data) biz.AppRuntimeRepo
- func NewNamespaceRepo(logger log.Logger, data *Data) biz.NamespaceRepo
- func NewNodeRepo(data *Data) biz.NodeRepo
- func NewPermissionRepo(txm orm.Transaction) biz.PermissionRepo
- func NewRoleRepo(txm orm.Transaction) biz.RoleRepo
- func NewUserRepo(txm orm.Transaction) biz.UserRepo
- func NewZoneRepo(data *Data) biz.ZoneRepo
- type Data
- type DriverDialector
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet( NewData, wire.Bind(new(orm.DataSourceManager), new(*Data)), orm.NewTransactionManager, NewZoneRepo, NewNodeRepo, NewAppRepo, NewNamespaceRepo, NewAppRuntimeRepo, NewUserRepo, NewRoleRepo, NewPermissionRepo, )
ProviderSet is data providers.
Functions ¶
func ApplyAppQuery ¶
ApplyAppQuery applies the query conditions to the gorm.DB with Scopes.
func NewAppRepo ¶
func NewAppRuntimeRepo ¶
func NewAppRuntimeRepo(data *Data) biz.AppRuntimeRepo
func NewNamespaceRepo ¶
func NewNamespaceRepo(logger log.Logger, data *Data) biz.NamespaceRepo
func NewNodeRepo ¶
func NewPermissionRepo ¶
func NewPermissionRepo(txm orm.Transaction) biz.PermissionRepo
func NewRoleRepo ¶
func NewRoleRepo(txm orm.Transaction) biz.RoleRepo
func NewUserRepo ¶
func NewUserRepo(txm orm.Transaction) biz.UserRepo
func NewZoneRepo ¶
Types ¶
type Data ¶
type Data struct {
// contains filtered or unexported fields
}
Data .
func (*Data) GetDataSource ¶
type DriverDialector ¶
Click to show internal directories.
Click to hide internal directories.