Documentation
¶
Overview ¶
Package linkclicks counts the clicks of the emails of one Broadcast or Automation, or of the whole Workspace, by link. It is a leaf the per-owner reports and the Clicks by link report share: the count reads the `email.clicked` Events, machine clicks left out (ADR 0053), and takes a scoped client like every Workspace read.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Between ¶
Between is the half-open span [Since, Until) the clicks happened in; the zero value is all the retained history. An Event happened at its `occurred_at`, falling back to its creation time (ADR 0044).
type Clicks ¶
Clicks is how often one link was clicked.
func ByLink ¶
func ByLink(ctx context.Context, s *ent.Scoped, in Between, owner func(*sql.Selector)) ([]Clicks, error)
ByLink counts the `email.clicked` Events that owner narrows to (the Events that carry one Broadcast or Automation) within the span, by link, most clicked first. Every click is an Event, so these are repeat counts that cover the Event retention window.
type OwnerClicks ¶
OwnerClicks is how often one link was clicked in the emails of one Broadcast or Automation.