internalgrpc

package
v0.0.0-...-9128a6e Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Host string
	Port int
}

type Server

type Server struct {
	api.UnimplementedMetricsServer
	// contains filtered or unexported fields
}

func NewServer

func NewServer(config Config, collectors []metric.Collector) *Server

func (*Server) GetMetrics

func (s *Server) GetMetrics(request *api.GetMetricsRequest, stream api.Metrics_GetMetricsServer) error

func (*Server) Start

func (s *Server) Start() error

func (*Server) Stop

func (s *Server) Stop()

Jump to

Keyboard shortcuts

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