Documentation
¶
Overview ¶
Package detach deep-copies the durable records that cross a storage or Harness boundary, so the copy shares no mutable memory with what it was read from.
Index ¶
- func ContextView(view durable.ContextView) durable.ContextView
- func Document(value durable.JsonValue) durable.JsonValue
- func Entry(record durable.EntryRecord) durable.EntryRecord
- func JSON(value durable.JsonValue) durable.JsonValue
- func Messages(messages []ai.Message) []ai.Message
- func Object(value durable.JsonObject) durable.JsonObject
- func Pointer[T any](value *T) *T
- func Value(value reflect.Value) reflect.Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContextView ¶
func ContextView(view durable.ContextView) durable.ContextView
ContextView deep-copies a context view.
func Document ¶
Document deep-copies a document value or operation. Document objects are ordered, so a Go map a caller placed in one becomes a *delta.JsonObject in JavaScript own-key order: a Go map has no insertion order to keep.
func Entry ¶
func Entry(record durable.EntryRecord) durable.EntryRecord
func JSON ¶
JSON deep-copies a JSON value. JSON containers and scalars take the fast path; any other Go value is copied structurally.
func Object ¶
func Object(value durable.JsonObject) durable.JsonObject
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.