Help us shape the future of Go! Take the 2026 Go Developer Survey

cmdutil

package
v1.3.104-alpha1 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: AGPL-3.0 Imports: 14 Imported by: 0

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

func InitPProf(log *logging.Logger, mode string, addr string) func()

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

func LoadOrGenerateKey(path string, sk *cipher.SecKey) error

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.

Jump to

Keyboard shortcuts

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