grafana/pkg/plugins/backendplugin
Dan Cech 7b4925ea37
Storage: Watch support (#82282)
* initial naive implementation

* Update pkg/services/store/entity/sqlstash/sql_storage_server.go

Co-authored-by: Igor Suleymanov <radiohead@users.noreply.github.com>

* tidy up

* add action column, batch watch events

* initial implementation of broadcast-based watcher

* fix up watch init

* remove batching, it just adds needless complexity

* use StreamWatcher

* make broadcaster generic

* add circular buffer to replay recent events to new watchers

* loop within poll until all events are read

* add index on entity_history.resource_version to support poller

* increment r.Since when we send events to consumer

* switch broadcaster and cache to use channels instead of mutexes

* cleanup

---------

Co-authored-by: Igor Suleymanov <radiohead@users.noreply.github.com>
2024-03-05 10:14:38 -05:00
..
coreplugin postgresql: change plugin id (#77444) 2023-11-13 08:49:26 +01:00
grpcplugin Plugins: Add running method to interface (#78326) 2023-11-17 13:52:31 +01:00
pluginextensionv2 Rendering: Adds PDF support behind feature toggle (#81811) 2024-02-08 13:09:34 +01:00
provider Plugins: Make renderer service load renderer plugin (#77854) 2023-12-14 17:33:29 +01:00
secretsmanagerplugin Storage: Watch support (#82282) 2024-03-05 10:14:38 -05:00
backendplugin.go Licensing: Pass func to update env variables when starting plugin (#74620) 2023-09-11 09:33:10 -03:00
ifaces.go Plugins: Introduce plugin package specific logger (#62204) 2023-02-28 16:10:27 +01:00