echo

package
v0.0.0-...-aeaaf62 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

func New

func New(addr string) *Server

New returns a server.

func NewWithEcho

func NewWithEcho(addr string, e *echo.Echo) *Server

NewWithEcho returns a server with preconfigured echo.

func (*Server) RegisterHandler

func (s *Server) RegisterHandler(base string, handler ServiceHandler)

RegisterHandler configures the handler to handle http rpcx invoke. It wraps ServiceHandler into httprouter.Handle.

func (*Server) Serve

func (s *Server) Serve() error

Jump to

Keyboard shortcuts

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