MCPcopy Create free account
hub / github.com/cockroachdb/cockroachdb-parser / Decode

Method Decode

pkg/settings/version.go:39–39  ·  view source on GitHub ↗

Decode takes in an encoded cluster version and returns it as the native type (the clusterVersion proto). Except it does it through the ClusterVersionImpl to avoid circular dependencies.

(val []byte)

Source from the content-addressed store, hash-verified

37 // type (the clusterVersion proto). Except it does it through the
38 // ClusterVersionImpl to avoid circular dependencies.
39 Decode(val []byte) (ClusterVersionImpl, error)
40
41 // Validate checks whether an version update is permitted. It takes in the
42 // old and the proposed new value (both in encoded form). This is called by

Callers 9

UserMethod · 0.65
DecodeToStringMethod · 0.65
parseEWKBHexFunction · 0.65
parseGeoHashFunction · 0.65
DecodeFunction · 0.65
DecodeFunction · 0.65
decodeHashLikeMethod · 0.65
parseJSONGoStdFunction · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected