rest

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MailboxDeleteV1

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

MailboxDeleteV1 removes a particular message from a mailbox

func MailboxListV1

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

MailboxListV1 renders a list of messages in a mailbox

func MailboxMarkSeenV1

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

MailboxMarkSeenV1 marks a message as read.

func MailboxPurgeV1

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

MailboxPurgeV1 deletes all messages from a mailbox

func MailboxShowV1

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

MailboxShowV1 renders a particular message from a mailbox

func MailboxSourceV1

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

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

func MonitorAllMessagesV1

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

MonitorAllMessagesV1 is a web handler which upgrades the connection to a websocket and notifies the client of all messages received.

func MonitorMailboxMessagesV1

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

MonitorMailboxMessagesV1 is a web handler which upgrades the connection to a websocket and notifies the client of messages received by a particular mailbox.

func SetupRoutes

func SetupRoutes(r *mux.Router)

SetupRoutes populates the routes for the REST interface

Types

This section is empty.

Directories

Path Synopsis
Package client provides a basic REST client for Inbucket
Package client provides a basic REST client for Inbucket

Jump to

Keyboard shortcuts

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