echo

package
v0.0.0-...-b563d55 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package echo is the core logic for echo server and client.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BindAngryServer

func BindAngryServer(p *apiserver.ServerParams)

BindAngryServer configures an API server to run with the services in this package.

func BindServer

func BindServer(p *apiserver.ServerParams)

BindServer configures an API server to run with the services in this package.

func RunClient

func RunClient(address string, message string) string

RunClient starts a new client and connects to the echo server.

Types

type Server

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

Server is an example server for using gRPC in Unary and bi-directional stream modes.

func NewServer

func NewServer() *Server

NewServer creates a new server.

func (*Server) Echo

func (s *Server) Echo(ctx context.Context, req *pb.EchoRequest) (*pb.EchoResponse, error)

Echo returns the input text back to the caller.

func (*Server) EchoStream

func (s *Server) EchoStream(stream pb.Echo_EchoStreamServer) error

EchoStream returns the input text back to the caller in a bi-directional stream.

Jump to

Keyboard shortcuts

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