Slide 11
Slide 11 text
Copyright © Henry, Inc. All rights reserved.
Tips
$ giro host rerost.giro.v1.TestService
localhost:5000
$ giro call rerost.giro.v1.TestService/Echo {"message":"Test"}
--metadata=key1:val1:key2:val2
{"message":"Test",
"metadata":{"metadata":{":authority":{"value":["localhost:5000"]},
"content-type":{"value":["application/grpc"]}, "key1":{"value":["val1"]},
"key2":{"value":["val2"]}, "user-agent":{"value":["grpc-go/1.73.0"]}}}}
google/go-cmdtest を使ったテストケース(スナップショットテスト)