Documentation ¶
Index ¶
- func ExportMessages(msgs chan *gmail.Message, total int64, pui *ui.ProgressUI, ...) *excelize.File
- func GetClient(config *oauth2.Config, TokenFile string, BatchMode bool, NoBrowser bool, ...) *http.Client
- func GetGmailSrv(CredsFile string, TokenFile string, BatchMode bool, NoBrowser bool, ...) (*gmail.Service, error)
- func GetLabelsByIdOrName(srv *gmail.Service, user string, refs ...string) ([]*gmail.Label, error)
- func GetMessages(srv *gmail.Service, messagesLimit int, pui *ui.ProgressUI, user string, ...) (chan *gmail.Message, int64)
- func ListLabels(srv *gmail.Service, user string) ([]*gmail.Label, error)
- func RemoveNils[C any](s []*C) []*C
- type LocalAttachment
- type SaveMsgAttachments
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExportMessages ¶
func ExportMessages(msgs chan *gmail.Message, total int64, pui *ui.ProgressUI, saveMsgAttachments SaveMsgAttachments) *excelize.File
func GetClient ¶
func GetClient(config *oauth2.Config, TokenFile string, BatchMode bool, NoBrowser bool, NoTokenSave bool) *http.Client
Retrieve a token, saves the token, then returns the generated client.
func GetGmailSrv ¶
func GetLabelsByIdOrName ¶ added in v0.0.2
func GetMessages ¶
func ListLabels ¶
func RemoveNils ¶ added in v0.0.2
func RemoveNils[C any](s []*C) []*C
Types ¶
type SaveMsgAttachments ¶
type SaveMsgAttachments func(*gmail.Message) ([]*LocalAttachment, error)
Click to show internal directories.
Click to hide internal directories.