groups

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2016 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddGroup

func AddGroup(c *gin.Context)

AddGroup creates a new group

func GetGroup

func GetGroup(c *gin.Context)

GetHost returns the host as a serialized JSON object

func GetGroups

func GetGroups(c *gin.Context)

GetGroups returns groups as a serialized JSON object

func Middleware

func Middleware(c *gin.Context)

GroupMiddleware takes host_id parameter from gin.Context and fetches host data from the database it set host data under key host in gin.Context

func PatchGroup

func PatchGroup(c *gin.Context)

UpdateGroup will update the Group

func RemoveGroup

func RemoveGroup(c *gin.Context)

RemoveGroup will remove the Group from the models._CTX_GROUP collection

func UpdateGroup

func UpdateGroup(c *gin.Context)

UpdateGroup will update the Group

func VariableData

func VariableData(c *gin.Context)

Types

This section is empty.

Jump to

Keyboard shortcuts

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