model

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AsyncApi

type AsyncApi struct {
	AsyncApi   string             `yaml:"asyncapi,omitempty"`
	Info       Info               `yaml:"info,omitempty"`
	Channels   map[string]Channel `yaml:"channels,omitempty"`
	Components Components         `yaml:"components,omitempty"`
}

type Channel

type Channel struct {
	Subscribe ChannelAction `yaml:"subscribe,omitempty"`
	Publish   ChannelAction `yaml:"publish,omitempty"`
}

type ChannelAction

type ChannelAction struct {
	Message Object `yaml:"message,omitempty"`
}

type Components

type Components struct {
	Messages map[string]Message `yaml:"messages,omitempty"`
	Schemas  map[string]Object  `yaml:"schemas,omitempty"`
}

type Contact

type Contact struct {
	Name  string `yaml:"name,omitempty"`
	Url   string `yaml:"url,omitempty"`
	Email string `yaml:"email,omitempty"`
}

type Info

type Info struct {
	Title          string  `yaml:"title,omitempty"`
	Version        string  `yaml:"version,omitempty"`
	Description    string  `yaml:"description,omitempty"`
	TermsOfService string  `yaml:"termsOfService,omitempty"`
	Contact        Contact `yaml:"contact,omitempty"`
	License        License `yaml:"license,omitempty"`
}

type License

type License struct {
	Name string `yaml:"name,omitempty"`
	Url  string `yaml:"url,omitempty"`
}

type Message

type Message struct {
	Ref string `yaml:"ref,omitempty"`

	Headers     Object `yaml:"headers,omitempty"`
	Tags        []Tag  `yaml:"tags,omitempty"`
	Payload     Object `yaml:"payload,omitempty"`
	Summary     string `yaml:"summary,omitempty"`
	Description string `yaml:"description,omitempty"`
	Name        string `yaml:"name,omitempty"`
	ContentType string `yaml:"contentType,omitempty"`
	Title       string `yaml:"title,omitempty"`
}

type Object

type Object struct {
	Ref string `yaml:"$ref,omitempty"`

	OneOf []Object      `yaml:"oneOf,omitempty"`
	Enum  []interface{} `yaml:"enum,omitempty"`

	Description string      `yaml:"description,omitempty"`
	Example     interface{} `yaml:"example,omitempty"`
	Format      string      `yaml:"format,omitempty"`
	Type        string      `yaml:"type,omitempty"`
	Items       []Object    `yaml:"items,omitempty"`
	Required    []string    `yaml:"required,omitempty"`
	Maximum     interface{} `yaml:"maximum,omitempty"`
	Minimum     interface{} `yaml:"minimum,omitempty"`

	Properties map[string]Object `yaml:"properties,omitempty"`
}

type Tag

type Tag struct {
	Name        string `yaml:"name,omitempty"`
	Description string `yaml:"description,omitempty"`
}

Jump to

Keyboard shortcuts

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