mail

package
v0.0.0-...-310c666 Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound = errors.New("mail not found")
)

Functions

func RandString

func RandString(l int) string

Types

type Mailer

type Mailer interface {
	// GetContent should take the email address and return the received content
	// if the mail wasn't be found in time the function MUST return ErrNotFound
	GetContent(address string) (string, error)

	RandomAddress() string
}

Mailer interface

func NewTidalMailer

func NewTidalMailer(domain string) Mailer

NewTidalMailer return a Mailer using tidal.lol temp mail api please consider supporting the creator financially: https://t.me/modules

type Tidal

type Tidal struct {
	// contains filtered or unexported fields
}

func (*Tidal) GetContent

func (t *Tidal) GetContent(address string) (string, error)

func (*Tidal) RandomAddress

func (t *Tidal) RandomAddress() string

Jump to

Keyboard shortcuts

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