Versions in this module Expand all Collapse all v0 v0.0.4 Dec 16, 2020 Changes in this version + var TemplateNotFoundErr = errors.Errorf("email template not found") + func PrepareMapProducedEmail(templates *MailTemplates, to string, kmlFile []byte, ...) (*mailer.EmailJob, error) + func PrepareSpottedInFlightEmail(templates *MailTemplates, to string, params SpottedInFlightParameters) (*mailer.EmailJob, error) + func PrepareTakeoffComplete(templates *MailTemplates, to string, params TakeoffCompleteParams) (*mailer.EmailJob, error) + func PrepareTakeoffFromAirport(templates *MailTemplates, to string, params TakeoffParams) (*mailer.EmailJob, error) + func PrepareTakeoffUnknownAirport(templates *MailTemplates, to string, params TakeoffUnknownAirportParams) (*mailer.EmailJob, error) + type Email string + const MapProducedEmail + const SpottedInFlight + const TakeoffComplete + const TakeoffFromAirport + const TakeoffUnknownAirport + func GetTemplates() []Email + func (e Email) String() string + type Location struct + Altitude int64 + Latitude float64 + Longitude float64 + type MailTemplates struct + func LoadMailTemplates(templates ...Email) (*MailTemplates, error) + func (t *MailTemplates) Get(email Email) (*template.Template, error) + type MapProducedParameters struct + CallSign string + DurationFmt string + EndLocation Location + EndTime time.Time + EndTimeFmt string + Icao string + MapUpdated bool + Project string + StartLocation Location + StartTime time.Time + StartTimeFmt string + type SpottedInFlightParameters struct + CallSign string + Icao string + Project string + StartLocation Location + StartTime time.Time + StartTimeFmt string + type TakeoffCompleteParams struct + AirportName string + CallSign string + Icao string + Project string + StartLocation Location + StartTimeFmt string + type TakeoffParams struct + AirportName string + CallSign string + Icao string + Project string + StartLocation Location + StartTimeFmt string + type TakeoffUnknownAirportParams struct + CallSign string + Icao string + Project string + StartLocation Location + StartTimeFmt string