grafana/pkg/util
Alexander Zobnin e183b2dff9
Zanzana: Refactor server provider (#116756)
* Extract embedded server provider

* Use openfga client for connecting to server

* refactor server init

* fix tests

* Don't run http server by default

* refactor HTTP server start

* refactor tracer init

* refactor tests

* release resources on server stop

* Fix failing user migration test (translate BIGINT UNSIGNED from openfga tables)

* release resources on server stop

* format

* Fix service shut down

* only close if zanzana enabled

* do not init zanzana server if no feature flag provided
2026-02-03 17:28:26 +01: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
debouncer Rebuild search indexes asynchronously (#111829) 2025-10-01 11:52:09 +02:00
errhttp wire up the ui to the new search api (#97866) 2024-12-19 13:21:48 -05:00
httpclient Replace usage of http.DefaultClient and http.DefaultTransport (#104135) 2025-05-09 13:26:39 -04:00
osutil Settings: Fix data race when dynamically overriding settings with environment variables (#81667) 2024-02-05 12:25:54 -03:00
proxyutil Plugins: Remove pkg/infra/fs, pkg/infra/tracing and pkg/infra/process dependencies from pkg/plugins (#115798) 2026-01-05 11:12:31 +00: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
scheduler feat(scheduler): add metric for time spend in queue (#109346) 2025-08-07 19:56:17 +00:00
sqlite Sqlite: Increase busy_timeout to 7.5s for non-cgo driver (#111883) 2025-10-01 18:18:44 +02:00
testutil Add non-boolean feature flags support to the StaticProvider (#115085) 2026-01-12 22:53:23 +01:00
xorm Zanzana: Refactor server provider (#116756) 2026-02-03 17:28:26 +01:00
contextutil.go Chore: Replace go-multierror with errors package (#66432) 2023-06-19 12:29:45 +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
encoding.go Crypto: Use crypto/pbkdf2 instead of x (#106474) 2025-06-10 14:48:44 +02:00
encoding_test.go Utils: Reimplement util.GetRandomString to avoid modulo bias (#64481) 2023-04-20 10:24:02 -04:00
encryption.go Crypto: Use crypto/pbkdf2 instead of x (#106474) 2025-06-10 14:48:44 +02:00
encryption_test.go Fix decrypting secrets in alerting migration (#41061) 2021-10-29 14:20:07 +03:00
interface.go Provisioning: Remove again dependency cycle between provisioning app and grafana (#110863) 2025-09-10 14:40:44 +02:00
interface_test.go Provisioning: Remove again dependency cycle between provisioning app and grafana (#110863) 2025-09-10 14:40:44 +02:00
ip_address.go Chore: Remove Wrapf (#50128) 2022-06-06 22:30:31 +02:00
ip_address_test.go Backend: fix IPv6 address parsing erroneous (#28585) 2020-11-25 07:55:22 +01:00
json.go Auth: Replace jmespath/go-jmespath with jmespath-community/go-jmespath (#94203) 2024-10-03 15:43:15 +02:00
json_test.go Auth: Replace jmespath/go-jmespath with jmespath-community/go-jmespath (#94203) 2024-10-03 15:43:15 +02:00
md5.go pkg/util/*: Add missing function comments. 2019-01-28 22:09:40 +01:00
md5_test.go Fix changed want md5 hash 2018-09-21 13:41:03 +02:00
pointer.go Chore: Remove xorcare/pointer dependency (#63900) 2023-03-06 05:23:15 -05:00
reverse.go Nested Folders: Add tests for store methods (#57662) 2022-11-03 14:21:41 +01:00
reverse_test.go Nested Folders: Add tests for store methods (#57662) 2022-11-03 14:21:41 +01:00
shortid_generator.go Repurpose wrong datasource UID feature flag (#89363) 2024-06-20 12:56:39 +02:00
shortid_generator_race_test.go Hackaton: Add more unit tests, take 4 (#101704) 2025-03-07 14:06:47 +01:00
shortid_generator_test.go ShortURL: Avoid teris-io/shortid (#110456) 2025-09-02 17:01:20 +00:00
split_email.go Emails: resurrect template notification (#18686) 2019-08-26 17:19:03 +02:00
split_email_test.go Test: Create unit test to SplitEmails (#27985) 2020-10-02 08:42:10 +02:00
strings.go CI: Bump golangci-lint to 2.0.2 (#103572) 2025-04-10 14:42:23 +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
svg.go CI: Bump golangci-lint to 2.0.2 (#103572) 2025-04-10 14:42:23 +02:00
svg_test.go CI: Bump golangci-lint to 2.0.2 (#103572) 2025-04-10 14:42:23 +02:00
tls.go chore(perf): Pre-allocate where possible (enable prealloc linter) (#88952) 2024-06-14 14:16:36 -04:00
tls_test.go HTTP: Add TLS version configurability for Grafana server (#67482) 2023-05-08 17:11:36 +02:00
uri_sanitize.go Chore: Remove sensitive information from presigned URLs prior to logging (#87035) 2024-06-24 14:53:42 +02:00
uri_sanitize_test.go Chore: Remove sensitive information from presigned URLs prior to logging (#87035) 2024-06-24 14:53:42 +02:00
url.go AzureMonitor: Alerting for Azure Application Insights (#19381) 2019-10-07 14:18:14 +02:00
url_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
validation_test.go Tests: Change util GoConvey tests to use testify (#26724) 2020-08-13 11:10:48 +02:00