repository

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppLevelMetrics

type AppLevelMetrics struct {
	Id         int  `sql:"id,pk"`
	AppId      int  `sql:"app_id,notnull"`
	AppMetrics bool `sql:"app_metrics,notnull"`
	//InfraMetrics bool     `sql:"infra_metrics,notnull"` not being used
	sql.AuditLog
	// contains filtered or unexported fields
}

type AppLevelMetricsRepository

type AppLevelMetricsRepository interface {
	Save(metrics *AppLevelMetrics) error
	FindByAppId(id int) (*AppLevelMetrics, error)
	Update(metrics *AppLevelMetrics) error
}

type AppLevelMetricsRepositoryImpl

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

func NewAppLevelMetricsRepositoryImpl

func NewAppLevelMetricsRepositoryImpl(dbConnection *pg.DB, logger *zap.SugaredLogger) *AppLevelMetricsRepositoryImpl

func (*AppLevelMetricsRepositoryImpl) FindByAppId

func (impl *AppLevelMetricsRepositoryImpl) FindByAppId(appId int) (*AppLevelMetrics, error)

func (*AppLevelMetricsRepositoryImpl) Save

func (*AppLevelMetricsRepositoryImpl) Update

func (impl *AppLevelMetricsRepositoryImpl) Update(metrics *AppLevelMetrics) error

type EnvLevelAppMetrics

type EnvLevelAppMetrics struct {
	Id         int  `sql:"id,pk"`
	AppId      int  `sql:"app_id,notnull"`
	EnvId      int  `sql:"env_id,notnull"`
	AppMetrics bool `sql:"app_metrics,notnull"`
	//InfraMetrics *bool    `sql:"infra_metrics,notnull"` not being used
	sql.AuditLog
	// contains filtered or unexported fields
}

type EnvLevelAppMetricsRepository

type EnvLevelAppMetricsRepository interface {
	Save(metrics *EnvLevelAppMetrics) error
	Update(metrics *EnvLevelAppMetrics) error
	FindByAppIdAndEnvId(appId int, envId int) (*EnvLevelAppMetrics, error)
	Delete(metrics *EnvLevelAppMetrics) error
	FindByAppId(appId int) ([]*EnvLevelAppMetrics, error)
	FindByAppIdAndEnvIds(appId int, envIds []int) ([]*EnvLevelAppMetrics, error)
}

type EnvLevelAppMetricsRepositoryImpl

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

func NewEnvLevelAppMetricsRepositoryImpl

func NewEnvLevelAppMetricsRepositoryImpl(dbConnection *pg.DB, logger *zap.SugaredLogger) *EnvLevelAppMetricsRepositoryImpl

func (*EnvLevelAppMetricsRepositoryImpl) Delete

func (*EnvLevelAppMetricsRepositoryImpl) FindByAppId

func (impl *EnvLevelAppMetricsRepositoryImpl) FindByAppId(appId int) ([]*EnvLevelAppMetrics, error)

func (*EnvLevelAppMetricsRepositoryImpl) FindByAppIdAndEnvId

func (impl *EnvLevelAppMetricsRepositoryImpl) FindByAppIdAndEnvId(appId int, envId int) (*EnvLevelAppMetrics, error)

func (*EnvLevelAppMetricsRepositoryImpl) FindByAppIdAndEnvIds

func (impl *EnvLevelAppMetricsRepositoryImpl) FindByAppIdAndEnvIds(appId int, envIds []int) ([]*EnvLevelAppMetrics, error)

func (*EnvLevelAppMetricsRepositoryImpl) Save

func (*EnvLevelAppMetricsRepositoryImpl) Update

Jump to

Keyboard shortcuts

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