repository

package
v0.0.0-...-0edcfba Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2025 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 AlertRepo

type AlertRepo interface {
	GetAlerts(ctx context.Context, alertType string, limit int) ([]domain.Alert, error)
}

func NewAlertRepo

func NewAlertRepo(logDAO dao.LogDAO, alertCache cache.AlertCache) AlertRepo

type CachedAlertRepo

type CachedAlertRepo struct {
	// contains filtered or unexported fields
}

func (*CachedAlertRepo) GetAlerts

func (a *CachedAlertRepo) GetAlerts(
	ctx context.Context,
	alertType string,
	limit int,
) ([]domain.Alert, error)

GetAlerts implements AlertRepo.

type LogRepo

type LogRepo interface {
	UpsertSecurityEvent(ctx context.Context, secuEvt domain.SecurityEvent) error
}

func NewLogRepo

func NewLogRepo(dao dao.LogDAO) LogRepo

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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