system

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const SystemHubCategory = "SYSTEMHUB"

Variables

This section is empty.

Functions

This section is empty.

Types

type SystemEvent

type SystemEvent struct {
	Topic string
	Value utils.Argument
}

func NewSystemEvent

func NewSystemEvent(topic, payload string) SystemEvent

type SystemEventHub

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

func InitializeSystemEventHub

func InitializeSystemEventHub() *SystemEventHub

func (*SystemEventHub) Publish

func (h *SystemEventHub) Publish(topic, payload string)

func (*SystemEventHub) Subcribe

func (h *SystemEventHub) Subcribe(code string, listener chan SystemEvent, tcps ...str_topic.TopicAction)

func (*SystemEventHub) Topics

func (h *SystemEventHub) Topics(code string) []string

func (*SystemEventHub) TopicsMeta

func (h *SystemEventHub) TopicsMeta(code string) []TopicMeta

func (*SystemEventHub) Unsubcribe

func (h *SystemEventHub) Unsubcribe(code string, topics ...str_topic.TopicAction)

type TopicMeta

type TopicMeta struct {
	Parent    string
	Code      string
	Status    bool
	Timestamp int64
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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