webui

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: May 5, 2018 License: MIT Imports: 12 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 MailboxDownloadAttach

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

MailboxDownloadAttach sends the attachment to the client; disposition: attachment, type: application/octet-stream

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 MailboxIndex

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

MailboxIndex renders the index page for a particular mailbox

func MailboxIndexFriendly

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

MailboxIndexFriendly handles pretty links to a particular mailbox. Renders a redirect

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

MailboxLink handles pretty links to a particular message. Renders a redirect

func MailboxList

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

MailboxList renders a list of messages in a mailbox. Renders a partial

func MailboxShow

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

MailboxShow renders a particular message from a mailbox. Renders an HTML partial

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 RecentMailboxes

func RecentMailboxes(ctx *web.Context) []string

RecentMailboxes returns a slice of the most recently accessed mailboxes

func RememberMailbox

func RememberMailbox(ctx *web.Context, mailbox string)

RememberMailbox manages the list of recently accessed mailboxes stored in the session

func RootIndex

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

RootIndex serves the Inbucket landing page

func RootMonitor

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

RootMonitor serves the Inbucket monitor page

func RootMonitorMailbox

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

RootMonitorMailbox serves the Inbucket monitor page for a particular mailbox

func RootStatus

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

RootStatus serves the Inbucket status page

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