gmail

package
v0.0.0-...-0d320c5 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ReadonlyScope = gmail_api.GmailReadonlyScope
)

Variables

View Source
var (
	ErrMessageNotFound = errors.New("gmail message not found")
)

Functions

This section is empty.

Types

type GmailService

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

GmailService provides access to messages stored in Google's GMail system.

func New

func New(client *http.Client) (*GmailService, error)

func (*GmailService) GetMessageFull

func (s *GmailService) GetMessageFull(ctx context.Context, id string) (*message.Body, error)

func (*GmailService) GetMessageHeader

func (s *GmailService) GetMessageHeader(ctx context.Context, id string) (*message.Header, error)

func (*GmailService) GetProfile

func (s *GmailService) GetProfile(ctx context.Context) (*message.Profile, error)

func (*GmailService) ListAll

func (s *GmailService) ListAll(ctx context.Context, handler func(message.ID) error) error

func (*GmailService) ListFrom

func (s *GmailService) ListFrom(ctx context.Context, historyID uint64, handler func(message.ID) error) error

Jump to

Keyboard shortcuts

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