controller

package
v0.0.0-...-c3cdff1 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2022 License: Unlicense Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TodosController

type TodosController interface {
	SelectAll(writer http.ResponseWriter, request *http.Request, params httprouter.Params)
	SelectById(writer http.ResponseWriter, request *http.Request, params httprouter.Params)
	Create(writer http.ResponseWriter, request *http.Request, params httprouter.Params)
	Update(writer http.ResponseWriter, request *http.Request, params httprouter.Params)
	Delete(writer http.ResponseWriter, request *http.Request, params httprouter.Params)
}

func NewTodosController

func NewTodosController(TodosService service.TodosService) TodosController

type TodosControllerImpl

type TodosControllerImpl struct {
	TodosService service.TodosService
}

func (*TodosControllerImpl) Create

func (controller *TodosControllerImpl) Create(writer http.ResponseWriter, request *http.Request, params httprouter.Params)

func (*TodosControllerImpl) Delete

func (controller *TodosControllerImpl) Delete(writer http.ResponseWriter, request *http.Request, params httprouter.Params)

func (*TodosControllerImpl) SelectAll

func (controller *TodosControllerImpl) SelectAll(writer http.ResponseWriter, request *http.Request, params httprouter.Params)

func (*TodosControllerImpl) SelectById

func (controller *TodosControllerImpl) SelectById(writer http.ResponseWriter, request *http.Request, params httprouter.Params)

func (*TodosControllerImpl) Update

func (controller *TodosControllerImpl) Update(writer http.ResponseWriter, request *http.Request, params httprouter.Params)

Jump to

Keyboard shortcuts

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