brokerserver

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrAlreadyRunning = errors.New("aht broker is already running")
	ErrUnsupported    = errors.New("aht broker is unsupported on this platform")
)

Functions

This section is empty.

Types

type Options

type Options struct {
	Store            *registry.MemoryStore
	SocketPath       string
	MaxConnections   int
	WriteTimeout     time.Duration
	Ready            chan<- struct{}
	OnConnectionDone func()
}

Options configures a broker server.

type Server

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

Server owns the local socket API for one in-memory registry.

func New

func New(options Options) *Server

New returns a broker server. Serve validates required dependencies.

func (*Server) Serve

func (s *Server) Serve(ctx context.Context) error

Serve accepts local requests until ctx is canceled.

Jump to

Keyboard shortcuts

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