nodeapi

package
v0.0.0-...-b0c7fd6 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Storage     storagepb.StorageClient
	Membership  membershippb.MembershipClient
	Replication replicationpb.ReplicationClient
	// contains filtered or unexported fields
}

Client is a wrapper around gRPC clients for different services.

func DialGRPC

func DialGRPC(ctx context.Context, addr string) (*Client, error)

DialGRPC establishes a gRPC connection with a cluster node.

func (*Client) Close

func (c *Client) Close() error

Close closes the connection.

func (*Client) IsClosed

func (c *Client) IsClosed() bool

IsClosed returns true if the connection is closed.

type Dialer

type Dialer func(ctx context.Context, addr string) (*Client, error)

Dialer is a function that establishes a connection with a cluster node.

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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