gmail

package
v0.0.0-...-f26ed72 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2023 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NONE         = iota
	ADD          = iota
	DELETE       = iota
	WRITE_LABELS = iota
)

Variables

View Source
var (

	// Parallelism.
	MessageBufferSize   = 128
	ConcurrentDownloads = 8
)

Functions

This section is empty.

Types

type Gmail

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

Gmail represents a Gmail client.

func NewGmail

func NewGmail(dir string, label string, serviceAccountJSONFile string, toImpersonate string) (*Gmail, error)

Creates a new Gmail synchronizer.

func (*Gmail) Sync

func (g *Gmail) Sync(full bool, progress chan<- lib.Progress) error

Jump to

Keyboard shortcuts

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