How to write a custom http request interceptor inside Grafana

Hello guys,

I am pretty new to Golang. There for the source code is a bit confusing to me.
I am using Grafana as a proxy server to my Backend. Could you guys direct me to how to intercept a request inside grafana to write some custom validation? If you guys can point me to the starting place I can take it from there. Thanks