Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Enabled bool `toml:"enabled"`
URL string `toml:"url"`
Token string `toml:"token"`
StatsInterval toml.Duration `toml:"stats-interval"`
}
Config represents the configuration for the registration service.
type Service ¶
type Service struct {
MetaStore interface {
ClusterID() (uint64, error)
NodeID() uint64
}
Monitor interface {
Statistics(tags map[string]string) ([]*monitor.Statistic, error)
RegisterDiagnosticsClient(name string, client monitor.DiagsClient)
}
// contains filtered or unexported fields
}
Service represents the registration service.
func NewService ¶
NewService returns a configured registration service.
func (*Service) Diagnostics ¶
func (s *Service) Diagnostics() (*monitor.Diagnostic, error)
Diagnostics returns diagnostics information.
Click to show internal directories.
Click to hide internal directories.