Documentation
¶
Overview ¶
Package "issue261" provides primitives to interact with the AsyncAPI specification.
Code generated by github.com/lerenn/asyncapi-codegen version (devel) DO NOT EDIT.
Index ¶
Constants ¶
const AsyncAPIVersion = "1.0.0"
AsyncAPIVersion is the version of the used AsyncAPI document
const (
// TestPath is the constant representing the 'Test' channel path.
TestPath = "test"
)
Variables ¶
var ChannelsPaths = []string{ TestPath, }
ChannelsPaths is an array of all channels paths
Functions ¶
This section is empty.
Types ¶
type FreeFormSchema ¶
type FreeFormSchema struct {
Name *string `json:"name,omitempty"`
// AdditionalProperties represents the object additional properties.
AdditionalProperties map[string]interface{} `json:"-"`
}
FreeFormSchema is a schema from the AsyncAPI specification required in messages
func (FreeFormSchema) MarshalJSON ¶
func (t FreeFormSchema) MarshalJSON() ([]byte, error)
MarshalJSON marshals the schema into JSON with support for additional properties.
func (*FreeFormSchema) UnmarshalJSON ¶
func (t *FreeFormSchema) UnmarshalJSON(data []byte) error
UnmarshalJSON unmarshals schema from JSON with support for additional properties.
type MessageWithCorrelationID ¶
MessageWithCorrelationID is implemented by messages that carry a correlation ID.
type TestMessageMessage ¶
type TestMessageMessage struct {
// Payload will be inserted in the message payload
Payload FreeFormSchema
}
TestMessageMessage is the message expected for 'TestMessageMessage' channel.
func NewTestMessageMessage ¶
func NewTestMessageMessage() TestMessageMessage
NewTestMessageMessage creates a new TestMessageMessage with default values if any.