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 `yaml:"readonly"`
// Database contains the different configuration depending on the database you want to use
Database Database `yaml:"database"`
// Schemas contains the configuration to get access to the CUE schemas
Schemas Schemas `yaml:"schemas"`
}
type Database ¶
type Database struct {
File *File `yaml:"file,omitempty"`
Etcd *config.EtcdConfig `yaml:"etcd,omitempty"`
}
type File ¶
type File struct {
Folder string `yaml:"folder"`
FileExtension FileExtension `yaml:"file_extension"`
}
type FileExtension ¶
type FileExtension string
const ( YAMLExtension FileExtension = "yaml" JSONExtension FileExtension = "json" )
type Schemas ¶
Click to show internal directories.
Click to hide internal directories.