generators

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 10, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppControllerGenerator

type AppControllerGenerator struct {
	Specification asyncapi.Specification

	// CorrelationIDLocation will indicate where the correlation id is
	// According to this: https://www.asyncapi.com/docs/reference/specification/v2.6.0#correlationIDObject
	CorrelationIDLocation map[string]string

	PublishCount   uint
	SubscribeCount uint
}

func NewAppControllerGenerator

func NewAppControllerGenerator(spec asyncapi.Specification) AppControllerGenerator

func (AppControllerGenerator) Generate

func (acg AppControllerGenerator) Generate() (string, error)

type AppSubscriberGenerator

type AppSubscriberGenerator struct {
	Specification asyncapi.Specification

	PublishCount uint
}

func NewAppSubscriberGenerator

func NewAppSubscriberGenerator(spec asyncapi.Specification) AppSubscriberGenerator

func (AppSubscriberGenerator) Generate

func (asg AppSubscriberGenerator) Generate() (string, error)

type BrokerControllerGenerator

type BrokerControllerGenerator struct {
}

func (BrokerControllerGenerator) Generate

func (bcg BrokerControllerGenerator) Generate() (string, error)

type BrokerNATSGenerator

type BrokerNATSGenerator struct {
}

func (BrokerNATSGenerator) Generate

func (bng BrokerNATSGenerator) Generate() (string, error)

type ClientControllerGenerator

type ClientControllerGenerator struct {
	Specification asyncapi.Specification

	PublishCount   uint
	SubscribeCount uint
}

func NewClientControllerGenerator

func NewClientControllerGenerator(spec asyncapi.Specification) ClientControllerGenerator

func (ClientControllerGenerator) Generate

func (ccg ClientControllerGenerator) Generate() (string, error)

type ClientSubscriberGenerator

type ClientSubscriberGenerator struct {
	Specification asyncapi.Specification

	SubscribeCount uint
}

func NewClientSubscriberGenerator

func NewClientSubscriberGenerator(spec asyncapi.Specification) ClientSubscriberGenerator

func (ClientSubscriberGenerator) Generate

func (asg ClientSubscriberGenerator) Generate() (string, error)

type ImportsGenerator

type ImportsGenerator struct {
	PackageName   string
	ModuleVersion string
	ModuleName    string
}

func (ImportsGenerator) Generate

func (ig ImportsGenerator) Generate() (string, error)

type Options

type Options struct {
	Application bool
	Client      bool
	Types       bool

	Broker bool
	NATS   bool
}

type TypesGenerator

type TypesGenerator struct {
	asyncapi.Specification
}

func (TypesGenerator) Generate

func (tg TypesGenerator) Generate() (string, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL