types

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const CmdRenderDump = "render-dump"

Variables

This section is empty.

Functions

func AddFlags

func AddFlags(rootCmd *cobra.Command)

func GetLogger

func GetLogger(params *Params) *log.Logger

GetLogger returns a file logger, according to params.

func RootCmd

func RootCmd(fn RootFn) *cobra.Command

func StartCpuProfileSrv

func StartCpuProfileSrv(ctx context.Context, logger *log.Logger, p *Params)

Types

type Params

type Params struct {
	LogLevel   am.LogLevel
	LogFile    string
	Version    bool
	ServerAddr string
	DebugAddr  string
	ImportData string

	// later
	StartupMachine  string
	StartupView     string
	StartupTx       int
	EnableMouse     bool
	CleanOnConnect  bool
	SelectConnected bool
	ProfSrv         string

	MaxMemMb int
	FwdData  []string
}

func ParseParams

func ParseParams(cmd *cobra.Command, _ []string) Params

type RootFn

type RootFn func(cmd *cobra.Command, args []string, params Params)

Jump to

Keyboard shortcuts

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