Help us shape the future of Go! Take the 2026 Go Developer Survey

controlclient

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

Package controlclient talks to the coordinator's control service.

Index

Constants

This section is empty.

Variables

View Source
var ErrUnauthenticated = errors.New("unauthenticated")

ErrUnauthenticated means the coordinator rejected the auth key or token.

Functions

This section is empty.

Types

type Client

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

Client is a control-plane client.

func New

func New(baseURL string) (*Client, error)

New returns a client for the coordinator at baseURL (http or https).

func (*Client) Register

Register enrolls this node.

func (*Client) ReportStatus

func (c *Client) ReportStatus(ctx context.Context, token string, peers []*controlv1.PeerPath) error

ReportStatus reports how this node reaches its peers.

func (*Client) UpdateEndpoints

func (c *Client) UpdateEndpoints(ctx context.Context, token string, endpoints []string) error

UpdateEndpoints replaces the endpoints the coordinator advertises for this node.

func (*Client) Watch

Watch opens a netmap stream and calls fn for every netmap until the stream ends, ctx is cancelled, or fn returns an error.

Jump to

Keyboard shortcuts

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