swaggerFiles

package module
v0.0.0-...-4f24ef1 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2021 License: MIT Imports: 8 Imported by: 0

README

swaggerFiles

Generate swagger ui embedded files by using:

make

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// CTX is a context for webdav vfs
	CTX = context.Background()

	// FS is a virtual memory file system
	FS = webdav.NewMemFS()

	// Handler is used to server files through a http handler
	Handler *webdav.Handler

	// HTTP is the http file system
	HTTP http.FileSystem = new(HTTPFS)
)
View Source
var FileFavicon16x16Png []byte

FileFavicon16x16Png is "/favicon-16x16.png"

View Source
var FileFavicon32x32Png []byte

FileFavicon32x32Png is "/favicon-32x32.png"

View Source
var FileIndexHTML []byte

FileIndexHTML is "/index.html"

View Source
var FileOauth2RedirectHTML []byte

FileOauth2RedirectHTML is "/oauth2-redirect.html"

View Source
var FileSwaggerUIBundleJs []byte

FileSwaggerUIBundleJs is "/swagger-ui-bundle.js"

View Source
var FileSwaggerUIBundleJsMap []byte

FileSwaggerUIBundleJsMap is "/swagger-ui-bundle.js.map"

View Source
var FileSwaggerUICSS []byte

FileSwaggerUICSS is "/swagger-ui.css"

View Source
var FileSwaggerUICSSMap []byte

FileSwaggerUICSSMap is "/swagger-ui.css.map"

View Source
var FileSwaggerUIJs []byte

FileSwaggerUIJs is "/swagger-ui.js"

View Source
var FileSwaggerUIJsMap []byte

FileSwaggerUIJsMap is "/swagger-ui.js.map"

View Source
var FileSwaggerUIStandalonePresetJs []byte

FileSwaggerUIStandalonePresetJs is "/swagger-ui-standalone-preset.js"

View Source
var FileSwaggerUIStandalonePresetJsMap []byte

FileSwaggerUIStandalonePresetJsMap is "/swagger-ui-standalone-preset.js.map"

Functions

func ReadFile

func ReadFile(path string) ([]byte, error)

ReadFile is adapTed from ioutil

func WalkDirs

func WalkDirs(name string, includeDirsInList bool, files ...string) ([]string, error)

WalkDirs looks for files in the given dir and returns a list of files in it usage for all files in the b0x: WalkDirs("", false)

func WriteFile

func WriteFile(filename string, data []byte, perm os.FileMode) error

WriteFile is adapTed from ioutil

Types

type HTTPFS

type HTTPFS struct {
	// Prefix allows to limit the path of all requests. F.e. a prefix "css" would allow only calls to /css/*
	Prefix string
}

HTTPFS implements http.FileSystem

func (*HTTPFS) Open

func (hfs *HTTPFS) Open(path string) (http.File, error)

Open a file

Jump to

Keyboard shortcuts

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