echosvr

package
v0.0.0-...-fe53453 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterEchoService

func RegisterEchoService(e *echo.Echo, srv EchoService)

RegisterEchoService is used to bind routers

func RegisterEchoServiceWithPrefix

func RegisterEchoServiceWithPrefix(e *echo.Echo, srv EchoService, prefix string)

RegisterEchoServiceWithPrefix is used to bind routers with custom prefix

Types

type EchoService

type EchoService interface {
	Echo(c echo.Context, req *Msg) (resp *Msg, err error)
}

EchoService is the interface contains all the controllers

type Msg

type Msg struct {
	Msg string `json:"msg"`
}

Msg

func (*Msg) GetMsg

func (r *Msg) GetMsg() string

Jump to

Keyboard shortcuts

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