grpc

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2019 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateListMetricsRequest

func ValidateListMetricsRequest(req v1alpha1.ListMetricsRequest) error

Types

type Config

type Config struct {
	BindAddress string             `mapstructure:"bind-address"`
	Prometheus  *prometheus.Config `mapstructure:"prometheus"`
}

func NewConfig

func NewConfig() *Config

func (*Config) Validate

func (c *Config) Validate() error

type Service

type Service struct {
	Config    Config
	Manager   manager.Manager
	MetricsDB metrics.MetricsDB
	// contains filtered or unexported fields
}

func NewService

func NewService(c *Config, manager manager.Manager) *Service

func (*Service) Close

func (s *Service) Close() error

func (*Service) Err

func (s *Service) Err() <-chan error

func (*Service) Open

func (s *Service) Open() error

Jump to

Keyboard shortcuts

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