handles

package
v1.1.2 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(w http.ResponseWriter, r *http.Request)

@Title CreateMessage @Description Creates a comment @Param body body logic.MessageEntry true "comment entry" @Success 200 {map[string]string} map[string]string @Failure 403 body is empty @router / [post]

func CreateType

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

@Title Create Comment @Description Creates a comment @Param body body logic.MessageEntry true "comment entry" @Success 200 {map[string]string} map[string]string @Failure 403 body is empty @router / [post]

func GetMessages

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

func SearchMessage

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

func SetupRoutes

func SetupRoutes(audience, issuer string) http.Handler

func UpdateMessage

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

@Title UpdateMessage @Description Updates a comment @Param body body logic.MessageEntry true "comment entry" @Success 200 {map[string]string} map[string]string @Failure 403 body is empty @router / [put]

func UpdateType

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

func ViewMessage

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

@Title GetMessages @Description Gets all comments related to a node. @Param typeID path string true "comment's type" @Param nodeID path string true "node's ID" @Success 200 {map[string]string} map[string]string @Failure 403 body is empty @router //:key [get]

func ViewType

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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