model

package
v0.0.0-...-f1a3dbe Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metadata

type Metadata struct {
	Id          string  `json:"id"`
	Timestamp   int64   `json:"timestamp"`
	Title       string  `json:"title"`
	Camera      string  `json:"camera"`
	Lens        string  `json:"lens"`
	Exposure    float64 `json:"exposure"`
	F           float64 `json:"f"`
	FocalLength int     `json:"focal_length"`
	ISO         int     `json:"iso"`
	SS          string  `json:"shutter_speed"`
}

type Table

type Table struct {
	dynamo.Table
}

func New

func New() *Table

func (*Table) GetMetadata

func (t *Table) GetMetadata(id string) (*Metadata, error)

func (*Table) ListThumbnails

func (t *Table) ListThumbnails(max int64, scanKey dynamo.PagingKey) (*[]Thumbnail, dynamo.PagingKey, error)

func (*Table) PutMetadata

func (t *Table) PutMetadata(meta *Metadata) error

type Thumbnail

type Thumbnail struct {
	Id        string `json:"id"`
	Timestamp int64  `json:"timestamp"`
}

Jump to

Keyboard shortcuts

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