Documentation ¶
Index ¶
- type AppLevelMetrics
- type AppLevelMetricsRepository
- type AppLevelMetricsRepositoryImpl
- type EnvLevelAppMetrics
- type EnvLevelAppMetricsRepository
- type EnvLevelAppMetricsRepositoryImpl
- func (impl *EnvLevelAppMetricsRepositoryImpl) Delete(metrics *EnvLevelAppMetrics) error
- func (impl *EnvLevelAppMetricsRepositoryImpl) FindByAppId(appId int) ([]*EnvLevelAppMetrics, error)
- func (impl *EnvLevelAppMetricsRepositoryImpl) FindByAppIdAndEnvId(appId int, envId int) (*EnvLevelAppMetrics, error)
- func (impl *EnvLevelAppMetricsRepositoryImpl) FindByAppIdAndEnvIds(appId int, envIds []int) ([]*EnvLevelAppMetrics, error)
- func (impl *EnvLevelAppMetricsRepositoryImpl) Save(metrics *EnvLevelAppMetrics) error
- func (impl *EnvLevelAppMetricsRepositoryImpl) Update(metrics *EnvLevelAppMetrics) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppLevelMetrics ¶
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 (impl *AppLevelMetricsRepositoryImpl) Save(metrics *AppLevelMetrics) error
func (*AppLevelMetricsRepositoryImpl) Update ¶
func (impl *AppLevelMetricsRepositoryImpl) Update(metrics *AppLevelMetrics) error
type EnvLevelAppMetrics ¶
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 (impl *EnvLevelAppMetricsRepositoryImpl) Delete(metrics *EnvLevelAppMetrics) error
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 (impl *EnvLevelAppMetricsRepositoryImpl) Save(metrics *EnvLevelAppMetrics) error
func (*EnvLevelAppMetricsRepositoryImpl) Update ¶
func (impl *EnvLevelAppMetricsRepositoryImpl) Update(metrics *EnvLevelAppMetrics) error
Click to show internal directories.
Click to hide internal directories.