grpc

package
v0.0.0-...-8fb0621 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2021 License: MPL-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package grpc :

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnectorGrpc

type ConnectorGrpc struct {
	pb.UnimplementedConnectorServer
	pb.UnimplementedConnectorCommandServer
	pb.UnimplementedConnectorEventServer
	GrpcConnection string
	Shoset         sn.Shoset
	//MapWorkerIterators map[string][]*msg.Iterator
	MapIterators      map[string]*msg.Iterator
	MapCommandChannel map[string]chan msg.Message
	EventChannel      chan msg.Message
	ValidationChannel chan msg.Message
	// contains filtered or unexported fields
}

ConnectorGrpc : ConnectorGrpc struct.

func NewConnectorGrpc

func NewConnectorGrpc(grpcConnection string, timeoutMax int64, shoset *sn.Shoset) (connectorGrpc ConnectorGrpc, err error)

NewConnectorGrpc : ConnectorGrpc constructor.

func (ConnectorGrpc) CreateIteratorCommand

func (r ConnectorGrpc) CreateIteratorCommand(ctx context.Context, in *pb.Empty) (iteratorMessage *pb.IteratorMessage, err error)

CreateIteratorCommand : Connector create command iterator function.

func (ConnectorGrpc) CreateIteratorEvent

func (r ConnectorGrpc) CreateIteratorEvent(ctx context.Context, in *pb.Empty) (iteratorMessage *pb.IteratorMessage, err error)

CreateIteratorEvent : Connector create event iterator function.

func (ConnectorGrpc) SendCommandList

func (r ConnectorGrpc) SendCommandList(ctx context.Context, in *pb.CommandList) (validate *pb.Validate, err error)

SendCommandList : Connector send command list function.

func (ConnectorGrpc) SendCommandMessage

func (r ConnectorGrpc) SendCommandMessage(ctx context.Context, in *pb.CommandMessage) (commandMessageUUID *pb.CommandMessageUUID, err error)

SendCommandMessage : Connector send command function.

func (ConnectorGrpc) SendEventMessage

func (r ConnectorGrpc) SendEventMessage(ctx context.Context, in *pb.EventMessage) (empty *pb.Empty, err error)

SendEventMessage : Connector send event function.

func (ConnectorGrpc) SendStop

func (r ConnectorGrpc) SendStop(ctx context.Context, in *pb.Stop) (validate *pb.Validate, err error)

SendStop : Connector send stop.

func (ConnectorGrpc) StartGrpcServer

func (r ConnectorGrpc) StartGrpcServer()

StartGrpcServer : ConnectorGrpc start.

func (ConnectorGrpc) WaitCommandMessage

func (r ConnectorGrpc) WaitCommandMessage(ctx context.Context, in *pb.CommandMessageWait) (commandMessage *pb.CommandMessage, err error)

WaitCommandMessage : Connector wait command function.

func (ConnectorGrpc) WaitEventMessage

func (r ConnectorGrpc) WaitEventMessage(ctx context.Context, in *pb.EventMessageWait) (messageEvent *pb.EventMessage, err error)

WaitEventMessage : Connector wait event function.

func (ConnectorGrpc) WaitTopicMessage

func (r ConnectorGrpc) WaitTopicMessage(ctx context.Context, in *pb.TopicMessageWait) (messageEvent *pb.EventMessage, err error)

WaitTopicMessage : Connector wait event by topic function.

Jump to

Keyboard shortcuts

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