package
25.1.0+incompatible
Repository: https://github.com/cockroachdb/cockroach.git
Documentation: pkg.go.dev

# Functions

NewListenerRegistry creates a registry of reusable listeners to be used with test cluster.

# Structs

ListenerRegistry is a registry for listener sockets that allows TestServers to reuse listener sockets and keep them on the same ports throughout server restarts.
A ReusableListener wraps a net.Listener and gives it the ability to be closed and reopened, which is useful for tests that want to restart servers under the same address without worrying about losing a race with another process' port acquisition.