client

package
v1.0.4-0...-325699b Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client provides a high level interface to abstract yopmail data fetching

func New

func New() (Client, error)

New creates a new client

func (Client) DeleteMail

func (c Client) DeleteMail(identifier string, mailID string) error

DeleteMail removes an email from yopmail inbox

func (Client) FlushMail

func (c Client) FlushMail(identifier string, mailID string) error

FlushMail removes all yopmail inbox mails

func (Client) GetMailPage

func (c Client) GetMailPage(identifier string, mailID string) (*goquery.Document, error)

GetMailPage fetches html page containing the email

func (Client) GetMailsPage

func (c Client) GetMailsPage(identifier string, page int) (*goquery.Document, error)

GetMailsPage fetches all html pages containing emails data

Jump to

Keyboard shortcuts

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