Documentation
¶
Index ¶
- func DeleteDevice(id int64, mustExist bool) error
- func DeleteResponse(id int64, mustExist bool) error
- func DeleteTask(id int64, mustExist bool) error
- func DeleteUser(id int64, mustExist bool) error
- func GrantAccess(u User, d Device)
- func Init(opts Options)
- func InsertDevice(d NewDevice) (int64, error)
- func InsertResponse(r NewResponse) (int64, error)
- func InsertTask(t NewTask) (int64, error)
- func InsertUser(u CreateUserDTO) (int64, error)
- func RevokeAccess(u User, d Device)
- type Controls
- type CreateUserDTO
- type Device
- type NewDevice
- type NewResponse
- type NewTask
- type Options
- type Response
- type Task
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteDevice ¶
Deletes a device, returning an error if it fails
func DeleteResponse ¶
Deletes a task, returning an error if it fails
func DeleteTask ¶
Deletes a task, returning an error if it fails
func DeleteUser ¶
Deletes a user, returning an error if it fails
func GrantAccess ¶
func InsertDevice ¶
Inserts a device, returning the assigned ID
func InsertResponse ¶
func InsertResponse(r NewResponse) (int64, error)
Inserts a response for a task, returning the assigned ID
func InsertTask ¶
Inserts a task, returning the assigned ID
func InsertUser ¶
func InsertUser(u CreateUserDTO) (int64, error)
Inserts a user, returning the assigned ID
func RevokeAccess ¶
Types ¶
type CreateUserDTO ¶
type NewResponse ¶
type Response ¶
type Response struct { Id int64 NewResponse }
Click to show internal directories.
Click to hide internal directories.