controllers

package
v0.0.0-...-bbee1d7 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2017 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserController

type UserController struct {
	// contains filtered or unexported fields
}

UserController represents the controller for operating on the User resource

func NewUserController

func NewUserController(db *gorm.DB) *UserController

NewUserController constructor

func (UserController) CreateUser

func (uc UserController) CreateUser(w http.ResponseWriter, r *http.Request)

CreateUser creates a new user resource

func (UserController) GetAllUsers

func (uc UserController) GetAllUsers(w http.ResponseWriter, r *http.Request)

GetAllUsers gets all the users

func (UserController) GetUser

func (uc UserController) GetUser(w http.ResponseWriter, r *http.Request)

GetUser retrieves an individual user resource

func (UserController) RemoveUser

func (uc UserController) RemoveUser(w http.ResponseWriter, r *http.Request)

RemoveUser removes an existing user resource

Jump to

Keyboard shortcuts

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