Documentation
¶
Overview ¶
Package nats holds helpers shared by the NATS stream, event and rpc generators.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateStreamSingleton ¶
func GenerateStreamSingleton(g *protogen.GeneratedFile, streamFQN, streamGoName string)
GenerateStreamSingleton emits a lazily-initialized singleton accessor wrapping a NATS stream.
func StreamGoName ¶
StreamGoName derives the Go type name of a stream from its fully qualified name by stripping the package/version prefix: "malonaz.test.library.v1.book" → "BookStream".
Types ¶
This section is empty.