grpc

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServerGRPC

type ServerGRPC struct {
	*grpc.Server
	// contains filtered or unexported fields
}

ServerGRPC represents the PbGrpc server components satifsying Receiver interface

func NewServer

func NewServer(config *configgrpc.ServerConfig, set *receiver.Settings, logger *zap.Logger, nextTraces consumer.Traces, obsreport *receiverhelper.ObsReport, telemetry *telemetry.Telemetry) *ServerGRPC

func (*ServerGRPC) Report

func (s *ServerGRPC) Report(ctx context.Context, rq *pb.ReportRequest) (*pb.ReportResponse, error)

Report listens to incoming PbGrpc calls

func (*ServerGRPC) Shutdown

func (s *ServerGRPC) Shutdown()

Shutdown shuts server down

func (*ServerGRPC) Start

func (s *ServerGRPC) Start(host component.Host) error

Start starts the server

Jump to

Keyboard shortcuts

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