Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultPanelsPath = "schemas/panels" DefaultQueriesPath = "schemas/queries" DefaultDatasourcesPath = "schemas/datasources" DefaultVariablesPath = "schemas/variables" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// Readonly will deactivate any HTTP POST, PUT, DELETE endpoint
Readonly bool `json:"readonly" yaml:"readonly"`
// Database contains the different configuration depending on the database you want to use
Database Database `json:"database" yaml:"database"`
// Schemas contains the configuration to get access to the CUE schemas
Schemas Schemas `json:"schemas" yaml:"schemas"`
}
type Database ¶
type Database struct {
File *File `json:"file,omitempty" yaml:"file,omitempty"`
Etcd *config.EtcdConfig `json:"etcd,omitempty" yaml:"etcd,omitempty"`
}
type File ¶
type File struct {
Folder string `json:"folder" yaml:"folder"`
FileExtension FileExtension `json:"file_extension" yaml:"file_extension"`
}
type FileExtension ¶
type FileExtension string
const ( YAMLExtension FileExtension = "yaml" JSONExtension FileExtension = "json" )
type Schemas ¶
type Schemas struct {
PanelsPath string `yaml:"panels_path,omitempty"`
QueriesPath string `yaml:"queries_path,omitempty"`
DatasourcesPath string `yaml:"datasources_path,omitempty"`
VariablesPath string `yaml:"variables_path,omitempty"`
Interval time.Duration `yaml:"interval,omitempty"`
}
func (Schemas) MarshalJSON ¶ added in v0.13.0
Click to show internal directories.
Click to hide internal directories.