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.
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 (*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.
Click to show internal directories.
Click to hide internal directories.