Documentation
¶
Index ¶
- type ReportClient
- func (r *ReportClient) Create(ips []*cticlient.SmokeItem, name string, isFile bool, filePath string, ...) (*models.Report, error)
- func (r *ReportClient) CreateOne(ip *cticlient.SmokeItem) (*database.IP, error)
- func (r *ReportClient) DeleteExpiredReports(expiration string) error
- func (r *ReportClient) Display(report *models.Report, stats *models.ReportStats, outputFormat string, ...) error
- func (r *ReportClient) Exist(filepath string) (*models.Report, bool, error)
- func (r *ReportClient) FindAll() ([]*models.Report, error)
- func (r *ReportClient) FindByHash(filepath string) (*models.Report, error)
- func (r *ReportClient) FindById(reportID uint) (*models.Report, error)
- func (r *ReportClient) GetExpiredIPFromReport(reportID uint) ([]string, error)
- func (r *ReportClient) GetStats(report *models.Report) *models.ReportStats
- func (r *ReportClient) IPLastRefresh(ip string) (time.Time, error)
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) 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) 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)
Click to show internal directories.
Click to hide internal directories.