Skip to content

Event Hooks System for Reactive Applications #14

Description

@mgazza

Overview

Essential for reactive applications - add hooks to CRDT struct for local operations to enable integration with other applications.

Implementation Tasks

  • Add hooks to CRDT struct for local operations:
    • OnSet(key, value string, meta CRDTKeyMeta) - triggered after local set
    • OnDelete(key string, meta CRDTKeyMeta) - triggered after local delete
    • OnSync(changes []KeyEntry, fromPeer string) - triggered after sync
  • Hooks should be called after database persistence
  • Keep hooks simple - just notification, not transformation
  • Add optional hook timeout to prevent blocking

Priority

Phase 1: Core Infrastructure - Critical for reactive applications

Labels

enhancement, hooks, api

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions