Documentation
¶
Index ¶
- type AuthResultStats
- type DispositionStats
- type DomainStats
- type OrgStats
- type ReportSummary
- type Statistics
- type Storage
- func (s *Storage) Close() error
- func (s *Storage) GetDKIMStats() ([]AuthResultStats, error)
- func (s *Storage) GetDispositionStats() ([]DispositionStats, error)
- func (s *Storage) GetDomainStats() ([]DomainStats, error)
- func (s *Storage) GetOrgStats() ([]OrgStats, error)
- func (s *Storage) GetReportByID(id int64) (*parser.Feedback, error)
- func (s *Storage) GetReports(limit, offset int) ([]ReportSummary, error)
- func (s *Storage) GetSPFStats() ([]AuthResultStats, error)
- func (s *Storage) GetStatistics() (*Statistics, error)
- func (s *Storage) GetTopSourceIPs(limit int) ([]TopSourceIP, error)
- func (s *Storage) SaveReport(feedback *parser.Feedback) error
- type TopSourceIP
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthResultStats ¶ added in v1.2.0
AuthResultStats holds authentication result statistics
type DispositionStats ¶ added in v1.2.0
DispositionStats holds statistics for a disposition type
type DomainStats ¶ added in v1.2.0
type DomainStats struct {
Domain string `json:"domain"`
TotalMessages int `json:"total_messages"`
CompliantMessages int `json:"compliant_messages"`
ComplianceRate float64 `json:"compliance_rate"`
}
DomainStats holds statistics for a single domain
type ReportSummary ¶
type ReportSummary struct {
ID int64 `json:"id"`
ReportID string `json:"report_id"`
OrgName string `json:"org_name"`
Domain string `json:"domain"`
DateBegin int64 `json:"date_begin"`
DateEnd int64 `json:"date_end"`
TotalMessages int `json:"total_messages"`
CompliantMessages int `json:"compliant_messages"`
ComplianceRate float64 `json:"compliance_rate"`
PolicyP string `json:"policy_p"`
}
type Statistics ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func NewStorage ¶
NewStorage creates a new storage instance
func (*Storage) GetDKIMStats ¶ added in v1.2.0
func (s *Storage) GetDKIMStats() ([]AuthResultStats, error)
GetDKIMStats returns DKIM authentication result statistics
func (*Storage) GetDispositionStats ¶ added in v1.2.0
func (s *Storage) GetDispositionStats() ([]DispositionStats, error)
GetDispositionStats returns message counts grouped by disposition
func (*Storage) GetDomainStats ¶ added in v1.2.0
func (s *Storage) GetDomainStats() ([]DomainStats, error)
GetDomainStats returns statistics grouped by domain
func (*Storage) GetOrgStats ¶ added in v1.2.0
GetOrgStats returns statistics grouped by reporting organization
func (*Storage) GetReports ¶
func (s *Storage) GetReports(limit, offset int) ([]ReportSummary, error)
func (*Storage) GetSPFStats ¶ added in v1.2.0
func (s *Storage) GetSPFStats() ([]AuthResultStats, error)
GetSPFStats returns SPF authentication result statistics
func (*Storage) GetStatistics ¶
func (s *Storage) GetStatistics() (*Statistics, error)
func (*Storage) GetTopSourceIPs ¶
func (s *Storage) GetTopSourceIPs(limit int) ([]TopSourceIP, error)
Click to show internal directories.
Click to hide internal directories.