openapi

package
v2.0.44 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TuneTypeFuncName = "TuneType"
)

Variables

This section is empty.

Functions

func Compose

func Compose(logFacility *log.Facility, cfg *Config, httpCfg *config.Listener, prefix string) (result *oa.T, err error)

Types

type Config

type Config struct {
	APIversion string `toml:"api-version"`

	Title          string `toml:"title"`
	Description    string `toml:"description"`
	TermsOfService string `toml:"terms-of-service"`

	ContactName  string `toml:"contact-name"`
	ContactURL   string `toml:"contact-url"`
	ContactEmail string `toml:"contact-email"`

	LicenseName string `toml:"license-name"`
	LicenseURL  string `toml:"license-url"`

	Version string `toml:"version"`

	Server       string   `toml:"server"`
	ExtraServers []string `toml:"extra-servers"`
	Protocol     string   `toml:"protocol"`
	Host         string   `toml:"host"`
	Port         uint     `toml:"port"`
}

func (*Config) Check

func (x *Config) Check(cfg any) (err error)

Проверка валидности OpenAPI

type TuneType added in v2.0.18

type TuneType func() reflect.Type

Jump to

Keyboard shortcuts

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