mirror of
https://github.com/graphql-hive/console
synced 2026-04-21 14:37:17 +00:00
20 lines
331 B
Go
20 lines
331 B
Go
package statsvizextension
|
|
|
|
import (
|
|
"errors"
|
|
|
|
"go.opentelemetry.io/collector/component"
|
|
)
|
|
|
|
type Config struct {
|
|
Endpoint string `mapstructure:"endpoint"`
|
|
}
|
|
|
|
var _ component.Config = (*Config)(nil)
|
|
|
|
func (cfg *Config) Validate() error {
|
|
if cfg.Endpoint == "" {
|
|
return errors.New("endpoint must be specified")
|
|
}
|
|
return nil
|
|
}
|