models

package
v0.0.0-...-288be38 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2019 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteAllInventoryArchives

func DeleteAllInventoryArchives(svc *dynamodb.DynamoDB) (err error)

func DeleteInventoryArchive

func DeleteInventoryArchive(key string, svc *dynamodb.DynamoDB) (err error)

func GetLastActiveSession

func GetLastActiveSession(key string, svc *dynamodb.DynamoDB) (time.Time, error)

func SaveInventoryArchive

func SaveInventoryArchive(inventoryArchive InventoryArchive, svc *dynamodb.DynamoDB) (err error)

func SaveLastActiveSession

func SaveLastActiveSession(key string, svc *dynamodb.DynamoDB) (err error)

func SaveOauthToken

func SaveOauthToken(clientID string, token string, svc *dynamodb.DynamoDB) (err error)

func SavePlexMovie

func SavePlexMovie(movie Movie, svc *dynamodb.DynamoDB) (err error)

func SaveUpload

func SaveUpload(upload Upload, svc *dynamodb.DynamoDB) (err error)

Types

type InventoryArchive

type InventoryArchive struct {
	ArchiveDescription string `json:"archive_description"`
	ArchiveID          string `json:"archive_id"`
	CreationDate       string `json:"creation_date"`
	SHA256TreeHash     string `json:"sha256_tree_hash"`
	Size               int    `json:"size"`
}

func AllInventoryArchives

func AllInventoryArchives(svc *dynamodb.DynamoDB) (inventoryArchives []InventoryArchive, err error)

type Movie

type Movie struct {
	Metadata  plex.Metadata `json:"metadata"`
	Unwatched int           `json:"unwatched"`
	Title     string        `json:"title"`
}

func AllPlexMovies

func AllPlexMovies(svc *dynamodb.DynamoDB) (movies []Movie, err error)

type OauthToken

type OauthToken struct {
	ClientID string `json:"client_id"`
	Token    string `json:"token"`
}

type PlexSession

type PlexSession struct {
	ID   string    `json:"id"`
	Time time.Time `json:"time"`
}

type Upload

type Upload struct {
	Metadata              plex.Metadata                 `json:"metadata"`
	ArchiveCreationOutput glacier.ArchiveCreationOutput `json:"archive_creation_output"`
	Title                 string                        `json:"title"`
}

func AllUploads

func AllUploads(svc *dynamodb.DynamoDB) (uploads []Upload, err error)

func FindUploadByID

func FindUploadByID(title string, svc *dynamodb.DynamoDB) (Upload, error)

Jump to

Keyboard shortcuts

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