client

package
v0.35.11-crescendo-pre... Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2024 License: AGPL-3.0 Imports: 11 Imported by: 8

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