cmd

package
v0.0.0-...-2779087 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UIIndexHTML = `` /* 1442-byte string literal not displayed */

	RedocUIIndexTemplate = `` /* 2822-byte string literal not displayed */

)

Variables

This section is empty.

Functions

func NewRootCmd

func NewRootCmd() *cobra.Command

Types

type RedocUIIndexConfig

type RedocUIIndexConfig struct {
	RedocURL string
	URLs     []*SwaggerFile
}

func (RedocUIIndexConfig) Generate

func (cfg RedocUIIndexConfig) Generate() ([]byte, error)

type SwaggerFile

type SwaggerFile struct {
	Path string
	Name string
}

type SwaggerFiles

type SwaggerFiles []*SwaggerFile

func (SwaggerFiles) Len

func (sf SwaggerFiles) Len() int

func (SwaggerFiles) Less

func (sf SwaggerFiles) Less(i, j int) bool

func (SwaggerFiles) Swap

func (sf SwaggerFiles) Swap(i, j int)

type UIIndexHTMLConfig

type UIIndexHTMLConfig struct {
	UICss              string
	BundleJS           string
	StandalonePresetJS string
	URLs               []*SwaggerFile
}

func (UIIndexHTMLConfig) Generate

func (cfg UIIndexHTMLConfig) Generate() ([]byte, error)

type UITemplateConfig

type UITemplateConfig interface {
	Generate() ([]byte, error)
}

Jump to

Keyboard shortcuts

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