MCPcopy
hub / github.com/unkeyed/unkey / Client

Struct Client

pkg/clickhouse/client.go:21–25  ·  view source on GitHub ↗

Client represents a client for interacting with a ClickHouse database. Batch processing for different event types is handled externally via NewBuffer[T], which wires a *batch.BatchProcessor to this client's connection, retry policy, and circuit breaker.

Source from the content-addressed store, hash-verified

19// NewBuffer[T], which wires a *batch.BatchProcessor to this client's
20// connection, retry policy, and circuit breaker.
21type Client struct {
22 conn ch.Conn
23 circuitBreaker *circuitbreaker.CB[struct{}]
24 retry *retry.Retry
25}
26
27var (
28 _ Querier = (*Client)(nil)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected