models

package
v0.0.0-...-2eb00bf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 2, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorEncoder

func ErrorEncoder(_ context.Context, err error, w http.ResponseWriter)

ErrorEncoder encodes incoming errors to write the corresponding http status header.

Types

type ErrAuthUrl

type ErrAuthUrl struct{}

func (ErrAuthUrl) Error

func (e ErrAuthUrl) Error() string

type ErrExpiredToken

type ErrExpiredToken struct{}

func (ErrExpiredToken) Error

func (e ErrExpiredToken) Error() string

type ErrInactiveToken

type ErrInactiveToken struct{}

func (ErrInactiveToken) Error

func (e ErrInactiveToken) Error() string

type ErrInvalidCookie

type ErrInvalidCookie struct{}

func (ErrInvalidCookie) Error

func (e ErrInvalidCookie) Error() string

type ErrInvalidData

type ErrInvalidData struct {
	Field string
}

func (ErrInvalidData) Error

func (e ErrInvalidData) Error() string

type ErrInvalidSignature

type ErrInvalidSignature struct{}

func (ErrInvalidSignature) Error

func (e ErrInvalidSignature) Error() string

type ErrInvalidToken

type ErrInvalidToken struct{}

func (ErrInvalidToken) Error

func (e ErrInvalidToken) Error() string

type ErrMalformedToken

type ErrMalformedToken struct{}

func (ErrMalformedToken) Error

func (e ErrMalformedToken) Error() string

type Message

type Message struct {
	ID           string             `json:"id"`
	HistoryID    uint64             `json:"historyId"`
	InternalDate int64              `json:"internalDate"`
	LabelIDS     []string           `json:"labelIds"`
	Payload      *gmail.MessagePart `json:"payload"`
	SizeEstimate int64              `json:"sizeEstimate"`
	Snippet      string             `json:"snippet"`
	ThreadID     string             `json:"threadId"`
	HTML         string             `json:"html"`
}

type Token

type Token struct {
	ID              string
	UserID          string
	AccessToken     string
	TokenExpiration time.Time
	RefreshToken    string
	TokenType       string
}

type User

type User struct {
	ID         string `json:"id"`
	Name       string `json:"name"`
	GivenName  string `json:"given_name"`
	FamilyName string `json:"family_name"`
	Picture    string `json:"picture"`
	Locale     string `json:"locale"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL