controller

package
v0.0.0-...-4f6e2c3 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2016 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeleteCtrlInterface

type DeleteCtrlInterface interface {
	Delete(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
}

DeleteCtrlInterface provides Delete method

type GetCtrlInterface

type GetCtrlInterface interface {
	Get(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
}

GetCtrlInterface provides Get method

type GetOneCtrlInterface

type GetOneCtrlInterface interface {
	GetOne(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
}

GetOneCtrlInterface provides GetOne method

type PatchCtrlInterface

type PatchCtrlInterface interface {
	Patch(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
}

PatchCtrlInterface provides Patch method

type PostCtrlInterface

type PostCtrlInterface interface {
	Post(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
}

PostCtrlInterface provides Post method

type PutCtrlInterface

type PutCtrlInterface interface {
	Put(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
}

PutCtrlInterface provides Put method

type RecipesCtrl

type RecipesCtrl struct {
	Svc service.RecipesSvcInterface
}

RecipesCtrl is a controller for user service

func NewRecipesCtrl

func NewRecipesCtrl(client *tarantool.Connection) *RecipesCtrl

NewRecipesCtrl initiates RecipesCtrl

func (*RecipesCtrl) GetOne

GetOne parses http request, calls service and writes http response

type StatusHealthzCtrl

type StatusHealthzCtrl struct{}

StatusHealthzCtrl is a controller for status check

func NewStatusHealthzCtrl

func NewStatusHealthzCtrl() *StatusHealthzCtrl

NewStatusHealthzCtrl initializes StatusHealthzCtrl

func (*StatusHealthzCtrl) Get

Get writes response with 204 status code

Jump to

Keyboard shortcuts

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