client

package
v0.44.4 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2025 License: AGPL-3.0 Imports: 11 Imported by: 1 module, 8 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FlowMessageStreamReader

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

func (*FlowMessageStreamReader) Next

func (fmsr *FlowMessageStreamReader) Next() (flow.Identifier, interface{}, error)

type GhostClient

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

GhostClient is a client for the ghost node.

The ghost node is a special node type, used for testing purposes. It can "impersonate" any other node role, send messages to other nodes on the network, and listen to broadcast messages.

NOTE: currently the ghost node is limited to 1-K messages (ie. messages sent to at least 2 other nodes). The ghost node WILL NOT receive a 1-1 message, unless the message is explicitly sent to it.

func NewGhostClient

func NewGhostClient(addr string) (*GhostClient, error)

func (*GhostClient) Close

func (c *GhostClient) Close() error

Close closes the client connection.

func (*GhostClient) Send

func (c *GhostClient) Send(ctx context.Context, channel channels.Channel, event interface{}, targetIDs ...flow.Identifier) error

func (*GhostClient) Subscribe

Jump to

Keyboard shortcuts

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