controllers

package
v0.0.0-...-e47413e Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2015 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Config

func Config(writer http.ResponseWriter, request *http.Request)

Controller for the configuration page.

func DownloadAttachment

func DownloadAttachment(writer http.ResponseWriter, request *http.Request)

Controller used to download an attachment.

func GetConfig

func GetConfig(writer http.ResponseWriter, request *http.Request)

func GetMailCollection

func GetMailCollection(writer http.ResponseWriter, request *http.Request)

This function handles a web GET request for "/mails". It queries the storage engine for all mail items, sets the content type header to text/json, and returns a JSON-serialized array of mail data.

func GetMailItem

func GetMailItem(writer http.ResponseWriter, request *http.Request)

func Home

func Home(writer http.ResponseWriter, request *http.Request)

Controller for the home page

func SaveConfig

func SaveConfig(writer http.ResponseWriter, request *http.Request)

Saves configuration values passed in from the administrator form. This will write new settings to the config.json file. Note that changes don't take effect until server restart.

Types

This section is empty.

Jump to

Keyboard shortcuts

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