05-sync-polling

command
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2026 License: MIT Imports: 14 Imported by: 0

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

Overview

Poll-based sync from Directus.

Jump to

Keyboard shortcuts

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