controllers

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2017 License: MIT Imports: 9 Imported by: 1

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(UserRepo repository.IUserRepositoryInterface) UserController

NewUserController creates UserController

func (*UserController) CheckToken

func (uc *UserController) CheckToken(w http.ResponseWriter, r *http.Request, p httprouter.Params)

CheckToken controller function

func (*UserController) Login

Login controller function

func (*UserController) Logout

Logout controller function

func (*UserController) Register

Register function to register an user recieved in json format

Jump to

Keyboard shortcuts

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