messages

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

type Message struct {
	MessageName string
	Type        string
	Format      string
	Nullable    bool
	Properties  MessageProperties
	Items       *generate.Schema
	Required    []string
}

func NewMessage

func NewMessage(messageName string, type_ string, format string, nullable bool, properties MessageProperties, items *generate.Schema, required []string) *Message

func (*Message) ToYaml

func (m *Message) ToYaml() (string, error)

type MessageProperties

type MessageProperties = map[string]generate.Schema

func NewMessageProperties

func NewMessageProperties() MessageProperties

type ToYamlMessage

type ToYamlMessage = map[string]interface{}

type ToYamlMessageProperties

type ToYamlMessageProperties struct {
	Type       string            `yaml:"type"`
	Format     string            `yaml:"format,omitempty"`
	Nullable   bool              `yaml:"nullable,omitempty"`
	Properties MessageProperties `yaml:"properties"`
	Items      *generate.Schema  `yaml:"items,omitempty"`
	Required   []string          `yaml:"required,omitempty"`
}

Jump to

Keyboard shortcuts

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