MCPcopy
hub / github.com/benbjohnson/litestream / ReplicaClient

Struct ReplicaClient

gs/replica_client.go:37–46  ·  view source on GitHub ↗

ReplicaClient is a client for writing LTX files to Google Cloud Storage.

Source from the content-addressed store, hash-verified

35
36// ReplicaClient is a client for writing LTX files to Google Cloud Storage.
37type ReplicaClient struct {
38 mu sync.Mutex
39 client *storage.Client // gs client
40 bkt *storage.BucketHandle // gs bucket handle
41 logger *slog.Logger
42
43 // GS bucket information
44 Bucket string
45 Path string
46}
47
48// NewReplicaClient returns a new instance of ReplicaClient.
49func NewReplicaClient() *ReplicaClient {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected