Skip to content

Releases: yiv/gk

enhance proto file parse

10 Dec 05:51
@yiv yiv
Compare
Choose a tag to compare

support parse proto imports
support parse proto options
support parse proto message options

support upgrade service signature after modify service interface method

17 Sep 11:34
@yiv yiv
Compare
Choose a tag to compare

optimize update a exist service

27 Aug 08:35
@yiv yiv
Compare
Choose a tag to compare

deprecated command below:

gk update svc
gk update grpc svc

udpate a service after add one or more methods, directly run init command again:

gk init svc
gk add grpc svc
gk init grpc svc

fix struct tag parse

Add support to update grpc transport

10 Jul 05:36
@yiv yiv
Compare
Choose a tag to compare

Add support to update grpc transport

Add a new method to a service, run

gk update svc

By now, it will update the Endpoint, Middleware, Http transport, next you run:

gk add grpc svc

run this, it will update the probobuf file, then you run:

gk update grpc svc

it will update the grpc transport

Add protobuf file parser

09 Jul 14:34
@yiv yiv
Compare
Choose a tag to compare

Add support to update protobuf file

After add a new method to the interface, you can run "gk add grpc svc" again to update the protobuf file

gk add grpc svc

gk update svc

09 Jul 14:07
@yiv yiv
Compare
Choose a tag to compare

Add support of updating exist service

type Service interface {
	FooToo(ctx context.Context, inParam string) (outParam string, err error)
}

At first, you have a method for the interface, then you run:

gk init svc

After that, you add a another method to the interface, like below:

type Service interface {
	FooToo(ctx context.Context, inParam string) (outParam string, err error)
	TooToo(ctx context.Context, in string) (out []string, err error)
}

Befor this release, you have to delete the previous files, and run "gk init svc" again, now you can run

gk update svc

limits

  • only update codes in directory of service and endpoint, and transport of http
  • not work for pb directory and grpc transport

Add http api testing boilerplate

09 Jul 14:02
@yiv yiv
Compare
Choose a tag to compare

Add a new boilerplate file in directory of transport, whch can simulate http client to send http request to each api exposed by service

catching the go-kit 0.9.0

09 Jul 13:55
@yiv yiv
Compare
Choose a tag to compare

adjust some code to fit the new version of go-kit 0.9.0