endpoints

package
v0.0.0-...-fc325db Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2016 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddAction

func AddAction(c *gin.Context)

AddAction adds a new action.

func AddCondition

func AddCondition(c *gin.Context)

AddCondition adds a new condition.

func AddDevice

func AddDevice(c *gin.Context)

AddDevice adds a new device.

func AddLog

func AddLog(c *gin.Context)

AddLog adds a new log entry for the current user.

func AddUser

func AddUser(c *gin.Context)

AddUser adds a new user.

func DeleteAction

func DeleteAction(c *gin.Context)

DeleteAction deletes an action based on the identifier.

func DeleteCondition

func DeleteCondition(c *gin.Context)

DeleteCondition deletes a condition based on the identifier.

func DeleteDevice

func DeleteDevice(c *gin.Context)

DeleteDevice deletes a device based on the identifier.

func DeleteLog

func DeleteLog(c *gin.Context)

DeleteLog deletes a device based on the identifier.

func DeleteUser

func DeleteUser(c *gin.Context)

DeleteUser deletes a user based on the identifier.

func GetAction

func GetAction(c *gin.Context)

GetAction gets an action based on the provided identifier.

func GetActions

func GetActions(c *gin.Context)

GetActions gets all actions.

func GetAllCount

func GetAllCount(c *gin.Context)

GetAllCount gets all the count of objects of current user for all endpoints.

func GetCondition

func GetCondition(c *gin.Context)

GetCondition gets a condition based on the provided identifier.

func GetConditions

func GetConditions(c *gin.Context)

GetConditions gets all conditions.

func GetCount

func GetCount(c *gin.Context)

GetCount gets the count of objects of current user for the provided endpoint. For example, when a user has 10 actions, the count will be 10. An error will be returned if the endpoint is not found.

func GetDevice

func GetDevice(c *gin.Context)

GetDevice gets a device based on the provided identifier.

func GetDevices

func GetDevices(c *gin.Context)

GetDevices gets all devices.

func GetLog

func GetLog(c *gin.Context)

GetLog gets a device based on the provided identifier.

func GetLogs

func GetLogs(c *gin.Context)

GetLogs gets all devices.

func GetUser

func GetUser(c *gin.Context)

GetUser gets a user based on the provided identifier.

func GetUsers

func GetUsers(c *gin.Context)

GetUsers gets all users.

func UpdateAction

func UpdateAction(c *gin.Context)

UpdateAction updates an action based on the identifer.

func UpdateCondition

func UpdateCondition(c *gin.Context)

UpdateCondition updates a condition based on the identifer.

func UpdateDevice

func UpdateDevice(c *gin.Context)

UpdateDevice updates a device based on the identifer.

func UpdateLog

func UpdateLog(c *gin.Context)

UpdateLog updates a device based on the identifer.

func UpdateUser

func UpdateUser(c *gin.Context)

UpdateUser updates a user based on the identifer.

Types

This section is empty.

Jump to

Keyboard shortcuts

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