-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] kitgen code generation #308
Conversation
Quite a bit of thought has gone into the following package by Ayiga (Theodore on the Gopher's Slack) https://github.com/Ayiga/go-kit-middlewarer I'm using it quite successfully in my own environment currently. |
@curlymon Yep! I'm aware; I'll probably end up using a lot of that stuff verbatim. I just need to explore the space a little on my own, first. |
No problem. Just wanted to give you some ideas on things. Alot of his
effort was to remain as unopinionated as Go-kit has been.
|
@peterbourgon was you able to make any progress on this? |
It's next in the queue. I don't have an ETA. |
Hi, i have started a project a while back ago and i am generating code for go-kit. You can see an example service here Everything under example folder, generated from this json schema Only implementation of business logic should go under service. Code is generated and left with defaults to developer. It also generates JS client, go client lib, database DDL for postgres and other bunch of stuff that some of them are not directly related with go-kit I would love to help on the implementation of kitgen. |
@cihangir Yes, I've seen it, and I thank you for that work :) I've been studying it as I go along. My needs are considerably simpler, at least to start, and are enumerated in the top of the issue. If you want to discuss how to contribute here, please drop by Gophers Slack #gokit and we can figure something out! :) |
Hi, I also have been working on a Go-kit service generator called Truss. You run Let me know what you think, and thanks so much for starting Go-kit to make this possible. |
I'm afraid this work will need to be rebooted if/when I'm able to start it up again. |
The idea is to
kitgen path/to/some.go
, have it parse out atype Service interface
, and generatetype dummyService struct{}
+ all methodsIdeally, also
So far