pairings

package
v0.1.21 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2026 License: MIT 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
}

func NewClient

func NewClient() *Client

func (*Client) FetchAgents

func (c *Client) FetchAgents(ctx context.Context, pairing protocol.Pairing) ([]protocol.AgentSummary, error)

func (*Client) FetchNetwork

func (c *Client) FetchNetwork(ctx context.Context, pairing protocol.Pairing) (protocol.Network, error)

func (*Client) FetchRooms

func (c *Client) FetchRooms(ctx context.Context, pairing protocol.Pairing) ([]protocol.Room, error)

func (*Client) RegisterRelay added in v0.1.14

func (c *Client) RegisterRelay(pairingID string, relayClient *relay.Client)

RegisterRelay associates a relay client with a configured pairing. Relay pairings require this registration before requests can be sent.

func (*Client) RelayMessage

func (c *Client) RelayMessage(
	ctx context.Context,
	pairing protocol.Pairing,
	requestPayload protocol.SendMessageRequest,
) (protocol.MessageAccepted, error)

type ResponseError added in v0.1.21

type ResponseError struct {
	Code int
}

ResponseError preserves the peer's response status for delivery decisions. It deliberately excludes response bodies, which may contain private data.

func (*ResponseError) Error added in v0.1.21

func (e *ResponseError) Error() string

func (*ResponseError) StatusCode added in v0.1.21

func (e *ResponseError) StatusCode() int

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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