]> ruderich.org/simon Gitweb - safcm/safcm.git/commit
Move synchronization loop into new package frontend
authorSimon Ruderich <simon@ruderich.org>
Tue, 18 May 2021 15:46:56 +0000 (17:46 +0200)
committerSimon Ruderich <simon@ruderich.org>
Tue, 18 May 2021 16:23:47 +0000 (18:23 +0200)
commitc899e17495d4eb932e0b4f428ec91882d845f1bc
tree8291edcbd875b6f40df1c55ee2073751c8dedd70
parent9269fa3c94e700afc0be823f58ea473a2db8f3dc
Move synchronization loop into new package frontend

This is in preparation for other programs (besides cmd/safcm) using the
safcm library. To reduce code duplication useful functions will be
provided by the frontend package. Its use is optional. All core
functionality is provided by the regular safcm packages.

The logging setup was slightly modified. Log messages are now no longer
filtered by Sync.log() but by the new log function Loop.LogEventFunc (or
its implementation logEvent()). This is also the reason why one test was
removed from sync_sync_test.go which is no longer relevant.
cmd/safcm/sync.go
cmd/safcm/sync_sync_test.go
cmd/safcm/sync_test.go
frontend/log.go [new file with mode: 0644]
frontend/loop.go [new file with mode: 0644]