Documentation
¶
Index ¶
Constants ¶
const ( CTXGroup = "group" CTXUser = "user" CTXGroupID = "group_id" )
Keys for group releated items stored in the Gin Context
Variables ¶
This section is empty.
Functions ¶
func AddGroup ¶
AddGroup is a Gin handler function which creates a new group using request payload. This accepts Group model.
func GetGroups ¶
GetGroups is a Gin handler function which returns list of Groups This takes lookup parameters and order parameters to filder and sort output data.
func Middleware ¶
Middleware generates a middleware handler function that works inside of a Gin request. This function takes host_id parameter from the Gin Context and fetches host data from the database it will set host data under key host in the Gin Context.
func PatchGroup ¶
PatchGroup is a Gin handler function which partially updates a group using request payload. This replaces specified fields in the database, empty "" fields will be removed from the database object. Unspecified fields will be ignored.
func RemoveGroup ¶
RemoveGroup is a Gin handler function which removes a group object from the database
func UpdateGroup ¶
UpdateGroup is a handler function which updates a group using request payload. This replaces all the fields in the database. empty "" fields and unspecified fields will be removed from the database object.
func VariableData ¶
VariableData is Gin handler function which returns host group variables
Types ¶
This section is empty.