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

Method EncodedDefault

pkg/settings/duration.go:59–61  ·  view source on GitHub ↗

EncodedDefault returns the encoded value of the default value of the setting.

()

Source from the content-addressed store, hash-verified

57
58// EncodedDefault returns the encoded value of the default value of the setting.
59func (d *DurationSetting) EncodedDefault() string {
60 return EncodeDuration(d.defaultValue)
61}
62
63// DecodeToString decodes and renders an encoded value.
64func (d *DurationSetting) DecodeToString(encoded string) (string, error) {

Callers

nothing calls this directly

Calls 1

EncodeDurationFunction · 0.85

Tested by

no test coverage detected