swagger_plugin

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConfig added in v1.3.6

func NewConfig(config Config) bean.Bean

Types

type Config added in v1.3.6

type Config struct {
	Info
	BasePath string   `json:"base_path"`
	Host     string   `json:"host"`
	Schemes  []string `json:"schemes"`
}

type Contact added in v1.3.6

type Contact struct {
	Email string `json:"email,omitempty"`
}

type DynamicResult added in v1.4.1

type DynamicResult struct{}

type Info added in v1.3.6

type Info struct {
	Description    string  `json:"description,omitempty"`
	Version        string  `json:"version,omitempty"`
	TermsOfService string  `json:"termsOfService,omitempty"`
	Title          string  `json:"title,omitempty"`
	Contact        Contact `json:"contact"`
	License        License `json:"license"`
}

type License added in v1.3.6

type License struct {
	Name string `json:"name,omitempty"`
	URL  string `json:"url,omitempty"`
}

type Starter

type Starter struct {
	bean.Component
	AppName string `value:"application.app_name"`

	Conf        *SwaggerConfig `bean:"swagger_config"`
	Controllers []component.Controller
	// contains filtered or unexported fields
}

func NewStarter added in v1.3.6

func NewStarter() *Starter

func (*Starter) Controller

func (r *Starter) Controller() string

func (*Starter) OpenAPI added in v1.3.6

func (r *Starter) OpenAPI(req *http.Request, w http.ResponseWriter)

func (*Starter) Static added in v1.3.2

func (r *Starter) Static() string

func (*Starter) Ui

func (r *Starter) Ui() resp.Response

type SwaggerConfig added in v1.3.6

type SwaggerConfig struct {
	bean.Component
	Config
}

Jump to

Keyboard shortcuts

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