control

package
v0.0.0-...-1309449 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddBarkAlertPostmanToUser

func AddBarkAlertPostmanToUser(c *gin.Context)

@Summary Add BarkAlert postman to user @Tags User @Description send alert to user @Accept json @Produce json @Param id path string true "The user ID" @Param alertBody body model.BarkAlert true "The bark alert postman" @Success 200 {object} model.User "The user after add bark alert postman" @Failure 400 {object} utils.WebResponse "Bad request" @Failure 404 {object} utils.WebResponse "Not found" @Failure 500 {object} utils.WebResponse "Internal error" @Router /users/{id}/bark [post]

func GetUser

func GetUser(c *gin.Context)

@Summary Get user by ID @Tags User @Description get user by ID @Accept json @Produce json @Param id path string true "The user ID" @Success 200 {object} model.User "The user info" @Failure 400 {object} utils.WebResponse "Bad request" @Failure 404 {object} utils.WebResponse "Not found" @Failure 500 {object} utils.WebResponse "Internal error" @Router /users/{id} [get]

func GetUsers

func GetUsers(c *gin.Context)

@Summary Get all users @Tags User @Description get all users @Accept json @Produce json @Success 200 {object} []model.User "All the user infos" @Failure 400 {object} utils.WebResponse "Bad request" @Failure 500 {object} utils.WebResponse "Internal error" @Router /users [get]

func Index

func Index(c *gin.Context)

Index ... @Summary Index @Tags index @Accept json @Produce json @Success 200 {string} string "Here is the neuron server" @Router / [get]

func NewUser

func NewUser(c *gin.Context)

@Summary Add a new user @Tags User @Description add a new user @Accept json @Produce json @Param body body model.UserInput true "The user input info" @Success 200 {object} model.User "The user info" @Failure 400 {object} utils.WebResponse "Bad request" @Failure 500 {object} utils.WebResponse "Internal error" @Router /users [post]

func NotFinished

func NotFinished(c *gin.Context)

NotFinished not implemented

func NotSupport

func NotSupport(c *gin.Context)

NotSupport ...

func SendAlertToUser

func SendAlertToUser(c *gin.Context)

@Summary Send alert to user @Tags User @Description send alert to user @Accept json @Produce json @Param id path string true "The user ID" @Param alertBody body model.AlertBody true "The alert body" @Success 200 {object} utils.WebResponse "Ok" @Failure 400 {object} utils.WebResponse "Bad request" @Failure 404 {object} utils.WebResponse "Not found" @Failure 500 {object} utils.WebResponse "Internal error" @Router /users/{id}/send [post]

Types

This section is empty.

Jump to

Keyboard shortcuts

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