rest

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 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 *httpd.Context) (err error)

MailboxDeleteV1 removes a particular message from a mailbox

func MailboxListV1

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

MailboxListV1 renders a list of messages in a mailbox

func MailboxPurgeV1

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

MailboxPurgeV1 deletes all messages from a mailbox

func MailboxShowV1

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

MailboxShowV1 renders a particular message from a mailbox

func MailboxSourceV1

func MailboxSourceV1(w http.ResponseWriter, req *http.Request, ctx *httpd.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 *httpd.Context) (err error)

func MonitorMailboxMessagesV1

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

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