grpcMgr

package
v0.0.0-...-771ec77 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: MPL-2.0 Imports: 11 Imported by: 0

README

#Running grpc client test cases.

Test cases

`

Documentation

Overview

* * (C) 2023 Ford Motor Company * * All files and artifacts in the repository at https://github.com/covesa/vissr * are licensed under the provisions of the license provided by the LICENSE file in this repository. * *

Index

Constants

View Source
const KILL_MESSAGE = "kill subscription"
View Source
const MAXGRPCCLIENTS = 50

Variables

This section is empty.

Functions

func GrpcMgrInit

func GrpcMgrInit(mgrId int, transportMgrChan chan string)

func RemoveRoutingForwardResponse

func RemoveRoutingForwardResponse(response string)

Types

type GrpcRequestMessage

type GrpcRequestMessage struct {
	VssReq       string
	GrpcRespChan chan string
}

type GrpcRoutingData

type GrpcRoutingData struct {
	ClientId         int
	SubscriptionId   string
	GrpcRespChannel  chan string
	IsMultipleEvents bool
}

type Handler

type Handler struct {
}

func (*Handler) HandleConn

func (h *Handler) HandleConn(c context.Context, s stats.ConnStats)

HandleConn processes the Conn stats.

func (*Handler) HandleRPC

func (h *Handler) HandleRPC(context.Context, stats.RPCStats)

HandleRPC processes the RPC stats.

func (*Handler) TagConn

func (*Handler) TagRPC

type Server

type Server struct {
	pb.UnimplementedVISSServer
}

func (*Server) GetRequest

func (s *Server) GetRequest(ctx context.Context, in *pb.GetRequestMessage) (*pb.GetResponseMessage, error)

func (*Server) SetRequest

func (s *Server) SetRequest(ctx context.Context, in *pb.SetRequestMessage) (*pb.SetResponseMessage, error)

func (*Server) SubscribeRequest

func (s *Server) SubscribeRequest(in *pb.SubscribeRequestMessage, stream pb.VISS_SubscribeRequestServer) error

func (*Server) UnsubscribeRequest

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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