wave

package module
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2026 License: MIT Imports: 13 Imported by: 0

README

wave

Config propagation

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunServer

func RunServer(ctx context.Context, ls net.Listener, config ServerConfig) error

RunServer runs server.

Types

type Client

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

Client receives and sends requested messages from/to servers.

func NewClient

func NewClient(config ClientConfig) (*Client, <-chan any, error)

NewClient creates new client.

func (*Client) Run

func (client *Client) Run(ctx context.Context) error

Run runs client.

func (*Client) Send

func (client *Client) Send(message any, marhsaller proton.Marshaller) error

Send sends new message to servers.

type ClientConfig

type ClientConfig struct {
	Servers        []string
	MaxMessageSize uint64
	Requests       []RequestConfig
}

ClientConfig is the config of client.

type RequestConfig

type RequestConfig struct {
	Marshaller proton.Marshaller
	Messages   []any
}

RequestConfig defines message types to receive on client.

type ServerConfig

type ServerConfig struct {
	Servers        []string
	MaxMessageSize uint64
}

ServerConfig defines server configuration.

Directories

Path Synopsis
test
wire1/generator command
wire2/generator command
generator command

Jump to

Keyboard shortcuts

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