grpc

package
v0.0.0-...-af869ec Latest Latest
Warning

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

Go to latest
Published: May 17, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	stat.UnimplementedStatisticsServer
	// contains filtered or unexported fields
}

Server структура сервера.

func NewServer

func NewServer(logg sysmon.Logger, collector sysmon.Collector, bufSize int) *Server

NewServer конструктор.

func (*Server) ListStatistics

func (s *Server) ListStatistics(req *stat.SubscriptionRequest, stream stat.Statistics_ListStatisticsServer) error

ListStatistics стримминг данных клиенту.

func (*Server) Start

func (s *Server) Start(ctx context.Context, addr string) error

Start запуск сервера gRPC.

func (*Server) Stop

func (s *Server) Stop(ctx context.Context) error

Stop останов сервера gRPC.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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