Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

An example Go server built with Connect.

License

NotificationsYou must be signed in to change notification settings

connectrpc/examples-go

Build

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.

Example

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/Say

Legal

Offered under theApache 2 license.

About

An example Go server built with Connect.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Contributors13


[8]ページ先頭

©2009-2025 Movatter.jp