package
0.2.4
Repository: https://github.com/godevsig/grepo.git
Documentation: pkg.go.dev

# README

Echo example demonstrates that:

  • server can handle requests from many clients simultaneously in auto scale way
  • client can use multiplexed connection that provides independent streams
  • subscrip/publish patten can be used in client and server

To start an echo server: go run server/echoserver.go

To start an echo client that sends echo request and gets echo response in multiplexed streams: go run client/echoclient.go

To start an echo client that subscrips "SubWhoElseEvent" event and continuously query the server by "WhoElse" message: go run client/echoclient.go -cmd whoelse

# Packages

No description provided by the author
No description provided by the author
No description provided by the author

# Functions

NewServer creates a new server instance.

# Constants

Publisher is the service(s) publisher.
ServiceEcho is the echo service.

# Structs

Reply is the message replied by server, with Num+1 and a signature of "yours echo.v1.0".
Request is the message sent by client.
Server is echo server.
SubWhoElseEvent is used for clients to subscribe who else event which reports new incoming connection to the server.
WhoElse reports all client addresses the server has so far.