grpc

package
v0.0.1-rc4 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Recv

func Recv(id uuid.UUID, logger *zap.Logger, stream indexer.IndexerService_TaskRPCClient, internalStream *structs.StreamAccess, pingCh chan<- structs.TaskResponse, finishCh chan error)

Recv listener for stream messages

Types

type AwaitingPing

type AwaitingPing struct {
	// contains filtered or unexported fields
}

AwaitingPing is basic iinformation about sent ping's

type Client

type Client struct{}

Client is GRPC implementation for connectivity

func NewClient

func NewClient() *Client

NewClient Client constructor

func (*Client) Run

func (c *Client) Run(ctx context.Context, logger *zap.Logger, stream *structs.StreamAccess)

Run runs grpc client, connecting to given address and maintaining connection

func (*Client) Type

func (c *Client) Type() string

Type returns client type

type ConnectGRPCRunner

type ConnectGRPCRunner interface {
	Connect(ctx context.Context, stream *structs.StreamAccess) error
	Run(ctx context.Context, logger *zap.Logger, stream *structs.StreamAccess)
}

ConnectGRPCRunner GRPC Runner interface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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