report

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: May 22, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReportClient

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

func NewClient

func NewClient(dbClient *database.Client) *ReportClient

func (*ReportClient) Create

func (r *ReportClient) Create(ips []*cticlient.SmokeItem, name string, isFile bool, filePath string, isQuery bool, query string, since string) (*models.Report, error)

func (*ReportClient) CreateOne

func (r *ReportClient) CreateOne(ip *cticlient.SmokeItem) (*database.IP, error)

func (*ReportClient) DeleteExpiredReports

func (r *ReportClient) DeleteExpiredReports(expiration string) error

func (*ReportClient) Display

func (r *ReportClient) Display(report *models.Report, stats *models.ReportStats, outputFormat string, withIPs bool) error

func (*ReportClient) Exist

func (r *ReportClient) Exist(filepath string) (*models.Report, bool, error)

func (*ReportClient) FindAll

func (r *ReportClient) FindAll() ([]*models.Report, error)

func (*ReportClient) FindByHash

func (r *ReportClient) FindByHash(filepath string) (*models.Report, error)

func (*ReportClient) FindById

func (r *ReportClient) FindById(reportID uint) (*models.Report, error)

func (*ReportClient) GetExpiredIPFromReport

func (r *ReportClient) GetExpiredIPFromReport(reportID uint) ([]string, error)

func (*ReportClient) GetStats

func (r *ReportClient) GetStats(report *models.Report) *models.ReportStats

func (*ReportClient) IPLastRefresh

func (r *ReportClient) IPLastRefresh(ip string) (time.Time, error)

Jump to

Keyboard shortcuts

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