Documentation ¶ Index ¶ func New(config string) (server *atom.Server, cancel func(), err error) 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. Source Files ¶ View all Source files server.go Click to show internal directories. Click to hide internal directories.