registration

package
v0.9.5-rc3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 16, 2015 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultURL           = "https://enterprise.influxdata.com"
	DefaultStatsInterval = time.Minute
)

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"`
}

func NewConfig

func NewConfig() Config

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

func NewService(c Config, version string) (*Service, error)

NewService returns a configured registration service.

func (*Service) Close

func (s *Service) Close() error

Close stops retention policy enforcement.

func (*Service) Diagnostics

func (s *Service) Diagnostics() (*monitor.Diagnostic, error)

func (*Service) Open

func (s *Service) Open() error

Open starts retention policy enforcement.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL