Help us shape the future of Go! Take the 2026 Go Developer Survey

asyncapi

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package asyncapi imports an AsyncAPI document (3.x, and 2.x as far as it maps) as async requests: one request per operation, with the protocol, server, channel and an example of the message it sends.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	NewID func() model.ID // ids for new requests
}

Options configure Import.

type Result

type Result struct {
	Requests []model.Request // Path is set (relative to requests/); File is not
}

Result is what an AsyncAPI document becomes.

func Import

func Import(data []byte, o Options) (Result, diag.List)

Import maps the operations of an AsyncAPI 3.x (or 2.x) document to async requests. An operation whose server speaks a protocol Flowi has no client for is left out and reported (FLW-IMPORT-001); nothing else stops the import.

Jump to

Keyboard shortcuts

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