Documentation ¶
Index ¶
- Variables
- type Client
- func (c Client[M]) DeleteMail(identifier string, mailID string) error
- func (c Client[M]) FlushMail(identifier string, mailID string) error
- func (c Client[M]) GetMailPage(identifier string, mailID string) (doc M, err error)
- func (c Client[M]) GetMailsPage(identifier string, page int) (*goquery.Document, error)
- type MailDoc
- type MailHTMLDoc
- type MailSourceDoc
- type MailTextDoc
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCaptcha = errors.New("failure when trying to access content: a CAPTCHA is probably activated, look to the web interface")
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client[M MailDoc] struct { // contains filtered or unexported fields }
Client provides a high level interface to abstract yopmail data fetching
func (Client[M]) DeleteMail ¶
DeleteMail removes an email from yopmail inbox
func (Client[M]) GetMailPage ¶
GetMailPage fetches html page containing the email
type MailDoc ¶
type MailDoc interface { MailHTMLDoc | MailSourceDoc | MailTextDoc Find(selector string) *goquery.Selection }
type MailHTMLDoc ¶
type MailSourceDoc ¶
type MailTextDoc ¶
Click to show internal directories.
Click to hide internal directories.