spec

package
v0.0.0-...-cb39d06 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FieldSpec

type FieldSpec struct {
	Name     string       `json:"name"`
	Type     string       `json:"type"`
	Format   string       `json:"format"`
	Fields   []*FieldSpec `json:"fields"`
	Item     *FieldSpec   `json:"Item"`
	Optional bool         `json:"optional"`
}

FieldSpec represents a field of a payload in the asyncapi spec

type MessageSpec

type MessageSpec struct {
	Topic    string
	Exchange string
	Payload  PayloadSpec
	Delivery amqp.Delivery
}

MessageSpec represents a message in the asyncapi spec

type PayloadSpec

type PayloadSpec struct {
	Type   string       `json:"type"`
	Fields []*FieldSpec `json:"fields"`
}

PayloadSpec represents a payload (message body) in the asyncapi spec

type ServerSpec

type ServerSpec struct {
	Name    string
	Version string
}

ServerSpec represents a server in the asyncapi spec

Jump to

Keyboard shortcuts

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