command
Version:
v1.2.3
Opens a new window with list of versions in this module.
Published: Apr 23, 2026
License: MIT
Opens a new window with license information.
Imports: 14
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
05 — Sync via Polling
Demonstrates the Manager's poll-based sync: periodically checks Directus for changes and updates in-memory configs.
What you'll learn:
- Manager startup sequence (cache → storage → Directus)
- Poll interval configuration
- How version detection works (date_updated / date_created)
- Forcing an immediate sync with
SyncNow()
task up
go run example/05-sync-polling/main.go
Create or edit items in Directus UI at http://localhost:8055 and watch the terminal for sync logs.
Documentation
¶
Poll-based sync from Directus.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.