base

package
v0.0.0-...-dbd9761 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Closer

type Closer struct {
	// contains filtered or unexported fields
}

func (*Closer) Close

func (c *Closer) Close()

type Command

type Command struct {
	// LogLevel sets the verbosity level of the application logging.
	LogLevel string `` /* 216-byte string literal not displayed */
	// LogStream is the output channel to use for logging.
	LogStream string `` /* 197-byte string literal not displayed */
	// LogStream is the type of logger to use.
	LogFormat string `` /* 161-byte string literal not displayed */
	// CPUProfile sets the (optional) path of the file for CPU profiling info.
	CPUProfile string `short:"C" long:"cpu-profile" description:"The (optional) path where the CPU profiler will store its data." optional:"yes"`
	// MemProfile sets the (optional) path of the file for memory profiling info.
	MemProfile string `short:"M" long:"mem-profile" description:"The (optional) path where the memory profiler will store its data." optional:"yes"`
	// AutomationFriendly enables automation-friendly JSON output.
	AutomationFriendly bool `short:"A" long:"automation-friendly" description:"Whether to output in automation friendly JSON format." optional:"yes"`
}

func (*Command) Init

func (cmd *Command) Init()

Init initialises the command consuming the standard, common arguments.

func (*Command) ProfileCPU

func (cmd *Command) ProfileCPU() *Closer

func (*Command) ProfileMemory

func (cmd *Command) ProfileMemory()

Jump to

Keyboard shortcuts

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