Documentation
¶
Overview ¶
Package wire declares addressless interaction and addressed access.
Index ¶
- Constants
- func DecodeMessage(bytes []byte, maxBytes int) (core.Value, error)
- func EncodeMessage(message core.Value, maxBytes int) ([]byte, error)
- func PackAddressed(path Path, message core.Value) (core.Value, error)
- func PathEqual(a, b Path) bool
- func PathStartsWith(a, prefix Path) bool
- type AddressedEndpoint
- type AddressedWire
- type Child
- type DeixisNode
- type Endpoint
- type Parts
- type Path
- type Termination
- type Wire
- type WireNode
Constants ¶
View Source
const DefaultMaxMessageBytes = 16 * 1024 * 1024
View Source
const MaxMessageDepth = 4096
View Source
const WebSocketProtocol = "bitwire.ontos.v2"
Variables ¶
This section is empty.
Functions ¶
func DecodeMessage ¶ added in v0.5.0
func EncodeMessage ¶ added in v0.5.0
func PackAddressed ¶ added in v0.5.0
func PathStartsWith ¶ added in v0.4.0
Types ¶
type AddressedEndpoint ¶ added in v0.5.0
type AddressedEndpoint interface {
AddressedWire
Receive(func(Path, core.Value)) (func(), error)
Closed() <-chan struct{}
Termination() Termination
Close() error
}
type DeixisNode ¶ added in v0.3.0
type Termination ¶ added in v0.4.0
type Wire ¶
Closed broadcasts resource release. Termination is stable after Closed closes. Send returns local admission only. Receive has one detachable owner.
type WireNode ¶ added in v0.5.0
type WireNode = DeixisNode[Wire]
Click to show internal directories.
Click to hide internal directories.