controller

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct{}

Controller ...

func (*Controller) HandleMessage

func (ctrl *Controller) HandleMessage(c echo.Context) error

HandleMessage ...

type Controller2 added in v0.2.0

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

Controller2 ...

func NewController2 added in v0.2.0

func NewController2(p *service2.Provider) *Controller2

NewController2 ...

func (*Controller2) HandlePersonGet added in v0.2.0

func (ctrl *Controller2) HandlePersonGet(c echo.Context) error

HandlePersonGet ... curl localhost:8080/people/999

func (*Controller2) HandlePersonRegister added in v0.2.0

func (ctrl *Controller2) HandlePersonRegister(c echo.Context) error

HandlePersonRegister ... curl -X POST -H 'Content-type: application/json' -d '{"name": "Alice", "email": "alice@example.com"}' localhost:8080/people

Jump to

Keyboard shortcuts

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