Documentation ¶
Index ¶
- func BulkChange(ctx context.Context, dbId string, table string)
- func Delete(ctx context.Context, dbId string, table string, pk string)
- func Insert(ctx context.Context, dbId string, table string, pk string)
- func Update(ctx context.Context, dbId string, table string, pk string, ...)
- type BroadcasterI
- type DefaultBroadcaster
- func (b DefaultBroadcaster) BulkChange(ctx context.Context, dbId string, table string)
- func (b DefaultBroadcaster) Delete(ctx context.Context, dbId string, table string, pk string)
- func (b DefaultBroadcaster) Insert(ctx context.Context, dbId string, table string, pk string)
- func (b DefaultBroadcaster) Update(ctx context.Context, dbId string, table string, pk string, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BroadcasterI ¶
type BroadcasterI interface { Insert(ctx context.Context, dbId string, table string, pk string) Update(ctx context.Context, dbId string, table string, pk string, fieldnames ...string) Delete(ctx context.Context, dbId string, table string, pk string) BulkChange(ctx context.Context, dbId string, table string) }
var Broadcaster BroadcasterI
Broadcaster is the injected broadcaster that the generated forms use to notify the application that the database has changed. The application will start with the given default below, but you can change it if needed.
type DefaultBroadcaster ¶
type DefaultBroadcaster struct { }
DefaultBroadcaster broadcasts database changes to the client using the watcher's pub/sub mechanism
func (DefaultBroadcaster) BulkChange ¶
func (b DefaultBroadcaster) BulkChange(ctx context.Context, dbId string, table string)
Click to show internal directories.
Click to hide internal directories.