Documentation ¶
Index ¶
- func Config(writer http.ResponseWriter, request *http.Request)
- func DownloadAttachment(writer http.ResponseWriter, request *http.Request)
- func GetConfig(writer http.ResponseWriter, request *http.Request)
- func GetMailCollection(writer http.ResponseWriter, request *http.Request)
- func GetMailItem(writer http.ResponseWriter, request *http.Request)
- func Home(writer http.ResponseWriter, request *http.Request)
- func SaveConfig(writer http.ResponseWriter, request *http.Request)
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 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.
Click to show internal directories.
Click to hide internal directories.