gphotos

package
v0.0.0-...-a602de9 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BatchGetResult

type BatchGetResult struct {
	MediaItemResults []struct {
		MediaItem photoslibrary.MediaItem `json:"mediaItem"`
	} `json:"mediaItemResults"`
}

type PhotoSync

type PhotoSync struct {
	Image        models.Image
	GphotosPhoto models.GphotosPhoto
}

type PhotoSyncJob

type PhotoSyncJob struct {
	*photoslibrary.MediaItem
	// contains filtered or unexported fields
}

type Photos

type Photos struct {
	ImageStore image.Store
	// contains filtered or unexported fields
}

func New

func New(db *db.Client, g *google.Client, imageStore image.Store) *Photos

func (*Photos) GetAvailableAlbums

func (p *Photos) GetAvailableAlbums(ctx context.Context) ([]photoslibrary.Album, error)

func (*Photos) GetMediaItems

func (p *Photos) GetMediaItems(ctx context.Context, ids []string) (map[string]photoslibrary.MediaItem, error)

func (*Photos) GetTest

func (p *Photos) GetTest(ctx context.Context) (interface{}, error)

func (*Photos) SyncAlbums

func (p *Photos) SyncAlbums(ctx context.Context) error

Jump to

Keyboard shortcuts

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