controllers

package
v0.0.0-...-7ad88a3 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2019 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Users

type Users struct {
	Db  *sql.DB
	Log *log.Logger
}

Users : struct for set Users Dependency Injection

func (*Users) Create

func (u *Users) Create(w http.ResponseWriter, r *http.Request)

Create new user

func (*Users) Delete

func (u *Users) Delete(w http.ResponseWriter, r *http.Request)

Delete user by id

func (*Users) List

func (u *Users) List(w http.ResponseWriter, r *http.Request)

List : http handler for returning list of users

func (*Users) Update

func (u *Users) Update(w http.ResponseWriter, r *http.Request)

Update user by id

func (*Users) View

func (u *Users) View(w http.ResponseWriter, r *http.Request)

View user by id

Jump to

Keyboard shortcuts

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