go_api

package
v0.0.0-...-70a7bf8 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterEchoHandler

func RegisterEchoHandler(s server.Server, hdlr EchoHandler, opts ...server.HandlerOption) error

Types

type EchoHandler

type EchoHandler interface {
	Say(context.Context, *proto1.Request, *proto1.Response) error
	Hi(context.Context, *proto1.Request, *proto1.Response) error
}

type EchoService

type EchoService interface {
	Say(ctx context.Context, in *proto1.Request, opts ...client.CallOption) (*proto1.Response, error)
	Hi(ctx context.Context, in *proto1.Request, opts ...client.CallOption) (*proto1.Response, error)
}

func NewEchoService

func NewEchoService(name string, c client.Client) EchoService

Jump to

Keyboard shortcuts

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