grafana/pkg/util
Diego Augusto Molina e6ead667b3
Unified Storage: added pkg/util/ring package to handle queueing of notifications (#84657)
* added pkg/util/rinq package to handle queueing of notifications

* fix linters

* Fix typo in comment

Co-authored-by: Dan Cech <dcech@grafana.com>

* improve allocation strategy for Enqueue; remove unnecessary clearing of slice

* Update pkg/util/ringq/dyn_chan_bench_test.go

Co-authored-by: Dan Cech <dcech@grafana.com>

* Update pkg/util/ringq/ringq.go

Co-authored-by: Dan Cech <dcech@grafana.com>

* refactor to move stats and shrinking into Ring

* add missing error assertions in tests

* add missing error assertions in tests and linting issues

* simplify controller closed check

* improve encapsulation of internal state in Ring

* use (*Ring).Len for clarity instead of stats

---------

Co-authored-by: Dan Cech <dcech@grafana.com>
2024-04-11 19:32:31 -03:00
..
cmd Packaging: Added deprecation warnings when running grafana-cli or grafana-server; the grafana command should be used instead. (#66976) 2023-04-20 19:51:50 +02:00
cmputil Chore: use any rather than interface{} (#74066) 2023-08-30 18:46:47 +03:00
errutil QueryService: Return application/json and better errors (#84234) 2024-03-19 15:52:15 +02:00
osutil Settings: Fix data race when dynamically overriding settings with environment variables (#81667) 2024-02-05 12:25:54 -03:00
proxyutil Auth: Extended JWT client for OBO and Service Authentication (#83814) 2024-04-02 17:45:15 +02:00
retryer Database: Don't sleep 10ms before every request (#64832) 2023-03-27 11:17:05 +02:00
ring Unified Storage: added pkg/util/ring package to handle queueing of notifications (#84657) 2024-04-11 19:32:31 -03:00
ticker Alerting: Extract ticker into shared package (#55703) 2022-09-26 12:35:33 -05:00
xorm K8s: Add slog wrapper (#84680) 2024-04-09 18:39:25 +03:00
contextutil_test.go Chore: Add context util that allow to provide cause of cancellation (#53918) 2022-08-24 10:24:41 -04:00
contextutil.go Chore: Replace go-multierror with errors package (#66432) 2023-06-19 12:29:45 +03:00
encoding_test.go Utils: Reimplement util.GetRandomString to avoid modulo bias (#64481) 2023-04-20 10:24:02 -04:00
encoding.go Utils: Reimplement util.GetRandomString to avoid modulo bias (#64481) 2023-04-20 10:24:02 -04:00
encryption_test.go Fix decrypting secrets in alerting migration (#41061) 2021-10-29 14:20:07 +03:00
encryption.go Encryption: Use secrets service (#40251) 2021-11-04 18:47:21 +02:00
filepath_test.go Plugins: Make file system path handling in tests OS agnostic (#79651) 2023-12-19 11:01:48 +01:00
filepath.go Plugins: Always load decoupled frontend assets from builds (#81873) 2024-03-13 12:40:09 +01:00
ip_address_test.go Backend: fix IPv6 address parsing erroneous (#28585) 2020-11-25 07:55:22 +01:00
ip_address.go Chore: Remove Wrapf (#50128) 2022-06-06 22:30:31 +02:00
json_test.go JWT Authentication: Add support for specifying groups in auth.jwt for teamsync (#82175) 2024-02-09 16:35:58 +01:00
json.go JWT Authentication: Add support for specifying groups in auth.jwt for teamsync (#82175) 2024-02-09 16:35:58 +01:00
md5_test.go Fix changed want md5 hash 2018-09-21 13:41:03 +02:00
md5.go pkg/util/*: Add missing function comments. 2019-01-28 22:09:40 +01:00
pointer.go Chore: Remove xorcare/pointer dependency (#63900) 2023-03-06 05:23:15 -05:00
reverse_test.go Nested Folders: Add tests for store methods (#57662) 2022-11-03 14:21:41 +01:00
reverse.go Nested Folders: Add tests for store methods (#57662) 2022-11-03 14:21:41 +01:00
shortid_generator_test.go Chore: Generate shorter UIDs (#79843) 2024-01-24 11:27:46 -08:00
shortid_generator.go Chore: Generate shorter UIDs (#79843) 2024-01-24 11:27:46 -08:00
split_email_test.go Test: Create unit test to SplitEmails (#27985) 2020-10-02 08:42:10 +02:00
split_email.go Emails: resurrect template notification (#18686) 2019-08-26 17:19:03 +02:00
strings_test.go Util: Support parsing and splitting strings enclosed in quotes in util.SplitString (#85735) 2024-04-09 10:35:57 +02:00
strings.go Util: Support parsing and splitting strings enclosed in quotes in util.SplitString (#85735) 2024-04-09 10:35:57 +02:00
svg.go Chore: remove the entity kind registry (#79178) 2023-12-06 14:00:53 -08:00
tls_test.go HTTP: Add TLS version configurability for Grafana server (#67482) 2023-05-08 17:11:36 +02:00
tls.go HTTP: Add TLS version configurability for Grafana server (#67482) 2023-05-08 17:11:36 +02:00
url_test.go Tests: Change util GoConvey tests to use testify (#26724) 2020-08-13 11:10:48 +02:00
url.go AzureMonitor: Alerting for Azure Application Insights (#19381) 2019-10-07 14:18:14 +02:00
validation_test.go Tests: Change util GoConvey tests to use testify (#26724) 2020-08-13 11:10:48 +02:00
validation.go pkg/util/*: Add missing function comments. 2019-01-28 22:09:40 +01:00