v1

package
v0.0.0-...-eb6ac32 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddConversion

func AddConversion(srv service.Service) error

AddConversion registers the endpoint in a service.

func AddValidation

func AddValidation(srv service.Service) error

AddValidation registers the endpoint in a service.

Types

type Convert

type Convert func(reader io.Reader, writer io.Writer) error

Convert is a functional mutation handler that converts the AsyncAPI specification.

func (Convert) Mutate

func (c Convert) Mutate(ctx context.Context, reader io.Reader, metadata string) ([]byte, bool, error)

Mutate converts the AsyncAPI specification from version 1.* to version 2.0.0-rc1.

type Validate

type Validate parser.Parse

Validate is a functional validation handler that checks the AsyncAPI schema.

func (Validate) Validate

func (v Validate) Validate(ctx context.Context, reader io.Reader, parameters string) error

Validate checks the AsyncAPI specification against the 2.0.0 schema.

Jump to

Keyboard shortcuts

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