Versions in this module Expand all Collapse all v0 v0.4.0 Apr 20, 2020 Changes in this version + type DailyReport struct + Date time.Time + HitCount int64 + type MismatchReport struct + Count int64 + FirstSeen time.Time + LastSeen time.Time + URL string + type ReportRepo interface + CountMatched func(ctx context.Context, whereParams url.Values) (count int64, err error) + CountUniquePage func(ctx context.Context, whereParams url.Values) (count int64, err error) + DailyReports func(ctx context.Context, startDate, endDate, ruleID string) (list []*DailyReport, err error) + MismatchReports func(ctx context.Context, paginationParam repository.PaginationParam) (list []*MismatchReport, err error) + func NewReportRepo(impl ReportRepoImpl) ReportRepo + type ReportRepoImpl struct + func (r *ReportRepoImpl) CountMatched(ctx context.Context, whereParams url.Values) (count int64, err error) + func (r *ReportRepoImpl) CountUniquePage(ctx context.Context, whereParams url.Values) (count int64, err error) + func (r *ReportRepoImpl) DailyReports(ctx context.Context, startDate, endDate, ruleID string) (list []*DailyReport, err error) + func (r *ReportRepoImpl) MismatchReports(ctx context.Context, paginationParam repository.PaginationParam) (list []*MismatchReport, err error) + type RuleMatching struct + IsMatched int + RuleID *int64 + Time time.Time + URL *string + type RuleMatchingRepo interface + Insert func(context.Context, RuleMatching) (err error) + func NewRuleMatchingRepo(impl RuleMatchingRepoImpl) RuleMatchingRepo + type RuleMatchingRepoImpl struct + func (r *RuleMatchingRepoImpl) Insert(ctx context.Context, e RuleMatching) (err error)