Documentation
¶
Overview ¶
Package topics defines several canonical ControlZ topics.
Index ¶
- func ArgsTopic() fw.Topic
- func EnvTopic() fw.Topic
- func MemTopic() fw.Topic
- func MetricsTopic() fw.Topic
- func NewCollectionTopic(title string, prefix string, collections ...ReadableCollection) fw.Topic
- func ProcTopic() fw.Topic
- func ScopeTopic() fw.Topic
- func SignalsTopic() fw.Topic
- func VersionTopic() fw.Topic
- type ReadableCollection
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArgsTopic ¶
ArgsTopic returns a ControlZ topic that allows visualization of process command-line arguments.
func EnvTopic ¶
EnvTopic returns a ControlZ topic that allows visualization of process environment variables.
func MemTopic ¶
MemTopic returns a ControlZ topic that allows visualization of process memory usage.
func MetricsTopic ¶
MetricsTopic returns a ControlZ topic that allows visualization of process metrics.
func NewCollectionTopic ¶
func NewCollectionTopic(title string, prefix string, collections ...ReadableCollection) fw.Topic
NewCollectionTopic creates a new custom topic that exposes the provided collections.
func ScopeTopic ¶
ScopeTopic returns a ControlZ topic that allows visualization of process logging scopes.
func SignalsTopic ¶
SignalsTopic returns a ControlZ topic that sends command signals to the process
func VersionTopic ¶
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) (interface{}, error) }
ReadableCollection is a staticCollection collection of entries to be exposed via CtrlZ.
func NewStaticCollection ¶
func NewStaticCollection(name string, items map[string]interface{}) ReadableCollection
NewStaticCollection creates a static collection from the given set of items.