web

package
v0.0.0-...-0e337b7 Latest Latest
Warning

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

Go to latest
Published: May 31, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteScanHandler

func DeleteScanHandler(w http.ResponseWriter, r *http.Request)

func DoScansHandler

func DoScansHandler(w http.ResponseWriter, r *http.Request)

func GoogleAccountLinkingHandler

func GoogleAccountLinkingHandler(w http.ResponseWriter, r *http.Request)

func ListAlbumsHandler

func ListAlbumsHandler(w http.ResponseWriter, r *http.Request)

func ListMessageMetaDataHandler

func ListMessageMetaDataHandler(w http.ResponseWriter, r *http.Request)

func ListPhotosHandler

func ListPhotosHandler(w http.ResponseWriter, r *http.Request)

func ListScanDataHandler

func ListScanDataHandler(w http.ResponseWriter, r *http.Request)

func ListScansHandler

func ListScansHandler(w http.ResponseWriter, r *http.Request)

func StartWebServer

func StartWebServer()

Types

type DoScanRequest

type DoScanRequest struct {
	ScanType     string
	LocalScan    collect.LocalScan
	GDriveScan   collect.GDriveScan
	GStorageScan collect.GStorageScan
	GMailScan    collect.GMailScan
	GPhotosScan  collect.GPhotosScan
}

type DoScanResponse

type DoScanResponse struct {
	ScanId int `json:"scan_id"`
}

type ListAlbumsResponse

type ListAlbumsResponse struct {
	PageInfo PaginationInfo  `json:"pagination_info"`
	Albums   []collect.Album `json:"albums"`
}

type MessageMetadataResponse

type MessageMetadataResponse struct {
	PageInfo        PaginationInfo           `json:"pagination_info"`
	MessageMetadata []db.MessageMetadataRead `json:"message_metadata"`
}

type OAuthAccessResponse

type OAuthAccessResponse struct {
	AccessToken  string `json:"access_token"`
	RefreshToken string `json:"refresh_token"`
	Scope        string `json:"scope"`
	TokenType    string `json:"token_type"`
	ExpiresIn    int16  `json:"expires_in"`
}

type PaginationInfo

type PaginationInfo struct {
	Size int `json:"size"`
	Page int `json:"page"`
}

type PhotosMediaItemResponse

type PhotosMediaItemResponse struct {
	PageInfo        PaginationInfo           `json:"pagination_info"`
	PhotosMediaItem []db.PhotosMediaItemRead `json:"photos_media_item"`
}

type ScanDataResponse

type ScanDataResponse struct {
	PageInfo PaginationInfo `json:"pagination_info"`
	ScanData []db.ScanData  `json:"scan_data"`
}

type ScansResponse

type ScansResponse struct {
	PageInfo PaginationInfo `json:"pagination_info"`
	Scans    []db.Scan      `json:"scans"`
}

Jump to

Keyboard shortcuts

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