twirp

command
v0.0.0-...-b446b4a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 23, 2020 License: MIT Imports: 5 Imported by: 0

README

Twirp

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

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
rpc
haberdasher
Package haberdasher is a generated twirp stub package.
Package haberdasher is a generated twirp stub package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL