storj/satellite/overlay/mail.go
Cameron a2ca443e29 satellite/overlay: send Node Online emails
Send an email when a node goes from offline to online.

Change-Id: I82d3f9001b9b0669e096d784edf097ffdcb1697d
2022-10-20 18:56:35 +00:00

18 lines
467 B
Go

// Copyright (C) 2022 Storj Labs, Inc.
// See LICENSE for copying information
package overlay
// NodeOnlineEmail is mailservice template with node online data.
type NodeOnlineEmail struct {
Origin string
NodeID string
Satellite string
}
// Template returns email template name.
func (*NodeOnlineEmail) Template() string { return "NodeOnline" }
// Subject gets email subject.
func (*NodeOnlineEmail) Subject() string { return "Your node is back online" }