gmailext

package
v0.0.0-...-e5aba8a Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Authorize

func Authorize(
	ctx context.Context,
	gmailCredentials string,
	opener interface {
		Open(context.Context, string) error
	},
	port uint,
	baseTransport http.RoundTripper,
) (token *oauth2.Token, retErr error)

func Get

func Get(
	ctx context.Context,
	service *gmail.Service,
	userID string,
	messageID string,
) (*gmail.Message, error)

func Iter

func Iter(
	ctx context.Context,
	service *gmail.Service,
	userID string,
	query string,
	process func(context.Context, *gmail.Message) (bool, error),
) error

func NewService

func NewService(
	ctx context.Context,
	gmailCredentials string,
	tokenReader io.Reader,
	baseTransport http.RoundTripper,
) (*gmail.Service, error)

func StringBody

func StringBody(message *gmail.Message) (string, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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