data

package
v0.0.0-...-e16029c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 19, 2025 License: MIT Imports: 16 Imported by: 0

README

Data

Documentation

Index

Constants

This section is empty.

Variables

ProviderSet is data providers.

Functions

func ApplyAppQuery

func ApplyAppQuery(name string, nsID int64) func(db *gorm.DB) *gorm.DB

ApplyAppQuery applies the query conditions to the gorm.DB with Scopes.

func ApplyNamespaceQuery

func ApplyNamespaceQuery(name string) func(tx *gorm.DB) *gorm.DB

func NewAppRepo

func NewAppRepo(data *Data) biz.AppRepo

func NewAppRuntimeRepo

func NewAppRuntimeRepo(data *Data) biz.AppRuntimeRepo

func NewNamespaceRepo

func NewNamespaceRepo(logger log.Logger, data *Data) biz.NamespaceRepo

func NewNodeRepo

func NewNodeRepo(data *Data) biz.NodeRepo

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

func NewZoneRepo(data *Data) biz.ZoneRepo

Types

type Data

type Data struct {
	// contains filtered or unexported fields
}

Data .

func NewData

func NewData(c *conf.Data, logger log.Logger) (*Data, func(), error)

NewData .

func (*Data) Check

func (d *Data) Check(ctx context.Context) error

func (*Data) GetDataSource

func (d *Data) GetDataSource() *gorm.DB

type DriverDialector

type DriverDialector func(dsn string) gorm.Dialector

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL