echoserver

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2016 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(impl Interface, opts ...thrift.RegisterOption) []transport.Registrant

New prepares an implementation of the Echo service for registration.

handler := EchoHandler{}
dispatcher.Register(echoserver.New(handler))

Types

type Interface

type Interface interface {
	Echo(
		ctx context.Context,
		reqMeta yarpc.ReqMeta,
		Ping *echo.Ping,
	) (*echo.Pong, yarpc.ResMeta, error)
}

Interface is the server-side interface for the Echo service.

Jump to

Keyboard shortcuts

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