Documentation
¶
Overview ¶
Package userapp is what sync tells the app about its notifications (spec 6a): the record of the device's "notify" switch and the events the person's notices have for the app. The texts are made by the people tick when a notice is final (telegram. RenderUserAppNotices); this runs in the public Worker and only reads and copies them, with no renderer or language table.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Sync ¶
func Sync(ctx context.Context, st *store.Store, now time.Time, dev store.AccessDevice, n access.ClientNotify) ([]store.UserAppEvent, error)
Sync is what sync does for the notifications of one device. It records the device's switch (n.Notify, "on" or "off") only when it differs from what the device holds (dev is read with it). For a device that asked for events (n.Events) it returns the person's events and marks the new ones taken (store.TakeUserAppEvents). A failed switch write is the error; the events are then not read.
Types ¶
This section is empty.