grpc

package
v0.0.0-...-02ae7d7 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReverseUnaryMessage

type ReverseUnaryMessage interface {
	proto.Message
	GetRequestId() string
}

type ReverseUnaryRPCs

type ReverseUnaryRPCs interface {
	Send(client string, req ReverseUnaryMessage) error
	WatchResponse(client string, reqID string, resp chan ReverseUnaryMessage) error
	DeleteWatch(client string, reqID string)

	ClientConnected(client string, stream grpc.ServerStream)
	ClientDisconnected(client string)
	ResponseReceived(client string, resp ReverseUnaryMessage) error
}

ReverseUnaryRPCs helps to implement reverse unary rpcs where server sends requests to a client and receives responses from the client.

func NewReverseUnaryRPCs

func NewReverseUnaryRPCs() ReverseUnaryRPCs

Jump to

Keyboard shortcuts

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