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 ¶
HasChanges returns true if any field in the patch has been set
type FlowPatch ¶
FlowPatch represents partial updates to a Flow
func (FlowPatch) HasChanges ¶
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 ¶
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 ¶
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 ¶
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 ¶
NewOptional creates an Optional with a value
func NewOptionalPtr ¶
NewOptionalPtr creates an Optional from a pointer If the pointer is nil, returns an explicitly unset Optional
func NotSet ¶
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