client

package
v0.0.0-...-be3b37f Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package client contains a low level client to the metadata server.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrTimeout = errors.New("timeout")
)

Functions

This section is empty.

Types

type Client

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

Client is a low-level metadata server client that can send and receive message.Message's. It can be used to build higher level clients, e.g., a storage.VersionedStore implementation.

func New

func New(opts ...Option) *Client

func (*Client) Close

func (c *Client) Close()

func (*Client) Receive

func (c *Client) Receive(m *message.Message) error

Receive receives a message from the server.

func (*Client) Send

func (c *Client) Send(m message.Message) error

Send sends the message to the server.

type Option

type Option func(*options)

func WithAddress

func WithAddress(value string) Option

func WithFallbackToPlainTCP

func WithFallbackToPlainTCP() Option

Jump to

Keyboard shortcuts

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