Documentation
¶
Index ¶
- type MemoryAlertRepository
- type MemoryAlertRuleRepository
- func (r *MemoryAlertRuleRepository) Create(_ context.Context, rule *domain.AlertRule) error
- func (r *MemoryAlertRuleRepository) Delete(_ context.Context, id string) error
- func (r *MemoryAlertRuleRepository) GetByID(_ context.Context, id string) (*domain.AlertRule, error)
- func (r *MemoryAlertRuleRepository) List(_ context.Context) ([]*domain.AlertRule, error)
- func (r *MemoryAlertRuleRepository) Update(_ context.Context, rule *domain.AlertRule) error
- type MemoryDashboardRepository
- type PostgresAlertRepository
- type PostgresAlertRuleRepository
- func (r *PostgresAlertRuleRepository) Create(ctx context.Context, rule *domain.AlertRule) error
- func (r *PostgresAlertRuleRepository) Delete(ctx context.Context, id string) error
- func (r *PostgresAlertRuleRepository) GetByID(ctx context.Context, id string) (*domain.AlertRule, error)
- func (r *PostgresAlertRuleRepository) List(ctx context.Context) ([]*domain.AlertRule, error)
- func (r *PostgresAlertRuleRepository) Update(ctx context.Context, rule *domain.AlertRule) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MemoryAlertRepository ¶
type MemoryAlertRepository struct {
// contains filtered or unexported fields
}
func NewMemoryAlertRepository ¶
func NewMemoryAlertRepository() *MemoryAlertRepository
type MemoryAlertRuleRepository ¶
type MemoryAlertRuleRepository struct {
// contains filtered or unexported fields
}
func NewMemoryAlertRuleRepository ¶
func NewMemoryAlertRuleRepository() *MemoryAlertRuleRepository
func (*MemoryAlertRuleRepository) Delete ¶
func (r *MemoryAlertRuleRepository) Delete(_ context.Context, id string) error
type MemoryDashboardRepository ¶
type MemoryDashboardRepository struct {
// contains filtered or unexported fields
}
MemoryDashboardRepository provides simulated dashboard data.
func NewMemoryDashboardRepository ¶
func NewMemoryDashboardRepository() *MemoryDashboardRepository
NewMemoryDashboardRepository constructs a MemoryDashboardRepository.
func (*MemoryDashboardRepository) GetDashboard ¶
GetDashboard returns simulated platform metrics and tool health data.
type PostgresAlertRepository ¶
type PostgresAlertRepository struct {
// contains filtered or unexported fields
}
func NewPostgresAlertRepository ¶
func NewPostgresAlertRepository(pool *pgxpool.Pool) *PostgresAlertRepository
type PostgresAlertRuleRepository ¶
type PostgresAlertRuleRepository struct {
// contains filtered or unexported fields
}
func NewPostgresAlertRuleRepository ¶
func NewPostgresAlertRuleRepository(pool *pgxpool.Pool) *PostgresAlertRuleRepository
func (*PostgresAlertRuleRepository) Delete ¶
func (r *PostgresAlertRuleRepository) Delete(ctx context.Context, id string) error
Click to show internal directories.
Click to hide internal directories.