Documentation
¶
Index ¶
- func ComputeFileHash(path string) (string, error)
- type Client
- type IP
- type IPClient
- type Report
- type ReportClient
- func (r *ReportClient) Create(report *Report) error
- func (r *ReportClient) DeleteExpiredSince(expirationDate time.Time) error
- func (r *ReportClient) FilePathExist(filePath string) (*Report, bool, error)
- func (r *ReportClient) Find(reportID string) (*Report, error)
- func (r *ReportClient) FindAll() ([]*Report, error)
- func (r *ReportClient) FindByHash(filepath string) (*Report, error)
- func (r *ReportClient) FindById(reportID uint) (*Report, error)
- func (r *ReportClient) GetExpiredIPsFromReport(reportID uint) ([]*IP, error)
- type ReportStats
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComputeFileHash ¶
Types ¶
type Client ¶
type Client struct { IP *IPClient Report *ReportClient }
type IPClient ¶
type IPClient struct {
// contains filtered or unexported fields
}
func (*IPClient) CreateBatch ¶
type ReportClient ¶
type ReportClient struct {
// contains filtered or unexported fields
}
func NewReportClient ¶
func NewReportClient(db *gorm.DB) (*ReportClient, error)
func (*ReportClient) Create ¶
func (r *ReportClient) Create(report *Report) error
func (*ReportClient) DeleteExpiredSince ¶
func (r *ReportClient) DeleteExpiredSince(expirationDate time.Time) error
func (*ReportClient) FilePathExist ¶
func (r *ReportClient) FilePathExist(filePath string) (*Report, bool, error)
func (*ReportClient) FindAll ¶
func (r *ReportClient) FindAll() ([]*Report, error)
func (*ReportClient) FindByHash ¶
func (r *ReportClient) FindByHash(filepath string) (*Report, error)
func (*ReportClient) GetExpiredIPsFromReport ¶
func (r *ReportClient) GetExpiredIPsFromReport(reportID uint) ([]*IP, error)
Click to show internal directories.
Click to hide internal directories.