Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ControllerGenerator ¶ added in v0.3.1
type ControllerGenerator struct {
MethodCount uint
SubscribeChannels map[string]*asyncapi.Channel
PublishChannels map[string]*asyncapi.Channel
Prefix string
}
func NewControllerGenerator ¶ added in v0.3.1
func NewControllerGenerator(side Side, spec asyncapi.Specification) ControllerGenerator
func (ControllerGenerator) Generate ¶ added in v0.3.1
func (asg ControllerGenerator) Generate() (string, error)
type ImportsGenerator ¶
type ImportsGenerator struct {
PackageName string
ModuleVersion string
ModuleName string
CustomImports []string
}
func (ImportsGenerator) Generate ¶
func (ig ImportsGenerator) Generate() (string, error)
type SubscriberGenerator ¶ added in v0.3.1
type SubscriberGenerator struct {
MethodCount uint
Channels map[string]*asyncapi.Channel
Prefix string
}
func NewSubscriberGenerator ¶ added in v0.3.1
func NewSubscriberGenerator(side Side, spec asyncapi.Specification) SubscriberGenerator
func (SubscriberGenerator) Generate ¶ added in v0.3.1
func (asg SubscriberGenerator) Generate() (string, error)
type TypesGenerator ¶
type TypesGenerator struct {
asyncapi.Specification
}
func (TypesGenerator) Generate ¶
func (tg TypesGenerator) Generate() (string, error)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.