This section describes the networking features, which allow communication over HTTP and RPC (Remote procedure call) protocols. You can also advertise and discover Services on your local network.


These are the units you can embed into your application:
  • gopi.Server A HTTP or RPC server which can serve requests;
  • gopi.ConnPool A pool of connections to remote servers;
  • gopi.ServiceDiscovery A mechanism to either discovery available network services or register services;
  • gopi.PingService An RPC service which responds to requests with an empty response;
  • gopi.InputService As RPC service which emits input events (key presses, etc.);
  • gopi.HttpStatic A HTTP service which serves any file or folder on the filesystem.
These are examples you can look at which demonstate the features:
Copy link