dao

package
v0.0.0-...-94be13e Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WebhookDao

type WebhookDao interface {
	GetOnDutyGroupById(ctx context.Context, id int) (*model.MonitorOnDutyGroup, error)
	GetRuleById(ctx context.Context, id int) (*model.MonitorAlertRule, error)
	GetMonitorAlertRuleList(ctx context.Context) ([]*model.MonitorAlertRule, error)
	GetSendGroupById(ctx context.Context, id int) (*model.MonitorSendGroup, error)
	GetUserById(ctx context.Context, id int) (*model.User, error)
	GetUserList(ctx context.Context) ([]*model.User, error)
	GetMonitorOnDutyGroupList(ctx context.Context) ([]*model.MonitorOnDutyGroup, error)
	GetMonitorSendGroupList(ctx context.Context) ([]*model.MonitorSendGroup, error)
	GetMonitorAlertEventByFingerprintId(ctx context.Context, fingerprintId string) (*model.MonitorAlertEvent, error)

	CreateOrUpdateEvent(ctx context.Context, event *model.MonitorAlertEvent) error
	UpdateMonitorAlertEvent(ctx context.Context, event *model.MonitorAlertEvent) error

	FillTodayOnDutyUser(ctx context.Context, onDutyGroup *model.MonitorOnDutyGroup) (*model.MonitorOnDutyGroup, error)
}

func NewWebhookDao

func NewWebhookDao(l *zap.Logger, db *gorm.DB) WebhookDao

Jump to

Keyboard shortcuts

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