topics

package
v0.0.0-...-bf9fd61 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 15 Imported by: 7

Documentation

Overview

Package topics defines several canonical ControlZ topics.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArgsTopic

func ArgsTopic() fw.Topic

ArgsTopic returns a ControlZ topic that allows visualization of process command-line arguments.

func EnvTopic

func EnvTopic() fw.Topic

EnvTopic returns a ControlZ topic that allows visualization of process environment variables.

func MemTopic

func MemTopic() fw.Topic

MemTopic returns a ControlZ topic that allows visualization of process memory usage.

func NewCollectionTopic

func NewCollectionTopic(title string, prefix string, collections ...ReadableCollection) fw.Topic

NewCollectionTopic creates a new custom topic that exposes the provided collections.

func ProcTopic

func ProcTopic() fw.Topic

ProcTopic returns a ControlZ topic that allows visualization of process state.

func ScopeTopic

func ScopeTopic() fw.Topic

ScopeTopic returns a ControlZ topic that allows visualization of process logging scopes.

func SignalsTopic

func SignalsTopic() fw.Topic

SignalsTopic returns a ControlZ topic that sends command signals to the process

func VersionTopic

func VersionTopic() fw.Topic

VersionTopic returns a ControlZ topic that allows visualization of versioning info.

Types

type ReadableCollection

type ReadableCollection interface {
	Name() string
	Keys() (keys []string, err error)
	Get(id string) (any, error)
}

ReadableCollection is a staticCollection collection of entries to be exposed via CtrlZ.

func NewStaticCollection

func NewStaticCollection(name string, items map[string]any) ReadableCollection

NewStaticCollection creates a static collection from the given set of items.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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