- Notifications
You must be signed in to change notification settings - Fork20
An example Go server built with Connect.
License
connectrpc/examples-go
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
examples-go contains an example RPC service built withConnect.Its API is defined by aProtocol Buffer schema, and the servicesupports thegRPC,gRPC-Web, andConnectprotocols.
The service emulates the DOCTOR script written for Joseph Weizenbaum's 1966ELIZA natural language processing system. It responds to yourstatements as a stereotypical psychotherapist might; since the original programwas a demonstration of the superficiality of human-computer communication, thetherapy is not very convincing.
For more on Connect, see theannouncement blog post, the documentationonconnectrpc.com, or theConnect repo.
The service is running onhttps://demo.connectrpc.com. To make an RPC with cURL,using the Connect protocol:
curl --header"Content-Type: application/json" \ --data'{"sentence": "I feel happy."}' \ https://demo.connectrpc.com/connectrpc.eliza.v1.ElizaService/Say
To make the same RPC, but usinggrpcurl and the gRPC protocol:
grpcurl \ -d'{"sentence": "I feel happy."}' \ demo.connectrpc.com:443 \ connectrpc.eliza.v1.ElizaService/SayOffered under theApache 2 license.
About
An example Go server built with Connect.
Topics
Resources
License
Code of conduct
Contributing
Security policy
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Uh oh!
There was an error while loading.Please reload this page.
Contributors13
Uh oh!
There was an error while loading.Please reload this page.