gmail

package
v0.0.0-...-3d0d644 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exchange

func Exchange(ctx context.Context, credentialsFile string, code string) (string, error)

Types

type Client

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

func Setup

func Setup(ctx context.Context, credentialsFile string, token string) (*Client, string, error)

func (*Client) FetchEmails

func (c *Client) FetchEmails(ctx context.Context, label string, after time.Time) ([]Email, error)

type Email

type Email struct {
	ID          string
	From        string
	Subject     string
	Body        string
	Date        time.Time
	Attachments [][]byte
}

Jump to

Keyboard shortcuts

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