MCPcopy
hub / github.com/dgraph-io/dgraph / WithEncryption

Method WithEncryption

worker/restore_map.go:80–88  ·  view source on GitHub ↗
(encKey x.Sensitive)

Source from the content-addressed store, hash-verified

78 }
79}
80func (br *backupReader) WithEncryption(encKey x.Sensitive) *backupReader {
81 if len(encKey) == 0 {
82 return br
83 }
84 r, err := enc.GetReader(encKey, br.r)
85 br.setErr(err)
86 br.r = r
87 return br
88}
89func (br *backupReader) WithCompression(comp string) *backupReader {
90 switch comp {
91 case "snappy":

Callers 6

SetupTestMethod · 0.45
SetupTestMethod · 0.45
RunMapperFunction · 0.45
SetupTestMethod · 0.45

Calls 2

setErrMethod · 0.95
GetReaderFunction · 0.92

Tested by 5

SetupTestMethod · 0.36
SetupTestMethod · 0.36
SetupTestMethod · 0.36