Releases: yiv/gk
Releases · yiv/gk
enhance proto file parse
support upgrade service signature after modify service interface method
grpc no upgrade
protobuf no upgrade
optimize update a exist service
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
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
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
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