Documentation
¶
Overview ¶
Package connect defines non-owning, versioned Orb instance attachments.
Index ¶
- func Code(err error) string
- func Fail(code string) error
- func JSON(v any) json.RawMessage
- func ValidateCall(c Call) error
- type Call
- type Endpoint
- type Error
- type Event
- type Expected
- type Ledger
- type Local
- type Model
- type Principal
- type Receipt
- type Request
- type Snapshot
- type Store
- type Stream
- type Subject
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JSON ¶
func JSON(v any) json.RawMessage
func ValidateCall ¶
Types ¶
type Endpoint ¶
type Endpoint interface {
Invoke(context.Context, string, json.RawMessage) (json.RawMessage, error)
Close() error
}
Endpoint is implemented by in-process attachments and native IPC clients. Close releases remote availability; it never disposes the attached runtime.
type Event ¶
type Event struct {
Cursor string `json:"cursor"`
Data json.RawMessage `json:"data"`
}
type Local ¶
type Local struct {
// contains filtered or unexported fields
}
Local is a non-owning in-process registration channel. Closing it fences delivery without closing the runtime adapter or its operation ledger.
type Receipt ¶
type Receipt struct {
InstanceID string `json:"instance_id"`
SessionID string `json:"session_id,omitempty"`
Method string `json:"method"`
Expected Expected `json:"expected"`
AcceptedAt int64 `json:"accepted_at"`
OperationID string `json:"operation_id"`
Status string `json:"status"`
Result json.RawMessage `json:"result,omitempty"`
Error string `json:"error,omitempty"`
Digest string `json:"digest"`
}
Directories
¶
| Path | Synopsis |
|---|---|
|
Package agent adapts an existing Orb runtime without owning its lifetime.
|
Package agent adapts an existing Orb runtime without owning its lifetime. |
|
Package protocol implements the bounded, strict JSON stream used by Orb Bridge.
|
Package protocol implements the bounded, strict JSON stream used by Orb Bridge. |
Click to show internal directories.
Click to hide internal directories.