album

package
v0.0.0-...-e132916 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2025 License: MIT, MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DATA embed.FS
View Source
var MIT []byte

Functions

func List

func List(w io.Writer, params *ListParams)

func Listen

func Listen(listImages func() (images []string, export string),
	getImage func(string) []byte,
	msgs func(string) string,
	addr string,
	doprint func(r string) error,
	export http.Handler,
	options Options)

func PreviewImage

func PreviewImage(getImage func(name string) []byte, name string) []byte

func PrintingPage

func PrintingPage(w io.Writer, imgname string, imgsrc string, redirect string)

Types

type Image

type Image struct {
	URL          string
	PreviewImage []byte
}

func (Image) Preview

func (s Image) Preview() string

func (Image) Print

func (s Image) Print() string

func (Image) Share

func (s Image) Share() string

type ListParams

type ListParams struct {
	Imgs     []Image
	Download string

	Options Options
}

func ListParamsFromStrs

func ListParamsFromStrs(getImage func(string) []byte, s []string, dl string, opt Options) *ListParams

type Options

type Options uint8
const (
	OptionNoShare Options = 1 << iota
)

func (Options) NoShare

func (o Options) NoShare() bool

Jump to

Keyboard shortcuts

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