albumweb

package
v0.0.0-...-61c90a5 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlbumPost

type AlbumPost struct{ MediaID, AltText, Caption, AuthorName, Username string }

type AlbumView

type AlbumView struct {
	ID, Title, Description, LocationName, CreatorName, CoverMediaID, DateLabel string
	PostCount                                                                  int
}

type DetailData

type DetailData struct {
	Album     AlbumView
	Posts     []AlbumPost
	User      identity.User
	CSRFToken string
}

type Handler

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

func NewHandler

func NewHandler(albums *album.Service, contentService *content.Service, templates *template.Template) *Handler

func (*Handler) Create

func (h *Handler) Create(w http.ResponseWriter, r *http.Request)

func (*Handler) List

func (h *Handler) List(w http.ResponseWriter, r *http.Request)

func (*Handler) New

func (h *Handler) New(w http.ResponseWriter, r *http.Request)

func (*Handler) Show

func (h *Handler) Show(w http.ResponseWriter, r *http.Request)

type ListData

type ListData struct {
	Albums    []AlbumView
	User      identity.User
	CSRFToken string
}

type NewData

type NewData struct {
	User                                                                     identity.User
	CSRFToken, Error, Title, Description, LocationName, EventStart, EventEnd string
}

Jump to

Keyboard shortcuts

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