chore: update inline docs
parent
ff48eed8d7
commit
9157a376c5
|
@ -20,7 +20,7 @@ var (
|
|||
|
||||
func init() {
|
||||
if version == "" {
|
||||
// read version from bindata files
|
||||
// read version from embedded files
|
||||
version = dist.GetVersion()
|
||||
}
|
||||
fullVersion = version
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue