gallery

package
v0.0.0-...-373972f Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gallery struct {
	// contains filtered or unexported fields
}

func New

func New(imgDir string) *Gallery

func (*Gallery) DeletePhoto

func (g *Gallery) DeletePhoto(name string) error

func (*Gallery) DownloadPhoto

func (g *Gallery) DownloadPhoto(url string, referrer *string) (*ImageFile, error)

func (*Gallery) ListFiles

func (g *Gallery) ListFiles() ([]ImageFile, error)

func (*Gallery) LookupFile

func (g *Gallery) LookupFile(name string) (*ImageFile, error)

func (*Gallery) UploadPhoto

func (g *Gallery) UploadPhoto(b64 string) (*ImageFile, error)

type ImageFile

type ImageFile struct {
	Name    string
	Updated int
}

Jump to

Keyboard shortcuts

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