Handler mapΒΆ

The handler files are the implementation reference:

  • User.go: identity, sessions, profiles, email, and password flows.

  • Servers.go: server CRUD, membership, roles, and standing checks.

  • Channels.go: channels, messages, replies, edits, deletion, and invites.

  • Conversations.go: DMs, groups, and conversation messages.

  • Friends.go: requests and accepted friendships.

  • Attachments.go: multipart storage, previews, and access checks.

  • Reactions.go: add/remove reaction behavior.

  • Websocket.go: connection registries and broadcasts.

  • Admin.go and Reports.go: moderation workflows.

  • Email.go: token hashing, SMTP, verification, and reset flows.

  • HomePage.go: HTML template handlers.

Handlers should validate input, report database failures explicitly, and preserve the established status and redirect behavior.