Documentation ¶
Index ¶
- func BroadcastBulkChange(ctx context.Context, dbKey string, table string)
- func BroadcastDelete(ctx context.Context, dbKey string, table string, pk interface{})
- func BroadcastInsert(ctx context.Context, dbKey string, table string, pk interface{})
- func BroadcastUpdate(ctx context.Context, dbKey string, table string, pk interface{}, ...)
- func MakeKey(ctx context.Context, dbKey string, table string, pk interface{}) string
- type DefaultWatcher
- func (w *DefaultWatcher) BroadcastBulkChange(ctx context.Context, dbKey string, table string)
- func (w *DefaultWatcher) BroadcastDelete(ctx context.Context, dbKey string, table string, pk interface{})
- func (w *DefaultWatcher) BroadcastInsert(ctx context.Context, dbKey string, table string, pk interface{})
- func (w *DefaultWatcher) BroadcastUpdate(ctx context.Context, dbKey string, table string, pk interface{}, ...)
- func (*DefaultWatcher) MakeKey(ctx context.Context, dbKey string, table string, pk interface{}) string
- type WatcherI
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BroadcastBulkChange ¶
func BroadcastDelete ¶
func BroadcastInsert ¶
func BroadcastUpdate ¶
Types ¶
type DefaultWatcher ¶
type DefaultWatcher struct { }
func (*DefaultWatcher) BroadcastBulkChange ¶
func (w *DefaultWatcher) BroadcastBulkChange(ctx context.Context, dbKey string, table string)
func (*DefaultWatcher) BroadcastDelete ¶
func (w *DefaultWatcher) BroadcastDelete(ctx context.Context, dbKey string, table string, pk interface{})
func (*DefaultWatcher) BroadcastInsert ¶
func (w *DefaultWatcher) BroadcastInsert(ctx context.Context, dbKey string, table string, pk interface{})
func (*DefaultWatcher) BroadcastUpdate ¶
type WatcherI ¶
type WatcherI interface { MakeKey(ctx context.Context, dbKey string, table string, pk interface{}) string BroadcastUpdate(ctx context.Context, dbKey string, table string, pk interface{}, fieldKeys []string) BroadcastInsert(ctx context.Context, dbKey string, table string, pk interface{}) BroadcastDelete(ctx context.Context, dbKey string, table string, pk interface{}) BroadcastBulkChange(ctx context.Context, dbKey string, table string) }
var Watcher WatcherI
Watcher is the injected watcher. See the application initialization process for Watcher creation.
Click to show internal directories.
Click to hide internal directories.