openapi

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2023 License: MIT Imports: 12 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(api *openapi3.T, enableCors bool) http.HandlerFunc

func TypeInfoFormat

func TypeInfoFormat(format string) func(installer *Installer)

TypeInfoFormat selects how the type discriminator is generated.

Types

type Installer

type Installer struct {
	// contains filtered or unexported fields
}

Installer configures openapi support

func Feature

func Feature(config ...func(installer *Installer)) *Installer

Feature configures http server support

func (*Installer) AfterInstall

func (i *Installer) AfterInstall(
	*miruken.SetupBuilder, miruken.Handler,
) error

func (*Installer) BindingCreated

func (i *Installer) BindingCreated(
	policy miruken.Policy,
	descriptor *miruken.HandlerDescriptor,
	binding miruken.Binding,
)

func (*Installer) DependsOn

func (i *Installer) DependsOn() []miruken.Feature

func (*Installer) DescriptorCreated

func (i *Installer) DescriptorCreated(
	_ *miruken.HandlerDescriptor,
)

func (*Installer) Export

func (i *Installer) Export(api *openapi3.T)

func (*Installer) Install

func (i *Installer) Install(setup *miruken.SetupBuilder) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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