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() {
if version == "" {
// read version from bindata files
// read version from embedded files
version = dist.GetVersion()
}
fullVersion = version

View File

@ -17,7 +17,7 @@ const (
// AssetsOpts configures the asset middleware
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
// Logger will log the asset served
Logger chronograf.Logger

View File

@ -28,7 +28,7 @@ const (
// MuxOpts are the options for the router. Mostly related to auth.
type MuxOpts struct {
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
UseAuth bool // UseAuth turns on Github OAuth and JWT
RedirAuth string // RedirAuth specifies which auth to redirect login.

View File

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