registration

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2026 License: AGPL-3.0 Imports: 12 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
}

Client periodically registers this Nexus instance with an orchestrator.

func NewClient

func NewClient(cfg *config.Config, httpClient *http.Client) (*Client, error)

NewClient creates a registration client. The provided httpClient should be configured with the hub TLS certificate for mTLS client authentication.

func (*Client) Run

func (c *Client) Run(parentCtx context.Context)

Run starts the registration loop. It blocks until cancelled or a permanent error occurs. Must be called before Stop.

func (*Client) Stop

func (c *Client) Stop()

Stop cancels the registration loop and waits for it to exit.

type Services

type Services struct {
	StunPort int `json:"stunPort,omitempty"`
}

Services describes optional capabilities of this relay. The orchestrator uses this to know which relays offer specific services.

Jump to

Keyboard shortcuts

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