models

package
v0.0.0-...-8a6c13a Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiError

type ApiError struct {
	*Error `json:"apiError"`
}

type DataFile

type DataFile struct {
	Name              string `json:"name"`
	Url               string `json:"url"`
	MimeType          string `json:"mimeType"`
	AutoDeleteAt      int64  `json:"autoDeleteAt"`      // in milliseconds
	PrivateUrlExpires uint   `json:"privateUrlExpires"` // in seconds
	UploadedAt        int64  `json:"uploadedAt"`        // in milliseconds
	UpdatedAt         int64  `json:"updatedAt"`         // in milliseconds
	Size              int64  `json:"size"`              // in bytes
	IsPublic          bool   `json:"isPublic"`
}

type Error

type Error struct {
	Kind        string `json:"kind"`
	Description string `json:"description"`
}

type GOAuth2Token

type GOAuth2Token struct {
	AccessToken  string `json:"access_token"`
	TokenType    string `json:"token_type"`
	Scopes       string `json:"scope"` // space-separated list of scopes
	IdToken      string `json:"id_token"`
	RefreshToken string `json:"refresh_token"`
	ExpiresIn    int    `json:"expires_in"` // in seconds
}

GOAuth2Token For unmarshal purpose

type GoogleAccountInfo

type GoogleAccountInfo struct {
	*User
	Email         string `json:"email"`
	Picture       string `json:"picture"`
	ID            string `json:"id"`
	VerifiedEmail bool   `json:"verified_email"`
}

GoogleAccountInfo For unmarshal purpose

type GuestToken

type GuestToken struct {
	AccessToken string `json:"accessToken"`
	ExpiresIn   int    `json:"expiresIn"` // in seconds
}

type User

type User struct {
	UserName   string `json:"username"`
	TotalFiles int    `json:"totalFiles"`
}

Jump to

Keyboard shortcuts

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