client

package
v1.15.0-rc.13 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2025 License: Apache-2.0 Imports: 18 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 {
	// contains filtered or unexported fields
}

func New

func New(opts Options) (*Client, error)

New creates a new placement client for the given dial opts.

func (*Client) Ready

func (c *Client) Ready() bool

func (*Client) Recv

func (c *Client) Recv(ctx context.Context) (*v1pb.PlacementOrder, error)

func (*Client) Run

func (c *Client) Run(ctx context.Context) error

func (*Client) Send

func (c *Client) Send(ctx context.Context, host *v1pb.Host) error

type Options

type Options struct {
	Addresses []string
	Security  security.Handler
	Lock      *lock.Lock
	Table     table.Interface
	Healthz   healthz.Healthz
}

Jump to

Keyboard shortcuts

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