webui

package
v3.1.0-beta2 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package webui powers Inbucket's web GUI

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MailboxHTML

func MailboxHTML(w http.ResponseWriter, req *http.Request, ctx *web.Context) (err error)

MailboxHTML displays the HTML content of a message. Renders a partial

func MailboxMessage

func MailboxMessage(w http.ResponseWriter, req *http.Request, ctx *web.Context) (err error)

MailboxMessage outputs a particular message as JSON for the UI.

func MailboxSource

func MailboxSource(w http.ResponseWriter, req *http.Request, ctx *web.Context) (err error)

MailboxSource displays the raw source of a message, including headers. Renders text/plain

func MailboxViewAttach

func MailboxViewAttach(w http.ResponseWriter, req *http.Request, ctx *web.Context) (err error)

MailboxViewAttach sends the attachment to the client for online viewing

func RootGreeting

func RootGreeting(w http.ResponseWriter, req *http.Request, ctx *web.Context) (err error)

RootGreeting serves the Inbucket greeting.

func RootStatus

func RootStatus(w http.ResponseWriter, req *http.Request, ctx *web.Context) (err error)

RootStatus renders portions of the server configuration as JSON.

func SetupRoutes

func SetupRoutes(r *mux.Router)

SetupRoutes populates routes for the webui into the provided Router.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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