grpc

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	C collector.Collector
	pb.UnimplementedEventServiceServer
	// contains filtered or unexported fields
}

func (*Handler) Ack

func (h *Handler) Ack(responseChannel chan *pb.SendEventResponse, reqGuid, connGroup string) collector.AckFunc

func (*Handler) SendEvent

func (h *Handler) SendEvent(ctx context.Context, req *pb.SendEventRequest) (*pb.SendEventResponse, error)

type Service

type Service struct {
	Collector collector.Collector
	// contains filtered or unexported fields
}

func NewGRPCService

func NewGRPCService(c collector.Collector) *Service

func (*Service) Init

func (s *Service) Init(context.Context) error

func (*Service) Name

func (*Service) Name() string

func (*Service) Shutdown

func (s *Service) Shutdown(context.Context) error

Jump to

Keyboard shortcuts

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