MCPcopy
hub / github.com/grafana/dskit / HTTPConnectionTTLMiddleware

Interface HTTPConnectionTTLMiddleware

middleware/http_connection_ttl_middleware.go:44–50  ·  middleware/http_connection_ttl_middleware.go::HTTPConnectionTTLMiddleware

HTTPConnectionTTLMiddleware is an HTTP middleware that limits the maximum lifetime of TCP connections.

Source from the content-addressed store, hash-verified

42// HTTPConnectionTTLMiddleware is an HTTP middleware that limits the maximum lifetime
43// of TCP connections.
44type HTTPConnectionTTLMiddleware interface {
45 Interface
46
47 // Stop stops the middleware and releases associated resources.
48 // It is safe to call Stop even if the middleware was created with TTL disabled.
49 Stop()
50}
51
52type httpConnectionTTLMiddleware struct {
53 minTTL time.Duration

Implementers 13

Versionedcache/versioned.go
MemcachedClientcache/memcached_client.go
LRUCachecache/lru.go
MockCachecache/mock.go
SpanlessTracingCachecache/tracing.go
SnappyCachecache/compression.go
httpConnectionTTLMiddlewaremiddleware/http_connection_ttl_middlew
Resolverdns/miekgdns/resolver.go
Handlersignals/signals.go
Serverserver/server.go
dummyHandlerserver/server_test.go

Calls

no outgoing calls

Tested by

no test coverage detected