Versions in this module Expand all Collapse all v1 v1.0.1 Aug 15, 2024 Changes in this version + const TableMetric + const TableProject + type CheckerDB struct + ScopeInfoUpdateInterval time.Duration + func (db *CheckerDB) FullList() (checkers []*pb.Checker, deleted []int64, err error) + type JoinFields struct + Config string + Env string + ID int64 + IsDeleted string + Mode string + Name string + ProjectID int64 + ProjectName string + ScopeID string + TenantId string + URL string + func (f *JoinFields) Deleted() bool + type Metric struct + AccountID int64 + Config string + CreateTime time.Time + Env string + Extra string + ID int64 + IsDeleted string + Mode string + Name string + ProjectID int64 + ServiceID int64 + Status int64 + TenantId string + URL string + UpdateTime time.Time + func (Metric) TableName() string + type MetricDB struct + func (db *MetricDB) Create(m *Metric) error + func (db *MetricDB) Delete(id int64) error + func (db *MetricDB) GetByFields(fields map[string]interface{}) (*Metric, error) + func (db *MetricDB) GetByID(id int64) (*Metric, error) + func (db *MetricDB) ListByIDs(ids ...int64) ([]*Metric, error) + func (db *MetricDB) ListByProjectIDAndEnv(projectID int64, env string) ([]*Metric, error) + func (db *MetricDB) ListIDs() ([]int64, error) + func (db *MetricDB) Update(m *Metric) error + type Project struct + Ats string + Callback string + CreateTime time.Time + Description string + ID int64 + Identity string + IsDeleted string + Name string + ProjectID int64 + UpdateTime time.Time + func (Project) TableName() string + type ProjectDB struct + func (db *ProjectDB) GetByFields(fields map[string]interface{}) (*Project, error) + func (db *ProjectDB) GetByID(id int64) (*Project, error) + func (db *ProjectDB) GetByProjectID(projectID int64) (*Project, error)