handler

package
v0.0.0-...-f80805b Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2019 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

Package handler implements HTTP request handlers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compose

func Compose(w http.ResponseWriter, r *http.Request)

Compose serves the compose mail page.

func Index

func Index(w http.ResponseWriter, r *http.Request)

Index serves the home page.

func LoadPasswd

func LoadPasswd(path string)

LoadPasswd reads the passwd file at path into memory.

func Message

func Message(w http.ResponseWriter, r *http.Request)

Message serves the message detail page.

func Send

func Send(w http.ResponseWriter, r *http.Request)

Send sends a mail message.

func Static

func Static(w http.ResponseWriter, r *http.Request)

Static serves static files.

func WithAuth

func WithAuth(fn func(w http.ResponseWriter, r *http.Request)) func(http.ResponseWriter, *http.Request)

WithAuth wraps an http.HandleFunc to require authentication.

Types

This section is empty.

Jump to

Keyboard shortcuts

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