Releases: bojand/ghz
v0.10.0
v0.9.0
v0.8.0
v0.7.0
Changelog
bfc217c Add support for call template data. Addresses #20. (#21)
Data and metadata can specify template actions that will be parsed and evaluated at every request. Each request gets a new instance of the data. The available variables / actions are:
// call template data
type callTemplateData struct {
RequestNumber int64 // unique incrememnted request number for each request
FullyQualifiedName string // fully-qualified name of the method call
MethodName string // shorter call method name
ServiceName string // the service name
InputName string // name of the input message type
OutputName string // name of the output message type
IsClientStreaming bool // whether this call is client streaming
IsServerStreaming bool // whether this call is server streaming
Timestamp string // timestamp of the call in RFC3339 format
TimestampUnix int64 // timestamp of the call as unix time
}
This can be useful to inject variable information into the data or metadata payload for each request, such as timestamp or unique request number. Example:
$ ghz -proto ./greeter.proto -call helloworld.Greeter.SayHello -d '{"name":"Joe"}' -m '{"trace_id":"{{.RequestNumber}}","timestamp":"{{.TimestampUnix}}"}' 0.0.0.0:50051
This ends up substituting the template variables with the request number and unix timestamp respectively.
Automated with GoReleaser
Built with go version go1.10.1 darwin/amd64
v0.6.0
Changelog
- Renamed to
ghz
because I like the name better and it's a shorter command. 😄 - Added HTML output. Sample
6b6d32c [skip ci] remove link to demo gif
4290c27 [skip ci] remove out.html
cbe8ea6 rename to ghz (#19)
198e664 Add HTML output format (#18)
Automated with GoReleaser
Built with go version go1.10.1 darwin/amd64
v0.5.0
Changelog
1965bb5 update readme
85341d4 Merge pull request #16 from bojand/pretty_json
e29ac01 Merge branch 'master' into pretty_json
16d9ebc Merge pull request #15 from bojand/duration_fix
2b96b8f Fix -z duration option and add -x duration option
c740cb9 add prety_json support. add json formatting. update test cert and key
Automated with GoReleaser
Built with go version go1.10.1 darwin/amd64
v0.4.1
v0.4.0
v0.3.1
v0.3.0
Changelog
6e5b8f1 Add -config custom config file options. Fixes #6. (#12)
716c0b2 Merge pull request #11 from bojand/camelcase
8d4f463 Add protoset support. Fixes #5. (#10)
75c457b Add support for camel case property names. Fixes #7.
Automated with GoReleaser
Built with go version go1.10.1 darwin/amd64