MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / ParseClusterUUID

Function ParseClusterUUID

base/bucket.go:400–410  ·  view source on GitHub ↗
(respBytes []byte)

Source from the content-addressed store, hash-verified

398}
399
400func ParseClusterUUID(respBytes []byte) (string, error) {
401 var responseJson struct {
402 UUID string `json:"uuid"`
403 }
404
405 if err := JSONUnmarshal(respBytes, &responseJson); err != nil {
406 return "", err
407 }
408
409 return responseJson.UUID, nil
410}
411
412// Gets the metadata purge interval for the bucket. First checks for a bucket-specific value. If not
413// found, retrieves the cluster-wide value.

Callers 2

getClusterUUIDMethod · 0.92
GetServerUUIDFunction · 0.85

Calls 1

JSONUnmarshalFunction · 0.70

Tested by

no test coverage detected