atomtest

package
v0.5.26 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 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) (server *atom.Server, cancel func(), err 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:

{
	dns {
		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