Documentation
¶
Overview ¶
Package cmdutil pkg/dmsg/cmdutil/keyfile.go c1-net-dmsg
Package cmdutil pkg/dmsg/cmdutil/pprof.go c1-net-dmsg
Package cmdutil pkg/dmsg/cmdutil/pprof_handlers.go c1-net-dmsg
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitPProf ¶
InitPProf starts profiling based on the given mode and address. Supported modes: http, cpu, mem, mutex, block, trace. If mode is empty, this is a no-op. Returns a stop function that should be called on shutdown to finalize profiles.
func LoadOrGenerateKey ¶
LoadOrGenerateKey loads a secret key from a file, or generates a new keypair and writes it to the file if it doesn't exist. This allows systemd services to auto-generate their identity on first run without bash workarounds.
Types ¶
This section is empty.