controllers

package
v0.0.0-...-39a5f01 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HashPassword

func HashPassword(password string) (string, error)

function to hash password user

Types

type UserController

type UserController struct {
	DB *gorm.DB
}

func (*UserController) CreateUser

func (uc *UserController) CreateUser(ctx iris.Context)

func (*UserController) DeleteUser

func (uc *UserController) DeleteUser(ctx iris.Context)

func (*UserController) GetAll

func (uc *UserController) GetAll(ctx iris.Context)

func (*UserController) GetUser

func (uc *UserController) GetUser(ctx iris.Context)

func (*UserController) Login

func (uc *UserController) Login(ctx iris.Context)

func (*UserController) UpdateUser

func (uc *UserController) UpdateUser(ctx iris.Context)

Jump to

Keyboard shortcuts

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