openapi

package
v0.30.15 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2023 License: MIT Imports: 22 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtraComponents added in v0.23.0

func ExtraComponents(components ...any) func(*Installer)

ExtraComponents provides additional components to include schemas for.

func Handler

func Handler(docs map[string]*openapi3.T, enableCors bool) http.HandlerFunc

func Surrogates added in v0.24.0

func Surrogates(surrogates map[reflect.Type]any) func(*Installer)

Types

type Installer

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

Installer configures openapi support.

func Feature

func Feature(
	base openapi3.T,
	config ...func(*Installer),
) *Installer

Feature configures http server support

func (*Installer) AfterInstall

func (i *Installer) AfterInstall(
	_ *miruken.SetupBuilder,
	handler 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) Docs added in v0.28.0

func (i *Installer) Docs() map[string]*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