swagger

package
v3.10.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// EmptyConfiguration is an empty configuration
	EmptyConfiguration = Configuration{}
)

Functions

This section is empty.

Types

type App

type App interface {
	Handler() http.Handler
}

App of package

func New

func New(config Config, providers ...Provider) (App, error)

New creates new App from Config

type Config

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

Config of package

func Flags

func Flags(fs *flag.FlagSet, prefix string) Config

Flags adds flags for configuring package

type Configuration

type Configuration struct {
	Paths      string
	Components string
}

Configuration holds configuration parts

type Provider

type Provider func() (Configuration, error)

Provider provides configuration

Jump to

Keyboard shortcuts

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