Documentation
¶
Overview ¶
Package wire declares the generic envelope wire. Implementations live in bitruntime.
Index ¶
Constants ¶
View Source
const DefaultMaxEnvelopeBytes = 16 * 1024 * 1024
View Source
const MaxEnvelopeDepth = 4096
View Source
const WebSocketProtocol = "bitwire.ontos.v1"
Variables ¶
This section is empty.
Functions ¶
func PathStartsWith ¶ added in v0.4.0
Types ¶
type DeixisNode ¶ added in v0.3.0
type Envelope ¶ added in v0.4.0
type Envelope struct {
Source Path
Destination Path
ID core.Atom
Correlation *core.Atom
Payload core.Value
}
func CaptureEnvelope ¶ added in v0.4.0
type Termination ¶ added in v0.4.0
type Wire ¶
type Wire interface {
Send(Envelope) error
Receive(func(Envelope)) (func(), error)
Closed() <-chan struct{}
Termination() Termination
Close() error
}
Closed broadcasts resource release. Termination is stable after Closed closes. Send returns local admission only. Receive has one detachable owner.
Click to show internal directories.
Click to hide internal directories.