atomtest

package
v0.5.6 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2025 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(config string) (*atom.Server, func(), error)

New returns a server suitable for testing. Use cancel to shutdown the server Use [server.Addr] to get the listening addresses. NewTest starts 2 servers, one on UDP and another on TCP. The config will be prefixed with:

{
	server {
		addr [::]:0
		limits {
			run 1
		}
	}
}

Types

This section is empty.

Jump to

Keyboard shortcuts

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