databus

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GET            = databus.GET
	SUBSCRIBE      = databus.SUBSCRIBE
	GETPRODUCERS   = databus.GETPRODUCERS
	DELETEPRODUCER = databus.DELETEPRODUCER
	TERMINATE      = databus.TERMINATE
)

Variables

This section is empty.

Functions

func NewCommandChan

func NewCommandChan() chan Envelope

func NewDataBusClientWithBus

func NewDataBusClientWithBus(mb messagebus.Messagebus, clientName string) *databus.DataBusClient

func NewDataBusServiceWithBus

func NewDataBusServiceWithBus(mb messagebus.Messagebus) *databus.DataBusService

func NewDataGroupChan

func NewDataGroupChan(n int) chan *databus.DataGroup

func NewDataProducer

func NewDataProducer() *databus.DataProducer

func NewDataProducers

func NewDataProducers(n int) []*databus.DataProducer

Types

type DataBusService

type DataBusService = databus.DataBusService

type DataGroup

type DataGroup = databus.DataGroup

type DataGroups

type DataGroups struct {
	Mu     sync.RWMutex
	Groups map[string]map[string]*databus.DataGroup // map from sysid to groupID to groups
}

func NewDataGroupsMap

func NewDataGroupsMap() *DataGroups

func (*DataGroups) AddDataGroup

func (d *DataGroups) AddDataGroup(sysId string, group *databus.DataGroup)

func (*DataGroups) GetDataGroups

func (d *DataGroups) GetDataGroups() map[string]map[string]*databus.DataGroup

type Envelope

type Envelope = service.Envelope

type EventValue

type EventValue = databus.EventValue

Jump to

Keyboard shortcuts

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