controller

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2019 License: NCSA Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FinalizeDecision

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

Finalizes / unfinalizes the decision associated with the provided ID. Finalized decisions are blocked from further review, unless unfinalized.

func GetCurrentDecision

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

Endpoint to get the decision for the current user

func GetDecision

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

Endpoint to get the decision for the specified user

func GetFilteredDecisions

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

Endpoint to get decisions based on a filter

func GetStats

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

Endpoint to get decision stats

func SetupController

func SetupController(route *mux.Route)

func UpdateDecision

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

Endpoint to update the decision for the specified user. If the existing decision is finalized, an error is reported.

Types

This section is empty.

Jump to

Keyboard shortcuts

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