client

package
v0.0.0-...-d609338 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2022 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Overview

Package client instantiates a gmail client.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ctx context.Context, opts *Opts) (*gmail.Service, error)

New returns an gmail client, initialized either from an existing token file, or from the web (in which case a new token file is created).

Types

type Opts

type Opts struct {
	TokenFile       string
	CredentialsFile string
	Timeout         time.Duration
}

Opts wraps the options to create a new client.

Jump to

Keyboard shortcuts

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