model

package
v0.0.0-...-cb60ff4 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Item

type Item struct {
	Id string `json:"id"`
}

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"`
	Width       int32   `json:"width"`
	Height      int32   `json:"height"`
	IsPrivate   string  `json:"is_private" dynamo:"IsPrivate"`
}

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) ListItems

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

func (*Table) ListThumbnails

func (t *Table) ListThumbnails(max int64, scanKey dynamo.PagingKey, isPrivate bool) (*[]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"`
	Private   bool   `json:"private"`
	Width     int32  `json:"width"`
	Height    int32  `json:"height"`
	IsPrivate string `json:"is_private" dynamo:"IsPrivate"`
}

Jump to

Keyboard shortcuts

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