wave

package module
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2026 License: MIT Imports: 13 Imported by: 1 module, 6 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.

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 {
	CA             *resonance.CA
	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 {
	CA             *resonance.CA
	Servers        []string
	MaxMessageSize uint64
}

ServerConfig defines server configuration.

Directories

Path Synopsis
test
wire1
Package wire1 provides marshaller for entities.
Package wire1 provides marshaller for entities.
wire1/generator command
wire2
Package wire2 provides marshaller for entities.
Package wire2 provides marshaller for entities.
wire2/generator command
Package wire provides marshaller for entities.
Package wire provides marshaller for entities.
generator command

Jump to

Keyboard shortcuts

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