static

package
v2.0.8 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2021 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Asset

func Asset(string) ([]byte, error)

Asset returns an error stating no assets were included in the binary.

func AssetDir

func AssetDir(name string) ([]string, error)

AssetDir returns nil because there are no assets included in the binary.

func AssetInfo

func AssetInfo(name string) (os.FileInfo, error)

AssetInfo returns an error stating no assets were included in the binary.

func NewAssetHandler

func NewAssetHandler(assetsPath string) http.Handler

NewAssetHandler returns an http.Handler to serve files from the provided path. If no --assets-path flag is used when starting influxd, the path will be empty and files are served from the embedded filesystem.

func NewSwaggerHandler

func NewSwaggerHandler(log *zap.Logger, errHandler platform.HTTPErrorHandler) http.Handler

NewSwaggerHandler returns an http.Handler to serve the swaggerFile from the embedBaseDir. If the swaggerFile is not found, returns a 404.

Types

This section is empty.

Jump to

Keyboard shortcuts

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