Documentation ¶
Index ¶
- Constants
- Variables
- type GmailService
- func (s *GmailService) GetMessageFull(ctx context.Context, id string) (*message.Body, error)
- func (s *GmailService) GetMessageHeader(ctx context.Context, id string) (*message.Header, error)
- func (s *GmailService) GetProfile(ctx context.Context) (*message.Profile, error)
- func (s *GmailService) ListAll(ctx context.Context, handler func(message.ID) error) error
- func (s *GmailService) ListFrom(ctx context.Context, historyID uint64, handler func(message.ID) error) error
Constants ¶
View Source
const (
ReadonlyScope = gmail_api.GmailReadonlyScope
)
Variables ¶
View Source
var (
ErrMessageNotFound = errors.New("gmail message not found")
)
Functions ¶
This section is empty.
Types ¶
type GmailService ¶
type GmailService struct {
// contains filtered or unexported fields
}
GmailService provides access to messages stored in Google's GMail system.
func (*GmailService) GetMessageFull ¶
func (*GmailService) GetMessageHeader ¶
func (*GmailService) GetProfile ¶
Click to show internal directories.
Click to hide internal directories.