Skip to content

Releases: bojand/ghz

v0.10.0

06 Aug 01:51
Compare
Choose a tag to compare

Changelog

702c3b9 add options to JSON output

v0.9.0

01 Aug 01:36
cd8bfd0
Compare
Choose a tag to compare

Changelog

cd8bfd0 Merge pull request #25 from bojand/report_date
d78f87b add date to report struct and add it to the JSON output
2d0f23a update readme

v0.8.0

26 Jul 00:28
bca0dba
Compare
Choose a tag to compare

Changelog

bca0dba Merge pull request #23 from bojand/stdin
0a5afb6 add support for stdin data

v0.7.0

20 Jul 02:09
bfc217c
Compare
Choose a tag to compare

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

11 Jul 00:25
Compare
Choose a tag to compare

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

05 Jun 00:14
Compare
Choose a tag to compare

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

04 May 23:51
Compare
Choose a tag to compare

Changelog

220fecc fix usage


Automated with GoReleaser
Built with go version go1.10.1 darwin/amd64

v0.4.0

04 May 23:38
4fb9a24
Compare
Choose a tag to compare

Changelog

4fb9a24 Merge pull request #13 from bojand/json_output
470cc01 Add JSON output support. Actually implement -o output flag.


Automated with GoReleaser
Built with go version go1.10.1 darwin/amd64

v0.3.1

17 Apr 12:28
Compare
Choose a tag to compare

Changelog

ed29faf [skip ci] fix usage
294eb7a [skip ci] Add Go Report Card badge


Automated with GoReleaser
Built with go version go1.10.1 darwin/amd64

v0.3.0

16 Apr 23:45
6e5b8f1
Compare
Choose a tag to compare

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