command
Version:
v0.0.0-...-b446b4a
Opens a new window with list of versions in this module.
Published: Jul 23, 2020
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
An alternative to gRPC.
Example
Follow https://twitchtv.github.io/twirp/docs/example.html.
# generate code
$ protoc --proto_path=$GOPATH/src:. --twirp_out=. --go_out=. ./rpc/haberdasher/service.proto
# serve :8080
go run server.go
# another shell
curl -X POST -H "Content-Type:application/json" -d '{"inches": 10}' -v http://localhost:8080/twirp/twirp.example.haberdasher.Haberdasher/MakeHat
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
rpc
|
|
haberdasher
Package haberdasher is a generated twirp stub package.
|
Package haberdasher is a generated twirp stub package. |
Click to show internal directories.
Click to hide internal directories.