patch

package
v0.0.0-...-110f058 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EdgePatch

type EdgePatch struct {
	SourceID      Optional[string] // ID stored as base64 string for JSON compatibility
	TargetID      Optional[string] // ID stored as base64 string for JSON compatibility
	SourceHandler Optional[int32]  // EdgeHandle type
}

EdgePatch represents partial updates to an Edge

func (EdgePatch) HasChanges

func (p EdgePatch) HasChanges() bool

HasChanges returns true if any field in the patch has been set

type FlowPatch

type FlowPatch struct {
	Name     Optional[string]
	Duration Optional[uint64]
}

FlowPatch represents partial updates to a Flow

func (FlowPatch) HasChanges

func (p FlowPatch) HasChanges() bool

HasChanges returns true if any field in the patch has been set

type FlowVariablePatch

type FlowVariablePatch struct {
	Name        Optional[string]
	Value       Optional[string]
	Enabled     Optional[bool]
	Description Optional[string]
	Order       Optional[float64]
}

FlowVariablePatch represents partial updates to a FlowVariable

func (FlowVariablePatch) HasChanges

func (p FlowVariablePatch) HasChanges() bool

HasChanges returns true if any field in the patch has been set

type HTTPAssertPatch

type HTTPAssertPatch struct {
	Value   Optional[string]
	Enabled Optional[bool]
	Order   Optional[float32]
}

HTTPAssertPatch represents sparse updates to assert delta fields.

Note: HTTPAssert does not have Key or Description fields, only Value.

func (HTTPAssertPatch) HasChanges

func (p HTTPAssertPatch) HasChanges() bool

HasChanges returns true if any field in the patch has been set

type HTTPBodyFormPatch

type HTTPBodyFormPatch struct {
	Key         Optional[string]
	Value       Optional[string]
	Enabled     Optional[bool]
	Description Optional[string]
	Order       Optional[float32]
}

HTTPBodyFormPatch represents sparse updates to body form delta fields

func (HTTPBodyFormPatch) HasChanges

func (p HTTPBodyFormPatch) HasChanges() bool

HasChanges returns true if any field in the patch has been set

type HTTPBodyRawPatch

type HTTPBodyRawPatch struct {
	Data Optional[string]
}

HTTPBodyRawPatch represents sparse updates to body raw delta fields.

Note: Data is stored as []byte in DB but transmitted as string for JSON compatibility.

func (HTTPBodyRawPatch) HasChanges

func (p HTTPBodyRawPatch) HasChanges() bool

HasChanges returns true if any field in the patch has been set

type HTTPBodyUrlEncodedPatch

type HTTPBodyUrlEncodedPatch struct {
	Key         Optional[string]
	Value       Optional[string]
	Enabled     Optional[bool]
	Description Optional[string]
	Order       Optional[float32]
}

HTTPBodyUrlEncodedPatch represents sparse updates to body URL-encoded delta fields

func (HTTPBodyUrlEncodedPatch) HasChanges

func (p HTTPBodyUrlEncodedPatch) HasChanges() bool

HasChanges returns true if any field in the patch has been set

type HTTPDeltaPatch

type HTTPDeltaPatch struct {
	Name   Optional[string]
	Method Optional[string]
	Url    Optional[string]
}

HTTPDeltaPatch represents sparse updates to HTTP delta fields.

Semantics:

  • Field.IsSet() == false = field not changed (omitted from update)
  • Field.IsUnset() == true = field explicitly UNSET/cleared
  • Field.HasValue() == true = field set to that value

func (HTTPDeltaPatch) HasChanges

func (p HTTPDeltaPatch) HasChanges() bool

HasChanges returns true if any field in the patch has been set

type HTTPHeaderPatch

type HTTPHeaderPatch struct {
	Key         Optional[string]
	Value       Optional[string]
	Enabled     Optional[bool]
	Description Optional[string]
	Order       Optional[float32]
}

HTTPHeaderPatch represents sparse updates to header delta fields

func (HTTPHeaderPatch) HasChanges

func (p HTTPHeaderPatch) HasChanges() bool

HasChanges returns true if any field in the patch has been set

type HTTPSearchParamPatch

type HTTPSearchParamPatch struct {
	Key         Optional[string]
	Value       Optional[string]
	Enabled     Optional[bool]
	Description Optional[string]
	Order       Optional[float32] // Must be float32 for sync converter
}

HTTPSearchParamPatch represents sparse updates to search parameter delta fields.

Semantics:

  • Field.IsSet() == false = field not changed (omitted from update)
  • Field.IsUnset() == true = field explicitly UNSET/cleared
  • Field.HasValue() == true = field set to that value

Note: Order uses float32 for sync compatibility, though DB stores as float64.

func (HTTPSearchParamPatch) HasChanges

func (p HTTPSearchParamPatch) HasChanges() bool

HasChanges returns true if any field in the patch has been set

type NodePatch

type NodePatch struct {
	Name      Optional[string]
	PositionX Optional[float64]
	PositionY Optional[float64]
}

NodePatch represents partial updates to a Node (base node properties)

func (NodePatch) HasChanges

func (p NodePatch) HasChanges() bool

HasChanges returns true if any field in the patch has been set

type Optional

type Optional[T any] struct {
	// contains filtered or unexported fields
}

Optional represents a field that may or may not be set in a patch. Distinguishes between:

  • Not set (not in patch) - zero value, set=false
  • Set to nil (UNSET/clear the field) - value=nil, set=true
  • Set to value (VALUE) - value=&T, set=true

func NewOptional

func NewOptional[T any](val T) Optional[T]

NewOptional creates an Optional with a value

func NewOptionalPtr

func NewOptionalPtr[T any](val *T) Optional[T]

NewOptionalPtr creates an Optional from a pointer If the pointer is nil, returns an explicitly unset Optional

func NotSet

func NotSet[T any]() Optional[T]

NotSet creates a not-set Optional (zero value, not in patch) This is the zero value of Optional[T], but provided as a named constructor for clarity

func Unset

func Unset[T any]() Optional[T]

Unset creates an explicitly unset Optional (set to nil)

func (Optional[T]) HasValue

func (o Optional[T]) HasValue() bool

HasValue returns true if set and has non-nil value

func (Optional[T]) IsSet

func (o Optional[T]) IsSet() bool

IsSet returns true if this field was explicitly set (even if to nil)

func (Optional[T]) IsUnset

func (o Optional[T]) IsUnset() bool

IsUnset returns true if field was set but value is nil (UNSET semantics)

func (Optional[T]) Value

func (o Optional[T]) Value() *T

Value returns the pointer value (nil if UNSET)

Jump to

Keyboard shortcuts

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