notify

package
v0.0.0-...-ca9cc58 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 17, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NotifyTemplate = `Hey,

Your email was opened!

Comments: %s
---
  IP: %s
  UA: %s
  Date: %s
---

Best Regards,
https://et.kfd.me
`
)

Variables

This section is empty.

Functions

func NewContent

func NewContent(n types.Notification,
	offset time.Duration, comments string) string

func ResetSender

func ResetSender(name, email string)

func TestNotifier

func TestNotifier(n Notifier) (string, error)

TestNotifier send email to null@kfd.me to check the API works

Types

type Notifier

type Notifier interface {
	Send(to, content string) (string, int, error)
}

func NewSendgridNotifier

func NewSendgridNotifier(API string) Notifier

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL