gen

package
v0.0.0-...-cb1c60c Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenFromDocument

func GenFromDocument(file []byte, opts GenOpts)

Types

type GenOpts

type GenOpts struct {
	OnAPIFileEmit    HandleFileEmit
	OnSchemaFileEmit HandleFileEmit
	// Only allow specific endpoints
	Allowlist []string
}

type HandleFileEmit

type HandleFileEmit = func(name string, content []byte)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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