ThreeDotsLabs / wild-workouts-go-ddd-example

Go DDD example application. Complete project to show how to apply DDD, Clean Architecture, and CQRS by practical refactoring.
https://threedots.tech
MIT License
5.14k stars 471 forks source link

Example use asyncapi #8

Open blaggacao opened 3 years ago

blaggacao commented 3 years ago

The closing PR of https://github.com/asyncapi/asyncapi/issues/113 implemented:

channels:
  user/created:
    subscribe:
      headers:
        application/x-protobuf:
          $ref: 'path/to/user-created.proto#Headers'
      payload:
        application/x-protobuf:
          $ref: 'path/to/user-created.proto#UserCreated'

As two valuable learning units (and productivity candys), it would be nice to:

See also: → https://github.com/asyncapi/generator/blob/master/docs/authoring.mdhttps://github.com/asyncapi/generator/blob/master/docs/templates-recipes.md

blaggacao commented 3 years ago

There is a WIP go template, but that wouldn't probably fit your preferred design choices.

https://github.com/asyncapi/go-template/pull/1/files