mail

package
v0.0.0-...-72e8f9a Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGmailClient

func NewGmailClient(
	tkn *oauth2.Token,
	oauthConfig *oauth2.Config,
	gmailConfig *config.Gmail,
) api.Mail

Types

type GmailClient

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

func (*GmailClient) CreateLabel

func (g *GmailClient) CreateLabel(
	ctx context.Context, labelName string,
) (*entity.Label, error)

func (*GmailClient) GetUnreadMsgs

func (g *GmailClient) GetUnreadMsgs(ctx context.Context) <-chan entity.MessageWithError

func (*GmailClient) LabelMsg

func (g *GmailClient) LabelMsg(ctx context.Context, msg entity.MessageForLabeler) error

Jump to

Keyboard shortcuts

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