Documentation ¶
Index ¶
- Constants
- Variables
- func NewCachingMiddleware(cachingService caching.CachingService) plugins.ClientMiddleware
- func NewCachingMiddlewareWithFeatureManager(cachingService caching.CachingService, features *featuremgmt.FeatureManager) plugins.ClientMiddleware
- func NewClearAuthHeadersMiddleware() plugins.ClientMiddleware
- func NewCookiesMiddleware(skipCookiesNames []string) plugins.ClientMiddleware
- func NewHTTPClientMiddleware() plugins.ClientMiddleware
- func NewOAuthTokenMiddleware(oAuthTokenService oauthtoken.OAuthTokenService) plugins.ClientMiddleware
- func NewResourceResponseMiddleware() plugins.ClientMiddleware
- func NewTracingHeaderMiddleware() plugins.ClientMiddleware
- func NewTracingMiddleware(tracer tracing.Tracer) plugins.ClientMiddleware
- func NewUserHeaderMiddleware() plugins.ClientMiddleware
- type CachingMiddleware
- func (m *CachingMiddleware) CallResource(ctx context.Context, req *backend.CallResourceRequest, ...) error
- func (m *CachingMiddleware) CheckHealth(ctx context.Context, req *backend.CheckHealthRequest) (*backend.CheckHealthResult, error)
- func (m *CachingMiddleware) CollectMetrics(ctx context.Context, req *backend.CollectMetricsRequest) (*backend.CollectMetricsResult, error)
- func (m *CachingMiddleware) PublishStream(ctx context.Context, req *backend.PublishStreamRequest) (*backend.PublishStreamResponse, error)
- func (m *CachingMiddleware) QueryData(ctx context.Context, req *backend.QueryDataRequest) (*backend.QueryDataResponse, error)
- func (m *CachingMiddleware) RunStream(ctx context.Context, req *backend.RunStreamRequest, ...) error
- func (m *CachingMiddleware) SubscribeStream(ctx context.Context, req *backend.SubscribeStreamRequest) (*backend.SubscribeStreamResponse, error)
- type ClearAuthHeadersMiddleware
- func (m *ClearAuthHeadersMiddleware) CallResource(ctx context.Context, req *backend.CallResourceRequest, ...) error
- func (m *ClearAuthHeadersMiddleware) CheckHealth(ctx context.Context, req *backend.CheckHealthRequest) (*backend.CheckHealthResult, error)
- func (m *ClearAuthHeadersMiddleware) CollectMetrics(ctx context.Context, req *backend.CollectMetricsRequest) (*backend.CollectMetricsResult, error)
- func (m *ClearAuthHeadersMiddleware) PublishStream(ctx context.Context, req *backend.PublishStreamRequest) (*backend.PublishStreamResponse, error)
- func (m *ClearAuthHeadersMiddleware) QueryData(ctx context.Context, req *backend.QueryDataRequest) (*backend.QueryDataResponse, error)
- func (m *ClearAuthHeadersMiddleware) RunStream(ctx context.Context, req *backend.RunStreamRequest, ...) error
- func (m *ClearAuthHeadersMiddleware) SubscribeStream(ctx context.Context, req *backend.SubscribeStreamRequest) (*backend.SubscribeStreamResponse, error)
- type CookiesMiddleware
- func (m *CookiesMiddleware) CallResource(ctx context.Context, req *backend.CallResourceRequest, ...) error
- func (m *CookiesMiddleware) CheckHealth(ctx context.Context, req *backend.CheckHealthRequest) (*backend.CheckHealthResult, error)
- func (m *CookiesMiddleware) CollectMetrics(ctx context.Context, req *backend.CollectMetricsRequest) (*backend.CollectMetricsResult, error)
- func (m *CookiesMiddleware) PublishStream(ctx context.Context, req *backend.PublishStreamRequest) (*backend.PublishStreamResponse, error)
- func (m *CookiesMiddleware) QueryData(ctx context.Context, req *backend.QueryDataRequest) (*backend.QueryDataResponse, error)
- func (m *CookiesMiddleware) RunStream(ctx context.Context, req *backend.RunStreamRequest, ...) error
- func (m *CookiesMiddleware) SubscribeStream(ctx context.Context, req *backend.SubscribeStreamRequest) (*backend.SubscribeStreamResponse, error)
- type HTTPClientMiddleware
- func (m *HTTPClientMiddleware) CallResource(ctx context.Context, req *backend.CallResourceRequest, ...) error
- func (m *HTTPClientMiddleware) CheckHealth(ctx context.Context, req *backend.CheckHealthRequest) (*backend.CheckHealthResult, error)
- func (m *HTTPClientMiddleware) CollectMetrics(ctx context.Context, req *backend.CollectMetricsRequest) (*backend.CollectMetricsResult, error)
- func (m *HTTPClientMiddleware) PublishStream(ctx context.Context, req *backend.PublishStreamRequest) (*backend.PublishStreamResponse, error)
- func (m *HTTPClientMiddleware) QueryData(ctx context.Context, req *backend.QueryDataRequest) (*backend.QueryDataResponse, error)
- func (m *HTTPClientMiddleware) RunStream(ctx context.Context, req *backend.RunStreamRequest, ...) error
- func (m *HTTPClientMiddleware) SubscribeStream(ctx context.Context, req *backend.SubscribeStreamRequest) (*backend.SubscribeStreamResponse, error)
- type OAuthTokenMiddleware
- func (m *OAuthTokenMiddleware) CallResource(ctx context.Context, req *backend.CallResourceRequest, ...) error
- func (m *OAuthTokenMiddleware) CheckHealth(ctx context.Context, req *backend.CheckHealthRequest) (*backend.CheckHealthResult, error)
- func (m *OAuthTokenMiddleware) CollectMetrics(ctx context.Context, req *backend.CollectMetricsRequest) (*backend.CollectMetricsResult, error)
- func (m *OAuthTokenMiddleware) PublishStream(ctx context.Context, req *backend.PublishStreamRequest) (*backend.PublishStreamResponse, error)
- func (m *OAuthTokenMiddleware) QueryData(ctx context.Context, req *backend.QueryDataRequest) (*backend.QueryDataResponse, error)
- func (m *OAuthTokenMiddleware) RunStream(ctx context.Context, req *backend.RunStreamRequest, ...) error
- func (m *OAuthTokenMiddleware) SubscribeStream(ctx context.Context, req *backend.SubscribeStreamRequest) (*backend.SubscribeStreamResponse, error)
- type ResourceResponseMiddleware
- func (m *ResourceResponseMiddleware) CallResource(ctx context.Context, req *backend.CallResourceRequest, ...) error
- func (m *ResourceResponseMiddleware) CheckHealth(ctx context.Context, req *backend.CheckHealthRequest) (*backend.CheckHealthResult, error)
- func (m *ResourceResponseMiddleware) CollectMetrics(ctx context.Context, req *backend.CollectMetricsRequest) (*backend.CollectMetricsResult, error)
- func (m *ResourceResponseMiddleware) PublishStream(ctx context.Context, req *backend.PublishStreamRequest) (*backend.PublishStreamResponse, error)
- func (m *ResourceResponseMiddleware) QueryData(ctx context.Context, req *backend.QueryDataRequest) (*backend.QueryDataResponse, error)
- func (m *ResourceResponseMiddleware) RunStream(ctx context.Context, req *backend.RunStreamRequest, ...) error
- func (m *ResourceResponseMiddleware) SubscribeStream(ctx context.Context, req *backend.SubscribeStreamRequest) (*backend.SubscribeStreamResponse, error)
- type TracingHeaderMiddleware
- func (m *TracingHeaderMiddleware) CallResource(ctx context.Context, req *backend.CallResourceRequest, ...) error
- func (m *TracingHeaderMiddleware) CheckHealth(ctx context.Context, req *backend.CheckHealthRequest) (*backend.CheckHealthResult, error)
- func (m *TracingHeaderMiddleware) CollectMetrics(ctx context.Context, req *backend.CollectMetricsRequest) (*backend.CollectMetricsResult, error)
- func (m *TracingHeaderMiddleware) PublishStream(ctx context.Context, req *backend.PublishStreamRequest) (*backend.PublishStreamResponse, error)
- func (m *TracingHeaderMiddleware) QueryData(ctx context.Context, req *backend.QueryDataRequest) (*backend.QueryDataResponse, error)
- func (m *TracingHeaderMiddleware) RunStream(ctx context.Context, req *backend.RunStreamRequest, ...) error
- func (m *TracingHeaderMiddleware) SubscribeStream(ctx context.Context, req *backend.SubscribeStreamRequest) (*backend.SubscribeStreamResponse, error)
- type TracingMiddleware
- func (m *TracingMiddleware) CallResource(ctx context.Context, req *backend.CallResourceRequest, ...) error
- func (m *TracingMiddleware) CheckHealth(ctx context.Context, req *backend.CheckHealthRequest) (*backend.CheckHealthResult, error)
- func (m *TracingMiddleware) CollectMetrics(ctx context.Context, req *backend.CollectMetricsRequest) (*backend.CollectMetricsResult, error)
- func (m *TracingMiddleware) PublishStream(ctx context.Context, req *backend.PublishStreamRequest) (*backend.PublishStreamResponse, error)
- func (m *TracingMiddleware) QueryData(ctx context.Context, req *backend.QueryDataRequest) (*backend.QueryDataResponse, error)
- func (m *TracingMiddleware) RunStream(ctx context.Context, req *backend.RunStreamRequest, ...) error
- func (m *TracingMiddleware) SubscribeStream(ctx context.Context, req *backend.SubscribeStreamRequest) (*backend.SubscribeStreamResponse, error)
- type UserHeaderMiddleware
- func (m *UserHeaderMiddleware) CallResource(ctx context.Context, req *backend.CallResourceRequest, ...) error
- func (m *UserHeaderMiddleware) CheckHealth(ctx context.Context, req *backend.CheckHealthRequest) (*backend.CheckHealthResult, error)
- func (m *UserHeaderMiddleware) CollectMetrics(ctx context.Context, req *backend.CollectMetricsRequest) (*backend.CollectMetricsResult, error)
- func (m *UserHeaderMiddleware) PublishStream(ctx context.Context, req *backend.PublishStreamRequest) (*backend.PublishStreamResponse, error)
- func (m *UserHeaderMiddleware) QueryData(ctx context.Context, req *backend.QueryDataRequest) (*backend.QueryDataResponse, error)
- func (m *UserHeaderMiddleware) RunStream(ctx context.Context, req *backend.RunStreamRequest, ...) error
- func (m *UserHeaderMiddleware) SubscribeStream(ctx context.Context, req *backend.SubscribeStreamRequest) (*backend.SubscribeStreamResponse, error)
Constants ¶
const ( QueryPubdash = "pubdash" QueryDashboard = "dashboard" )
Variables ¶
var QueryCachingRequestHistogram = prometheus.NewHistogramVec(prometheus.HistogramOpts{ Namespace: metrics.ExporterName, Subsystem: "caching", Name: "query_caching_request_duration_seconds", Help: "histogram of grafana query endpoint requests in seconds", Buckets: []float64{.005, .01, .025, .05, .1, .25, .5, 1, 2.5, 5, 10, 25, 50, 100}, }, []string{"datasource_type", "cache", "query_type"})
var ResourceCachingRequestHistogram = prometheus.NewHistogramVec(prometheus.HistogramOpts{ Namespace: metrics.ExporterName, Subsystem: "caching", Name: "resource_caching_request_duration_seconds", Help: "histogram of grafana resource endpoint requests in seconds", Buckets: []float64{.005, .01, .025, .05, .1, .25, .5, 1, 2.5, 5, 10, 25, 50, 100}, }, []string{"plugin_id", "cache"})
var ShouldCacheQueryHistogram = prometheus.NewHistogramVec(prometheus.HistogramOpts{ Namespace: metrics.ExporterName, Subsystem: "caching", Name: "should_cache_query_request_duration_seconds", Help: "histogram of grafana query endpoint requests in seconds", Buckets: []float64{.005, .01, .025, .05, .1, .25, .5, 1, 2.5, 5, 10, 25, 50, 100}, }, []string{"datasource_type", "cache", "shouldCache", "query_type"})
Functions ¶
func NewCachingMiddleware ¶
func NewCachingMiddleware(cachingService caching.CachingService) plugins.ClientMiddleware
NewCachingMiddleware creates a new plugins.ClientMiddleware that will attempt to read and write query results to the cache
func NewCachingMiddlewareWithFeatureManager ¶
func NewCachingMiddlewareWithFeatureManager(cachingService caching.CachingService, features *featuremgmt.FeatureManager) plugins.ClientMiddleware
NewCachingMiddlewareWithFeatureManager creates a new plugins.ClientMiddleware that will attempt to read and write query results to the cache with a feature manager
func NewClearAuthHeadersMiddleware ¶
func NewClearAuthHeadersMiddleware() plugins.ClientMiddleware
NewClearAuthHeadersMiddleware creates a new plugins.ClientMiddleware that will clear any outgoing HTTP headers that was part of the incoming HTTP request and used when authenticating to Grafana.
func NewCookiesMiddleware ¶
func NewCookiesMiddleware(skipCookiesNames []string) plugins.ClientMiddleware
NewCookiesMiddleware creates a new plugins.ClientMiddleware that will forward incoming HTTP request Cookies to outgoing plugins.Client requests if the datasource has enabled forwarding of cookies (keepCookies).
func NewHTTPClientMiddleware ¶
func NewHTTPClientMiddleware() plugins.ClientMiddleware
NewHTTPClientMiddleware creates a new plugins.ClientMiddleware that will forward plugin request headers as outgoing HTTP headers.
func NewOAuthTokenMiddleware ¶
func NewOAuthTokenMiddleware(oAuthTokenService oauthtoken.OAuthTokenService) plugins.ClientMiddleware
NewOAuthTokenMiddleware creates a new plugins.ClientMiddleware that will set OAuth token headers on outgoing plugins.Client requests if the datasource has enabled Forward OAuth Identity (oauthPassThru).
func NewResourceResponseMiddleware ¶
func NewResourceResponseMiddleware() plugins.ClientMiddleware
NewResourceResponseMiddleware creates a new plugins.ClientMiddleware that will enforce HTTP header rules for backend.CallResourceResponse's.
func NewTracingHeaderMiddleware ¶
func NewTracingHeaderMiddleware() plugins.ClientMiddleware
NewTracingHeaderMiddleware creates a new plugins.ClientMiddleware that will populate useful tracing headers on outgoing plugins.Client and HTTP requests. Tracing headers are X-Datasource-Uid, X-Dashboard-Uid, X-Panel-Id, X-Grafana-Org-Id.
func NewTracingMiddleware ¶
func NewTracingMiddleware(tracer tracing.Tracer) plugins.ClientMiddleware
NewTracingMiddleware returns a new middleware that creates a new span on every method call.
func NewUserHeaderMiddleware ¶
func NewUserHeaderMiddleware() plugins.ClientMiddleware
NewUserHeaderMiddleware creates a new plugins.ClientMiddleware that will populate the X-Grafana-User header on outgoing plugins.Client requests.
Types ¶
type CachingMiddleware ¶
type CachingMiddleware struct {
// contains filtered or unexported fields
}
func (*CachingMiddleware) CallResource ¶
func (m *CachingMiddleware) CallResource(ctx context.Context, req *backend.CallResourceRequest, sender backend.CallResourceResponseSender) error
CallResource receives a resource request and attempts to access results already stored in the cache for that request. If data is found, it will return it immediately. Otherwise, it will perform the request as usual. The caller of CallResource is expected to explicitly update the cache with any responses. If the cache service is implemented, we capture the request duration as a metric. The service is expected to write any response headers.
func (*CachingMiddleware) CheckHealth ¶
func (m *CachingMiddleware) CheckHealth(ctx context.Context, req *backend.CheckHealthRequest) (*backend.CheckHealthResult, error)
func (*CachingMiddleware) CollectMetrics ¶
func (m *CachingMiddleware) CollectMetrics(ctx context.Context, req *backend.CollectMetricsRequest) (*backend.CollectMetricsResult, error)
func (*CachingMiddleware) PublishStream ¶
func (m *CachingMiddleware) PublishStream(ctx context.Context, req *backend.PublishStreamRequest) (*backend.PublishStreamResponse, error)
func (*CachingMiddleware) QueryData ¶
func (m *CachingMiddleware) QueryData(ctx context.Context, req *backend.QueryDataRequest) (*backend.QueryDataResponse, error)
QueryData receives a data request and attempts to access results already stored in the cache for that request. If data is found, it will return it immediately. Otherwise, it will perform the queries as usual, then write the response to the cache. If the cache service is implemented, we capture the request duration as a metric. The service is expected to write any response headers.
func (*CachingMiddleware) RunStream ¶
func (m *CachingMiddleware) RunStream(ctx context.Context, req *backend.RunStreamRequest, sender *backend.StreamSender) error
func (*CachingMiddleware) SubscribeStream ¶
func (m *CachingMiddleware) SubscribeStream(ctx context.Context, req *backend.SubscribeStreamRequest) (*backend.SubscribeStreamResponse, error)
type ClearAuthHeadersMiddleware ¶
type ClearAuthHeadersMiddleware struct {
// contains filtered or unexported fields
}
func (*ClearAuthHeadersMiddleware) CallResource ¶
func (m *ClearAuthHeadersMiddleware) CallResource(ctx context.Context, req *backend.CallResourceRequest, sender backend.CallResourceResponseSender) error
func (*ClearAuthHeadersMiddleware) CheckHealth ¶
func (m *ClearAuthHeadersMiddleware) CheckHealth(ctx context.Context, req *backend.CheckHealthRequest) (*backend.CheckHealthResult, error)
func (*ClearAuthHeadersMiddleware) CollectMetrics ¶
func (m *ClearAuthHeadersMiddleware) CollectMetrics(ctx context.Context, req *backend.CollectMetricsRequest) (*backend.CollectMetricsResult, error)
func (*ClearAuthHeadersMiddleware) PublishStream ¶
func (m *ClearAuthHeadersMiddleware) PublishStream(ctx context.Context, req *backend.PublishStreamRequest) (*backend.PublishStreamResponse, error)
func (*ClearAuthHeadersMiddleware) QueryData ¶
func (m *ClearAuthHeadersMiddleware) QueryData(ctx context.Context, req *backend.QueryDataRequest) (*backend.QueryDataResponse, error)
func (*ClearAuthHeadersMiddleware) RunStream ¶
func (m *ClearAuthHeadersMiddleware) RunStream(ctx context.Context, req *backend.RunStreamRequest, sender *backend.StreamSender) error
func (*ClearAuthHeadersMiddleware) SubscribeStream ¶
func (m *ClearAuthHeadersMiddleware) SubscribeStream(ctx context.Context, req *backend.SubscribeStreamRequest) (*backend.SubscribeStreamResponse, error)
type CookiesMiddleware ¶
type CookiesMiddleware struct {
// contains filtered or unexported fields
}
func (*CookiesMiddleware) CallResource ¶
func (m *CookiesMiddleware) CallResource(ctx context.Context, req *backend.CallResourceRequest, sender backend.CallResourceResponseSender) error
func (*CookiesMiddleware) CheckHealth ¶
func (m *CookiesMiddleware) CheckHealth(ctx context.Context, req *backend.CheckHealthRequest) (*backend.CheckHealthResult, error)
func (*CookiesMiddleware) CollectMetrics ¶
func (m *CookiesMiddleware) CollectMetrics(ctx context.Context, req *backend.CollectMetricsRequest) (*backend.CollectMetricsResult, error)
func (*CookiesMiddleware) PublishStream ¶
func (m *CookiesMiddleware) PublishStream(ctx context.Context, req *backend.PublishStreamRequest) (*backend.PublishStreamResponse, error)
func (*CookiesMiddleware) QueryData ¶
func (m *CookiesMiddleware) QueryData(ctx context.Context, req *backend.QueryDataRequest) (*backend.QueryDataResponse, error)
func (*CookiesMiddleware) RunStream ¶
func (m *CookiesMiddleware) RunStream(ctx context.Context, req *backend.RunStreamRequest, sender *backend.StreamSender) error
func (*CookiesMiddleware) SubscribeStream ¶
func (m *CookiesMiddleware) SubscribeStream(ctx context.Context, req *backend.SubscribeStreamRequest) (*backend.SubscribeStreamResponse, error)
type HTTPClientMiddleware ¶
type HTTPClientMiddleware struct {
// contains filtered or unexported fields
}
func (*HTTPClientMiddleware) CallResource ¶
func (m *HTTPClientMiddleware) CallResource(ctx context.Context, req *backend.CallResourceRequest, sender backend.CallResourceResponseSender) error
func (*HTTPClientMiddleware) CheckHealth ¶
func (m *HTTPClientMiddleware) CheckHealth(ctx context.Context, req *backend.CheckHealthRequest) (*backend.CheckHealthResult, error)
func (*HTTPClientMiddleware) CollectMetrics ¶
func (m *HTTPClientMiddleware) CollectMetrics(ctx context.Context, req *backend.CollectMetricsRequest) (*backend.CollectMetricsResult, error)
func (*HTTPClientMiddleware) PublishStream ¶
func (m *HTTPClientMiddleware) PublishStream(ctx context.Context, req *backend.PublishStreamRequest) (*backend.PublishStreamResponse, error)
func (*HTTPClientMiddleware) QueryData ¶
func (m *HTTPClientMiddleware) QueryData(ctx context.Context, req *backend.QueryDataRequest) (*backend.QueryDataResponse, error)
func (*HTTPClientMiddleware) RunStream ¶
func (m *HTTPClientMiddleware) RunStream(ctx context.Context, req *backend.RunStreamRequest, sender *backend.StreamSender) error
func (*HTTPClientMiddleware) SubscribeStream ¶
func (m *HTTPClientMiddleware) SubscribeStream(ctx context.Context, req *backend.SubscribeStreamRequest) (*backend.SubscribeStreamResponse, error)
type OAuthTokenMiddleware ¶
type OAuthTokenMiddleware struct {
// contains filtered or unexported fields
}
func (*OAuthTokenMiddleware) CallResource ¶
func (m *OAuthTokenMiddleware) CallResource(ctx context.Context, req *backend.CallResourceRequest, sender backend.CallResourceResponseSender) error
func (*OAuthTokenMiddleware) CheckHealth ¶
func (m *OAuthTokenMiddleware) CheckHealth(ctx context.Context, req *backend.CheckHealthRequest) (*backend.CheckHealthResult, error)
func (*OAuthTokenMiddleware) CollectMetrics ¶
func (m *OAuthTokenMiddleware) CollectMetrics(ctx context.Context, req *backend.CollectMetricsRequest) (*backend.CollectMetricsResult, error)
func (*OAuthTokenMiddleware) PublishStream ¶
func (m *OAuthTokenMiddleware) PublishStream(ctx context.Context, req *backend.PublishStreamRequest) (*backend.PublishStreamResponse, error)
func (*OAuthTokenMiddleware) QueryData ¶
func (m *OAuthTokenMiddleware) QueryData(ctx context.Context, req *backend.QueryDataRequest) (*backend.QueryDataResponse, error)
func (*OAuthTokenMiddleware) RunStream ¶
func (m *OAuthTokenMiddleware) RunStream(ctx context.Context, req *backend.RunStreamRequest, sender *backend.StreamSender) error
func (*OAuthTokenMiddleware) SubscribeStream ¶
func (m *OAuthTokenMiddleware) SubscribeStream(ctx context.Context, req *backend.SubscribeStreamRequest) (*backend.SubscribeStreamResponse, error)
type ResourceResponseMiddleware ¶
type ResourceResponseMiddleware struct {
// contains filtered or unexported fields
}
func (*ResourceResponseMiddleware) CallResource ¶
func (m *ResourceResponseMiddleware) CallResource(ctx context.Context, req *backend.CallResourceRequest, sender backend.CallResourceResponseSender) error
func (*ResourceResponseMiddleware) CheckHealth ¶
func (m *ResourceResponseMiddleware) CheckHealth(ctx context.Context, req *backend.CheckHealthRequest) (*backend.CheckHealthResult, error)
func (*ResourceResponseMiddleware) CollectMetrics ¶
func (m *ResourceResponseMiddleware) CollectMetrics(ctx context.Context, req *backend.CollectMetricsRequest) (*backend.CollectMetricsResult, error)
func (*ResourceResponseMiddleware) PublishStream ¶
func (m *ResourceResponseMiddleware) PublishStream(ctx context.Context, req *backend.PublishStreamRequest) (*backend.PublishStreamResponse, error)
func (*ResourceResponseMiddleware) QueryData ¶
func (m *ResourceResponseMiddleware) QueryData(ctx context.Context, req *backend.QueryDataRequest) (*backend.QueryDataResponse, error)
func (*ResourceResponseMiddleware) RunStream ¶
func (m *ResourceResponseMiddleware) RunStream(ctx context.Context, req *backend.RunStreamRequest, sender *backend.StreamSender) error
func (*ResourceResponseMiddleware) SubscribeStream ¶
func (m *ResourceResponseMiddleware) SubscribeStream(ctx context.Context, req *backend.SubscribeStreamRequest) (*backend.SubscribeStreamResponse, error)
type TracingHeaderMiddleware ¶
type TracingHeaderMiddleware struct {
// contains filtered or unexported fields
}
func (*TracingHeaderMiddleware) CallResource ¶
func (m *TracingHeaderMiddleware) CallResource(ctx context.Context, req *backend.CallResourceRequest, sender backend.CallResourceResponseSender) error
func (*TracingHeaderMiddleware) CheckHealth ¶
func (m *TracingHeaderMiddleware) CheckHealth(ctx context.Context, req *backend.CheckHealthRequest) (*backend.CheckHealthResult, error)
func (*TracingHeaderMiddleware) CollectMetrics ¶
func (m *TracingHeaderMiddleware) CollectMetrics(ctx context.Context, req *backend.CollectMetricsRequest) (*backend.CollectMetricsResult, error)
func (*TracingHeaderMiddleware) PublishStream ¶
func (m *TracingHeaderMiddleware) PublishStream(ctx context.Context, req *backend.PublishStreamRequest) (*backend.PublishStreamResponse, error)
func (*TracingHeaderMiddleware) QueryData ¶
func (m *TracingHeaderMiddleware) QueryData(ctx context.Context, req *backend.QueryDataRequest) (*backend.QueryDataResponse, error)
func (*TracingHeaderMiddleware) RunStream ¶
func (m *TracingHeaderMiddleware) RunStream(ctx context.Context, req *backend.RunStreamRequest, sender *backend.StreamSender) error
func (*TracingHeaderMiddleware) SubscribeStream ¶
func (m *TracingHeaderMiddleware) SubscribeStream(ctx context.Context, req *backend.SubscribeStreamRequest) (*backend.SubscribeStreamResponse, error)
type TracingMiddleware ¶
type TracingMiddleware struct {
// contains filtered or unexported fields
}
func (*TracingMiddleware) CallResource ¶
func (m *TracingMiddleware) CallResource(ctx context.Context, req *backend.CallResourceRequest, sender backend.CallResourceResponseSender) error
func (*TracingMiddleware) CheckHealth ¶
func (m *TracingMiddleware) CheckHealth(ctx context.Context, req *backend.CheckHealthRequest) (*backend.CheckHealthResult, error)
func (*TracingMiddleware) CollectMetrics ¶
func (m *TracingMiddleware) CollectMetrics(ctx context.Context, req *backend.CollectMetricsRequest) (*backend.CollectMetricsResult, error)
func (*TracingMiddleware) PublishStream ¶
func (m *TracingMiddleware) PublishStream(ctx context.Context, req *backend.PublishStreamRequest) (*backend.PublishStreamResponse, error)
func (*TracingMiddleware) QueryData ¶
func (m *TracingMiddleware) QueryData(ctx context.Context, req *backend.QueryDataRequest) (*backend.QueryDataResponse, error)
func (*TracingMiddleware) RunStream ¶
func (m *TracingMiddleware) RunStream(ctx context.Context, req *backend.RunStreamRequest, sender *backend.StreamSender) error
func (*TracingMiddleware) SubscribeStream ¶
func (m *TracingMiddleware) SubscribeStream(ctx context.Context, req *backend.SubscribeStreamRequest) (*backend.SubscribeStreamResponse, error)
type UserHeaderMiddleware ¶
type UserHeaderMiddleware struct {
// contains filtered or unexported fields
}
func (*UserHeaderMiddleware) CallResource ¶
func (m *UserHeaderMiddleware) CallResource(ctx context.Context, req *backend.CallResourceRequest, sender backend.CallResourceResponseSender) error
func (*UserHeaderMiddleware) CheckHealth ¶
func (m *UserHeaderMiddleware) CheckHealth(ctx context.Context, req *backend.CheckHealthRequest) (*backend.CheckHealthResult, error)
func (*UserHeaderMiddleware) CollectMetrics ¶
func (m *UserHeaderMiddleware) CollectMetrics(ctx context.Context, req *backend.CollectMetricsRequest) (*backend.CollectMetricsResult, error)
func (*UserHeaderMiddleware) PublishStream ¶
func (m *UserHeaderMiddleware) PublishStream(ctx context.Context, req *backend.PublishStreamRequest) (*backend.PublishStreamResponse, error)
func (*UserHeaderMiddleware) QueryData ¶
func (m *UserHeaderMiddleware) QueryData(ctx context.Context, req *backend.QueryDataRequest) (*backend.QueryDataResponse, error)
func (*UserHeaderMiddleware) RunStream ¶
func (m *UserHeaderMiddleware) RunStream(ctx context.Context, req *backend.RunStreamRequest, sender *backend.StreamSender) error
func (*UserHeaderMiddleware) SubscribeStream ¶
func (m *UserHeaderMiddleware) SubscribeStream(ctx context.Context, req *backend.SubscribeStreamRequest) (*backend.SubscribeStreamResponse, error)