Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chore ¶
Chore checks whether any emails need to be re-sent.
architecture: Chore
func NewChore ¶
func NewChore(log *zap.Logger, tokens *consoleauth.Service, usersDB console.Users, mailservice *mailservice.Service, config Config, address, supportURL, scheduleMeetingURL string) *Chore
NewChore instantiates Chore.
func (*Chore) TestSetLinkAddress ¶
TestSetLinkAddress allows the email link address to be reconfigured. The address points to the satellite web server's external address. In the test environment the external address is not set by a config. It is an internal address, and we don't know what the port is until after it has been assigned. With this method, we get the address from the api in testplanet and assign it here.
func (*Chore) TestUseBlockingSend ¶
func (chore *Chore) TestUseBlockingSend()
TestUseBlockingSend allows us to set the chore to use a blocking send method. Using a blocking send method allows us to test that links are clicked without potential race conditions.
type Config ¶
type Config struct { FirstVerificationReminder time.Duration `help:"amount of time before sending first reminder to users who need to verify their email" default:"24h"` SecondVerificationReminder time.Duration `help:"amount of time before sending second reminder to users who need to verify their email" default:"120h"` TrialExpirationReminder time.Duration `help:"amount of time before trial expiration to send trial expiration reminder" default:"72h"` ChoreInterval time.Duration `help:"how often to send reminders to users who need to verify their email" default:"24h"` EnableTrialExpirationReminders bool `help:"enable sending emails about trial expirations" default:"false"` Enable bool `help:"enable sending emails reminding users to verify their email" default:"true"` }
Config contains configurations for email reminders.