server

command
v0.0.0-...-ea1c516 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

README

twirp example server

This binary is an example twirp server. It's meant mostly to be read and to be used in conjunction with the neighboring client binary.

When a request is made, the server will log the statsd messages it would have sent, so you'll see stuff like this:

-> % ./server
incr twirp.total.requests: 1 @ 1.000000
incr twirp.MakeHat.requests: 1 @ 1.000000
incr twirp.total.responses: 1 @ 1.000000
incr twirp.MakeHat.responses: 1 @ 1.000000
incr twirp.status_codes.total.200: 1 @ 1.000000
incr twirp.status_codes.MakeHat.200: 1 @ 1.000000
time twirp.all_methods.response: 370.695µs @ 1.000000
time twirp.MakeHat.response: 370.695µs @ 1.000000
time twirp.status_codes.all_methods.200: 370.695µs @ 1.000000
time twirp.status_codes.MakeHat.200: 370.695µs @ 1.000000

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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