Documentation ¶
Overview ¶
Package report generates reports on the messages in a practice session.
Package report generates reports on the messages in a practice session.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Message ¶
type Message struct { ID string Hash string FromCallSign string Prefix string Suffix string Source string Multiple bool Jurisdiction string Score int Summary string }
A Message contains the information about a single message in a Report.
type Report ¶
type Report struct { SessionName string SessionDate string Preliminary bool MessageTypes []string HasModel bool SentTo string SentBefore string SentAfter string NotSentFrom string Modified bool ValidCount int InvalidCount int ReplacedCount int DroppedCount int AverageValidScore int UniqueCallSigns int UniqueCallSignsWeek int Sources []*Source Jurisdictions []*Count MTypeCounts []*Count Messages []*Message Participants []string GenerationInfo string // contains filtered or unexported fields }
A Report contains all of the information that goes into a report about a practice session. (This can include information from multiple sessions when a weekly summary is part of the report.)
func (*Report) RenderEmail ¶
RenderEmail renders the receiver report in a form suitable for emailing. The email is a multipart/alternative email with plain text and HTML variants. The parameter is the To: line of the email.
func (*Report) RenderHTML ¶
RenderHTML renders a report in HTML format. If links is set to a call sign, only messages from that call sign have embedded links. If links is an empty string, all messages have embedded links.
func (*Report) RenderPlainText ¶
RenderPlainText renders a report in plain text format.