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

FuncType ReplicaClientFactory

replica_url.go:14–14  ·  view source on GitHub ↗

ReplicaClientFactory is a function that creates a ReplicaClient from URL components. The userinfo parameter contains credentials from the URL (e.g., user:pass@host).

func(scheme, host, urlPath string, query url.Values, userinfo *url.Userinfo) (ReplicaClient, error)

Source from the content-addressed store, hash-verified

12// ReplicaClientFactory is a function that creates a ReplicaClient from URL components.
13// The userinfo parameter contains credentials from the URL (e.g., user:pass@host).
14type ReplicaClientFactory func(scheme, host, urlPath string, query url.Values, userinfo *url.Userinfo) (ReplicaClient, error)
15
16var (
17 replicaClientFactories = make(map[string]ReplicaClientFactory)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected