googlemail

package
v0.0.0-...-6e05819 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckOnline

func CheckOnline() bool

CheckOnline will check google servers availability.

func GetClient

func GetClient(ctx context.Context, config *oauth2.Config, systemKeyring bool) (*http.Client, error)

Retrieve a token, saves the token, then returns the generated client.

func GetConfig

func GetConfig(clientID string) (*oauth2.Config, error)

GetConfig will return oauth2 config for clientID.

func GetGMailCount

func GetGMailCount(ctx context.Context, channel chan<- string, acc accounts.Account, systemKeyring bool)

GetMailCount - new goroutine for checking emails

func SetConfig

func SetConfig(clientID, filename string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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