profileweb

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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

func NewHandler

func NewHandler(profiles *profile.Service, contentService *content.Service, templates *template.Template) *Handler

func (*Handler) Settings

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

func (*Handler) Show

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

func (*Handler) Update

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

type ProfileData

type ProfileData struct {
	Profile   profile.Profile
	Posts     []ProfilePost
	Viewer    identity.User
	IsSelf    bool
	Initial   string
	Joined    string
	CSRFToken string
}

type ProfilePost

type ProfilePost struct {
	MediaID string
	AltText string
	Caption string
}

type SettingsData

type SettingsData struct {
	Profile   profile.Profile
	Choices   []profile.AvatarChoice
	User      identity.User
	CSRFToken string
	Error     string
}

Jump to

Keyboard shortcuts

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