Versions in this module Expand all Collapse all v1 v1.0.1 Aug 15, 2024 Changes in this version + const LogDeploymentTable + const LogServiceInstanceTable + const TableLogInstance + type DB struct + LogDeployment LogDeploymentDB + LogInstanceDB LogInstanceDB + LogServiceInstanceDB LogServiceInstanceDB + func New(db *gorm.DB) *DB + func (db *DB) Begin() *DB + type LogDeployment struct + ClusterName string + ClusterType int + CollectorURL string + Domain string + ESConfig string + ESURL string + ID int64 + LogType string + OrgID string + func (LogDeployment) TableName() string + type LogDeploymentDB struct + func (db *LogDeploymentDB) List() ([]*LogDeployment, error) + func (db *LogDeploymentDB) QueryByClusters(clusters ...string) ([]*LogDeployment, error) + func (db *LogDeploymentDB) QueryByOrgID(orgID int64) ([]*LogDeployment, error) + func (db *LogDeploymentDB) QueryByOrgIDAndClusters(orgID int64, clusters ...string) ([]*LogDeployment, error) + type LogInstance struct + ApplicationId string + ApplicationName string + ClusterName string + Config string + Created time.Time + ID int + IsDelete int + LogKey string + LogType string + OrgId string + OrgName string + Plan string + ProjectId string + ProjectName string + RuntimeId string + RuntimeName string + Updated time.Time + Version string + Workspace string + func (LogInstance) TableName() string + type LogInstanceDB struct + func (db *LogInstanceDB) GetByLogKey(logKey string) (*LogInstance, error) + func (db *LogInstanceDB) GetListByClusterAndProjectIdAndWorkspace(clusterName, projectId, workspace string) ([]LogInstance, error) + type LogServiceInstance struct + EsConfig string + EsUrls string + ID int + InstanceID string + func (LogServiceInstance) TableName() string + type LogServiceInstanceDB struct + func (db *LogServiceInstanceDB) GetFirst() (*LogServiceInstance, error)