users

package
v0.0.0-...-88c5504 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2019 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(au models.User, body []byte) (int, []byte)

Create : responds to POST /users/ by creating a user on the data store

func Delete

func Delete(au models.User, user string) (int, []byte)

Delete : responds to DELETE /users/:id: by deleting an existing user

func Get

func Get(au models.User, u string) (int, []byte)

Get : responds to GET /users/:id:/ with the specified user details

func List

func List(au models.User) (int, []byte)

List : responds to GET /users/ with a list of authorized users

func Update

func Update(au models.User, user string, body []byte) (int, []byte)

Update : responds to PUT /users/:id: by updating an existing user

Types

This section is empty.

Jump to

Keyboard shortcuts

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