email

package
v0.0.0-...-154dcf8 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmailClient

type EmailClient struct {
	Username string
	Password string
	Running  bool
	Client   *client.Client
	ImapMu   sync.Mutex
}

func InitImap

func InitImap(username, password string) (*EmailClient, error)

func NewEmailClient

func NewEmailClient(user, pass string) (*EmailClient, error)

func (*EmailClient) FetchOtp

func (e *EmailClient) FetchOtp(email string, timeBefore time.Time) (string, error)

Jump to

Keyboard shortcuts

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