Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// Query narrows what is listed, in the same format as the Gmail search box.
// Empty lists every draft.
Query string
// IncludeSpamTrash lists drafts in spam and trash too, which Gmail leaves out
// otherwise.
IncludeSpamTrash bool
// MaxResults is how many are asked for per page. Zero takes Gmail's own
// default, which is a hundred; the most it serves is five hundred.
MaxResults int
// PageToken asks for the page after the one that returned it.
PageToken string
FetchOptions []fetch_config.Option
}
type Option ¶
type Option func(*Config)
func WithFetchOptions ¶
func WithFetchOptions(fetchOptions ...fetch_config.Option) Option
func WithIncludeSpamTrash ¶
func WithMaxResults ¶
func WithPageToken ¶
Click to show internal directories.
Click to hide internal directories.