kill

package
v0.6.65 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: BSD-3-Clause Imports: 6 Imported by: 0

README

Name

kill - stop the server after a duration

Description

kill stops the server after some amount of time. Its main use is to spin up a server, perform a minimal check and be certain it will shut itself down again. This minimizes the CI/CD setup that is needed, as you can just start atomdns in the background and forget about it.

As this takes down the entire server it doesn't matter in which handler block it is specified.

Syntax

kill DURATION

Examples

example.org {
    kill 10s
    any
    whoami
}

Bugs

The server's shutdown handlers are not executed.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Err

func Err(err error) slog.Attr

Types

type Kill

type Kill int

func (*Kill) Err

func (k *Kill) Err(err error) error

func (*Kill) HandlerFunc

func (k *Kill) HandlerFunc(next dns.HandlerFunc) dns.HandlerFunc

func (*Kill) Key

func (k *Kill) Key() string

func (*Kill) Setup

func (k *Kill) Setup(co *dnsserver.Controller) error

Jump to

Keyboard shortcuts

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