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

# Functions

MakeShutdownRequest constructs a serverctl.ShutdownRequest.

# Constants

ShutdownReasonDrainRPC represents a drain RPC with the shutdown flag set.
ShutdownReasonFatalError identifies an error that requires the server be terminated immediately.
ShutdownReasonGracefulStopRequestedByOrchestration is used when a graceful shutdown was requested by orchestration.
ShutdownReasonServerStartupError means that the server startup process failed.

# Structs

ShutdownRequest is used to signal a request to shutdown the server through server.stopTrigger.

# Interfaces

ServerShutdownInterface is the subset of the APIs on a server object that's sufficient to run a server shutdown.

# Type aliases

ShutdownReason identifies the reason for a ShutdownRequest.