a2ca443e29
Send an email when a node goes from offline to online. Change-Id: I82d3f9001b9b0669e096d784edf097ffdcb1697d
18 lines
467 B
Go
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" }
|