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

Method DecodeValue

pkg/settings/duration.go:73–75  ·  view source on GitHub ↗

DecodeValue decodes the value into a float.

(encoded string)

Source from the content-addressed store, hash-verified

71
72// DecodeValue decodes the value into a float.
73func (d *DurationSetting) DecodeValue(encoded string) (time.Duration, error) {
74 return time.ParseDuration(encoded)
75}
76
77// Typ returns the short (1 char) string denoting the type of setting.
78func (*DurationSetting) Typ() string {

Callers 3

DecodeToStringMethod · 0.95
decodeAndSetMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected