Documentation
¶
Index ¶
- Constants
- func GetUserID(ctx context.Context, token *oauth2.Token, oauthConfig *oauth2.Config) (string, error)
- type CalendarClient
- func (c *CalendarClient) BuildEvent(eventCfg *models.EventConfig) (*calendar.Event, error)
- func (c *CalendarClient) GetCalendarList(ctx context.Context) (*calendar.CalendarList, error)
- func (c *CalendarClient) GetEventsBySyncToken(ctx context.Context, calendarID string, syncToken string) (*calendar.Events, error)
- func (c *CalendarClient) GetEventsByTimeRange(ctx context.Context, calendarID string, timeMin time.Time, timeMax time.Time) (*calendar.Events, error)
- func (c *CalendarClient) GetSyncToken(ctx context.Context, calendarID string) (string, error)
- type GmailClient
- func (c *GmailClient) GetHistoryID(ctx context.Context) (*uint64, error)
- func (c *GmailClient) GetHistoryWithID(ctx context.Context, historyID uint64, historyType string) (*gmail.ListHistoryResponse, error)
- func (c *GmailClient) GetUserEmail(ctx context.Context) (string, error)
- func (c *GmailClient) SendRawEmail(ctx context.Context, encodedMIME string) error
- type GmailToken
Constants ¶
View Source
const (
MAX_RESULTS = 50
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CalendarClient ¶
type CalendarClient struct {
// contains filtered or unexported fields
}
func InitCalendarClient ¶
func (*CalendarClient) BuildEvent ¶
func (c *CalendarClient) BuildEvent(eventCfg *models.EventConfig) (*calendar.Event, error)
func (*CalendarClient) GetCalendarList ¶
func (c *CalendarClient) GetCalendarList(ctx context.Context) (*calendar.CalendarList, error)
func (*CalendarClient) GetEventsBySyncToken ¶
func (*CalendarClient) GetEventsByTimeRange ¶
func (*CalendarClient) GetSyncToken ¶
type GmailClient ¶
type GmailClient struct {
// contains filtered or unexported fields
}
func InitGmailClient ¶
func (*GmailClient) GetHistoryID ¶
func (c *GmailClient) GetHistoryID(ctx context.Context) (*uint64, error)
func (*GmailClient) GetHistoryWithID ¶
func (*GmailClient) GetUserEmail ¶
func (c *GmailClient) GetUserEmail( ctx context.Context, ) (string, error)
func (*GmailClient) SendRawEmail ¶
func (c *GmailClient) SendRawEmail( ctx context.Context, encodedMIME string, ) error
type GmailToken ¶
Click to show internal directories.
Click to hide internal directories.