goswagger

package module
v0.0.0-...-6b2f5a9 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2022 License: BSD-3-Clause Imports: 3 Imported by: 1

README

GO Swagger

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Name         string `json:"name" flag:"swagger-name" description:"swagger name"`
	Url          string `json:"url" flag:"swagger-url"`
	ClientId     string `json:"clientId"`
	ClientSecret string `json:"clientSecret"`
	Urls         []struct {
		Name string `json:"name"`
		Url  string `json:"url"`
	} `json:"urls"`
}

func (*Config) Validate

func (p *Config) Validate() error

type Swagger

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

func New

func New(config *Config) *Swagger

func (Swagger) Handler

func (p Swagger) Handler() http.Handler

Jump to

Keyboard shortcuts

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