input-output-hk / cicero

event-driven automation for Nomad
https://handbook.cicero.ci.iog.io
41 stars 11 forks source link

action model - uncouple #12

Closed biandratti closed 2 years ago

biandratti commented 2 years ago

The goal is uncouple the service and repository for the action model. Following with the proposal

blaggacao commented 2 years ago

Btw, some time ago I woreked on a ddd-gen generator from protobufs.

Sorry for throwing that at you like this (in the state it is), but maybe there is already sufficient thought overlap that it might be somehow useful at some point.

https://github.com/xoe-labs/ddd-gen

It generates apps & domains within a clean architecture pattern.

biandratti commented 2 years ago

Btw, some time ago I woreked on a ddd-gen generator from protobufs.

Sorry for throwing that at you like this (in the state it is), but maybe there is already sufficient thought overlap that it might be somehow useful at some point.

https://github.com/xoe-labs/ddd-gen

It generates apps & domains within a clean architecture pattern.

That probably should have been the first step to consider haha. I started following some documentation of clean architecture patterns in golang. Maybe it is too late to use this generator. Anyway I consider using those same packages used in this example. https://github.com/xoe-labs/ddd-gen/tree/master/internal/test-svc

I liked the selection used. Thanks to show me this option, I consider using this example as prototy to follow to our project. Thanks so much :)

blaggacao commented 2 years ago

Maybe we should set up a call, though. This is a bit out-of-context, but I just rembered that I used it in this branch:

https://github.com/xoe-labs/vicidial-go/tree/ddd%2Fdomains/internal%2Flivecalling

(So this is more or.less how it looks like)