Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Store StoreConfig `toml:"store"`
}
Config represents the devtap configuration file.
type GreptimeDBConfig ¶
type GreptimeDBConfig struct {
Endpoint string `toml:"endpoint"` // gRPC endpoint for ingestion (default "127.0.0.1:4001")
MySQLEndpoint string `toml:"mysql_endpoint"` // MySQL protocol endpoint for queries (default "127.0.0.1:4002")
Database string `toml:"database"` // database name (default "public")
}
GreptimeDBConfig holds GreptimeDB connection settings.
func (*GreptimeDBConfig) AuthToken ¶
func (c *GreptimeDBConfig) AuthToken() string
AuthToken returns the GreptimeDB auth token from the environment.
func (*GreptimeDBConfig) Password ¶
func (c *GreptimeDBConfig) Password() string
Password returns the GreptimeDB password from the environment.
func (*GreptimeDBConfig) Username ¶
func (c *GreptimeDBConfig) Username() string
Username returns the GreptimeDB username from the environment.
type StoreConfig ¶
type StoreConfig struct {
Backend string `toml:"backend"` // "file" (default) | "greptimedb"
GreptimeDB GreptimeDBConfig `toml:"greptimedb"`
}
StoreConfig configures the storage backend.
Click to show internal directories.
Click to hide internal directories.