handles

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2020 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateMessage

func CreateMessage(smtpUser, smtpPass, smtpHost string, smtpPort int) http.HandlerFunc

@Title SendMessage @Description Sends a Message @Param body body comms.Message true "body for message content" @Success 200 {map[string]string} map[string]string @Failure 403 body is empty @router / [post]

func GetMessage

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

func SearchMessages

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

@Title GetMessages @Description Gets all Messages @Success 200 {[]comms.Message]} []comms.Message] @router /all/:pagesize [get]

func SetupRoutes

func SetupRoutes(issuer, audience, smtpUser, smtpPass, smtpHost string, smtpPort int) http.Handler

func ViewMessage

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

@Title GetMessage @Description Gets a comms message @Param key path string true "comms key" @Success 200 {core.Message} core.Message @router /:key [get]

Types

This section is empty.

Jump to

Keyboard shortcuts

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