Documentation
¶
Index ¶
- type GmailAPI
- func (g *GmailAPI) ApplyBatch(query string, batch *gmail.BatchModifyMessagesRequest) ([]string, error)
- func (g *GmailAPI) Archive(id string) error
- func (g *GmailAPI) CreateFilterForGroupDelete(groupType, val string) error
- func (g *GmailAPI) Delete(id string) error
- func (g *GmailAPI) FullMessage(id string) (*gmail.Message, error)
- func (g *GmailAPI) Modify(id string, mod *gmail.ModifyMessageRequest) error
- func (g *GmailAPI) Query(query string) (*gmail.ListMessagesResponse, error)
- func (g *GmailAPI) RefreshFilters() error
- func (g *GmailAPI) RefreshMessages() ([]*gmail.Message, error)
- type Message
- type MessageList
- func (m *MessageList) ApplyBatch(accountID uint, query string, request *gmail.BatchModifyMessagesRequest) (int, error)
- func (m *MessageList) Archive(id string) error
- func (m *MessageList) Delete(id string) error
- func (m *MessageList) GetFullMessage(id string) (*Message, error)
- func (m *MessageList) OpenURL(id string) (string, error)
- func (m *MessageList) Refresh() error
- func (m *MessageList) RefreshFilters() error
- func (m *MessageList) Skip(id string)
- func (m *MessageList) Sort()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GmailAPI ¶
type GmailAPI struct { Service *gmail.Service Account *db.OAuthAccount }
func (*GmailAPI) ApplyBatch ¶
func (*GmailAPI) CreateFilterForGroupDelete ¶
CreateFilterForGroupDelete creates a Gmail filter for the specified group type and value.
func (*GmailAPI) FullMessage ¶
func (*GmailAPI) RefreshFilters ¶
func (*GmailAPI) RefreshMessages ¶
type Message ¶
type Message struct { Message *gmail.Message AccountID uint View models.EmailResponse }
type MessageList ¶
func New ¶
func New(accounts []db.OAuthAccount) (*MessageList, error)
func (*MessageList) ApplyBatch ¶
func (m *MessageList) ApplyBatch(accountID uint, query string, request *gmail.BatchModifyMessagesRequest) (int, error)
func (*MessageList) Archive ¶
func (m *MessageList) Archive(id string) error
func (*MessageList) Delete ¶
func (m *MessageList) Delete(id string) error
func (*MessageList) GetFullMessage ¶
func (m *MessageList) GetFullMessage(id string) (*Message, error)
func (*MessageList) Refresh ¶
func (m *MessageList) Refresh() error
func (*MessageList) RefreshFilters ¶
func (m *MessageList) RefreshFilters() error
func (*MessageList) Skip ¶
func (m *MessageList) Skip(id string)
func (*MessageList) Sort ¶
func (m *MessageList) Sort()
Click to show internal directories.
Click to hide internal directories.