Documentation
¶
Index ¶
- Constants
- type SystemEvent
- type SystemEventHub
- func (h *SystemEventHub) Publish(topic, payload string)
- func (h *SystemEventHub) Subcribe(code string, listener chan SystemEvent, tcps ...str_topic.TopicAction)
- func (h *SystemEventHub) Topics(code string) []string
- func (h *SystemEventHub) TopicsMeta(code string) []TopicMeta
- func (h *SystemEventHub) Unsubcribe(code string, topics ...str_topic.TopicAction)
- type TopicMeta
Constants ¶
View Source
const SystemHubCategory = "SYSTEMHUB"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SystemEvent ¶
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)
Click to show internal directories.
Click to hide internal directories.