Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

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

New prepares an implementation of the Hello service for registration.

handler := HelloHandler{}
dispatcher.Register(helloserver.New(handler))

Types

type Interface

type Interface interface {
	Echo(
		ctx context.Context,
		Echo *echo.EchoRequest,
	) (*echo.EchoResponse, error)
}

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

Source Files