messagingweb

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConversationView

type ConversationView struct {
	ID, Name, Username, AvatarMediaID, Initial, LastMessage, LastAt string
	UnreadCount                                                     int
}

type Handler

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

func NewHandler

func NewHandler(service *messaging.Service, templates *template.Template) *Handler

func (*Handler) List

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

func (*Handler) Send

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

func (*Handler) Show

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

func (*Handler) StartDirect

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

type MemberView

type MemberView struct{ ID, Name, Username, AvatarMediaID, Initial string }

type MessageView

type MessageView struct {
	ID, SenderName, Body, SentAt string
	Own                          bool
}

type PageData

type PageData struct {
	User          identity.User
	Conversations []ConversationView
	Members       []MemberView
	Active        *ConversationView
	Messages      []MessageView
	CSRFToken     string
}

Jump to

Keyboard shortcuts

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