package
Version:
v0.0.0-...-88c5504
Opens a new window with list of versions in this module.
Published: Mar 19, 2019
License: MPL-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
-
func Create(au models.User, body []byte) (int, []byte)
-
func Delete(au models.User, user string) (int, []byte)
-
func Get(au models.User, u string) (int, []byte)
-
func List(au models.User) (int, []byte)
-
func Update(au models.User, user string, body []byte) (int, []byte)
Create : responds to POST /users/ by creating a user
on the data store
Delete : responds to DELETE /users/:id: by deleting an
existing user
Get : responds to GET /users/:id:/ with the specified
user details
List : responds to GET /users/ with a list of authorized users
Update : responds to PUT /users/:id: by updating an existing
user
Source Files
¶
Click to show internal directories.
Click to hide internal directories.