controllers

package
v0.0.0-...-baf0b24 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2020 License: MIT 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 for User Data

func NewUserController

func NewUserController(s *mgo.Session) *UserController

NewUserController Create a new User Controller

func (UserController) AddUser

AddUser creates a new user

func (UserController) DeleteUser

func (uc UserController) DeleteUser(w http.ResponseWriter, req *http.Request, p httprouter.Params)

DeleteUser removes an existing user

func (UserController) GetUser

GetUser - Reads an existing user

Jump to

Keyboard shortcuts

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