Documentation ¶
Index ¶
- type Cache
- func (c *Cache) AcknowledgeIssue(ctx context.Context, issueID string) (smee.Issue, error)
- func (c *Cache) ActiveAlertExists(ctx context.Context, roomID, deviceID, typ string) (bool, error)
- func (c *Cache) ActiveAlerts(ctx context.Context) ([]smee.Alert, error)
- func (c *Cache) ActiveAlertsByType(ctx context.Context, typ string) ([]smee.Alert, error)
- func (c *Cache) ActiveIssue(ctx context.Context, roomID string) (smee.Issue, error)
- func (c *Cache) ActiveIssues(ctx context.Context) ([]smee.Issue, error)
- func (c *Cache) AddIssueEvents(ctx context.Context, issueID string, events ...smee.IssueEvent) error
- func (c *Cache) CloseAlert(ctx context.Context, issueID, alertID string) (smee.Issue, error)
- func (c *Cache) CloseAlertsForIssue(ctx context.Context, issueID string) (smee.Issue, error)
- func (c *Cache) CreateAlert(ctx context.Context, alert smee.Alert) (smee.Issue, error)
- func (c *Cache) LinkIncident(ctx context.Context, issueID string, inc smee.Incident) (smee.Issue, error)
- func (c *Cache) SetIssueStatus(ctx context.Context, issueID string, status string) (smee.Issue, error)
- func (c *Cache) Sync(ctx context.Context) error
- func (c *Cache) UnacknowledgeIssue(ctx context.Context, issueID string) (smee.Issue, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct { IssueStore smee.IssueStore IncidentStore smee.IncidentStore Log *zap.Logger // contains filtered or unexported fields }
func (*Cache) AcknowledgeIssue ¶
func (*Cache) ActiveAlertExists ¶
func (*Cache) ActiveAlerts ¶
func (*Cache) ActiveAlertsByType ¶
func (*Cache) ActiveIssue ¶
func (*Cache) ActiveIssues ¶
func (*Cache) AddIssueEvents ¶
func (*Cache) CloseAlert ¶
func (*Cache) CloseAlertsForIssue ¶
func (*Cache) CreateAlert ¶
func (*Cache) LinkIncident ¶
func (*Cache) SetIssueStatus ¶
Click to show internal directories.
Click to hide internal directories.