types

package
v0.0.0-...-f03b48f Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	JsonTagKey        = "json"
	FormTagKey        = "form"
	PathTagKey        = "path"
	HeaderTagKey      = "header"
	DefaultSummaryKey = "summary"
)

Go zero defined tag keys.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option struct {
	Host          string
	BasePath      string
	Schemes       []string
	RenderType    string
	Version       string
	Target        string
	TagPrefix     string
	OutsideSchema string
	ResponseKey   string
}

type Renderer

type Renderer interface {
	Render(plg *plugin.Plugin, opt Option) (Swagger, error)
}

type Swagger

type Swagger interface {
	EncodeJSON() ([]byte, error)
	EncodeYAML() ([]byte, error)
}

Jump to

Keyboard shortcuts

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