controllers

package
Version: v0.0.0-...-cfce1d4 Latest Latest
Warning

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

Go to latest
Published: May 14, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthenticateUser

func AuthenticateUser(c *gin.Context)

AuthenticateUser authenticates an user

func CORSMiddleware

func CORSMiddleware() gin.HandlerFunc

CORSMiddleware enable CORS

func CheckJWT

func CheckJWT(secret string) gin.HandlerFunc

CheckJWT checks the JWT

func CreateIncident

func CreateIncident(c *gin.Context)

CreateIncident creates a incident

func CreateTask

func CreateTask(c *gin.Context)

CreateTask creates a task

func CreateUser

func CreateUser(c *gin.Context)

CreateUser creates an User

func DeleteIncident

func DeleteIncident(c *gin.Context)

DeleteIncident deletes a incident based on its id

func DeleteTask

func DeleteTask(c *gin.Context)

DeleteTask deletes a task based on its id

func DeleteUser

func DeleteUser(c *gin.Context)

DeleteUser deletes an user based on its email

func GetIncident

func GetIncident(c *gin.Context)

GetIncident based on its id

func GetIncidents

func GetIncidents(c *gin.Context)

GetIncidents Fetch all incidents

func GetTask

func GetTask(c *gin.Context)

GetTask based on its id

func GetTasks

func GetTasks(c *gin.Context)

GetTasks Fetch all tasks

func GetUser

func GetUser(c *gin.Context)

GetUser based on its email

func GetUsers

func GetUsers(c *gin.Context)

GetUsers Fetch all users

func UpdateIncident

func UpdateIncident(c *gin.Context)

UpdateIncident Updates a incident

func UpdateTask

func UpdateTask(c *gin.Context)

UpdateTask Updates a task

func UpdateUser

func UpdateUser(c *gin.Context)

UpdateUser Updates an user

Types

type ResponseObject

type ResponseObject map[string]interface{}

ResponseObject is a simple mapping obejct

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL