controller

package
v0.0.0-...-974506c Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2020 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(art *mux.Router, db *sql.DB)

Register handlers

Types

type Controller

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

Controller holds DB

func NewController

func NewController(userRepo user.Repository, repo project.Repository) *Controller

NewController constructs a controller

func (*Controller) CreateHandler

func (c *Controller) CreateHandler(w http.ResponseWriter, r *http.Request)

CreateHandler creates project

func (*Controller) ListHandler

func (c *Controller) ListHandler(w http.ResponseWriter, r *http.Request)

ListHandler list projects

func (*Controller) ShowHandler

func (c *Controller) ShowHandler(w http.ResponseWriter, r *http.Request)

ShowHandler shows project

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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