...

Package echo

import "github.com/google/s2a-go/example/echo"
Overview
Index

Overview ▾

Package echo contains the libraries for running an Echo server.

type Server

Server is an echo server used for testing.

type Server struct {
    pb.UnimplementedEchoServer
}

func (*Server) Echo

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

Echo uses the message, Msg, in EchoRequest to formulate EchoResponse.