chore: update inline docs

pull/5897/head
Pavel Zavora 2022-04-05 14:10:54 +02:00
parent ff48eed8d7
commit 9157a376c5
4 changed files with 4 additions and 4 deletions

View File

@ -20,7 +20,7 @@ var (
func init() { func init() {
if version == "" { if version == "" {
// read version from bindata files // read version from embedded files
version = dist.GetVersion() version = dist.GetVersion()
} }
fullVersion = version fullVersion = version

View File

@ -17,7 +17,7 @@ const (
// AssetsOpts configures the asset middleware // AssetsOpts configures the asset middleware
type AssetsOpts struct { type AssetsOpts struct {
// Develop when true serves assets from ui/build directory directly; false will use internal bindata. // Develop when true serves assets from ui/build directory directly; false will use embedded files.
Develop bool Develop bool
// Logger will log the asset served // Logger will log the asset served
Logger chronograf.Logger Logger chronograf.Logger

View File

@ -28,7 +28,7 @@ const (
// MuxOpts are the options for the router. Mostly related to auth. // MuxOpts are the options for the router. Mostly related to auth.
type MuxOpts struct { type MuxOpts struct {
Logger chronograf.Logger Logger chronograf.Logger
Develop bool // Develop loads assets from filesystem instead of bindata Develop bool // Develop loads assets from filesystem instead of embedded files
Basepath string // URL path prefix under which all chronograf routes will be mounted Basepath string // URL path prefix under which all chronograf routes will be mounted
UseAuth bool // UseAuth turns on Github OAuth and JWT UseAuth bool // UseAuth turns on Github OAuth and JWT
RedirAuth string // RedirAuth specifies which auth to redirect login. RedirAuth string // RedirAuth specifies which auth to redirect login.

View File

@ -8,7 +8,7 @@ import (
//go:embed swagger.json //go:embed swagger.json
var swagger []byte var swagger []byte
// Spec servers the swagger.json file from bindata // Spec servers the swagger.json embedded file
func Spec() http.HandlerFunc { func Spec() http.HandlerFunc {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "application/json") w.Header().Set("Content-Type", "application/json")