gmail

package
v0.0.0-...-520ee0d Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ClientID     string
	ClientSecret string
	RefreshToken string

	UserID      string
	LabelIDs    []string
	MaxResults  int64
	HTTPTimeout time.Duration
	Debug       bool
	Logger      *log.Logger
}

type Fetcher

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

func NewFetcher

func NewFetcher(cfg Config) (*Fetcher, error)

func NewFetcherWithClient

func NewFetcherWithClient(cfg Config, client gmailClient) (*Fetcher, error)

func (*Fetcher) FetchNewEmails

func (f *Fetcher) FetchNewEmails(ctx context.Context) ([]pkg.Email, error)

Jump to

Keyboard shortcuts

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