bridge

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2026 License: AGPL-3.0-or-later Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const SocketPath = "/tmp/uild.sock"

Variables

This section is empty.

Functions

This section is empty.

Types

type BridgeEmitter

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

func NewBridgeEmitter

func NewBridgeEmitter() (*BridgeEmitter, error)

func (*BridgeEmitter) BroadcastBreach

func (b *BridgeEmitter) BroadcastBreach(event SafetyEvent)

func (*BridgeEmitter) Close

func (b *BridgeEmitter) Close()

type SafetyEvent

type SafetyEvent struct {
	InterlockID string             `json:"interlock_id"`
	Breach      bool               `json:"breach"`
	Timestamp   int64              `json:"timestamp"`
	Metrics     map[string]float64 `json:"metrics"`
}

Jump to

Keyboard shortcuts

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