MCPcopy Create free account
hub / github.com/weaveworks/scope / CodecEncodeSelf

Method CodecEncodeSelf

report/sets.go:138–142  ·  view source on GitHub ↗

CodecEncodeSelf implements codec.Selfer

(encoder *codec.Encoder)

Source from the content-addressed store, hash-verified

136
137// CodecEncodeSelf implements codec.Selfer
138func (s *Sets) CodecEncodeSelf(encoder *codec.Encoder) {
139 mapWrite(s.psMap, encoder, func(encoder *codec.Encoder, val interface{}) {
140 encoder.Encode(val.(StringSet))
141 })
142}
143
144// CodecDecodeSelf implements codec.Selfer
145func (s *Sets) CodecDecodeSelf(decoder *codec.Decoder) {

Callers 2

TestLatestMapEncodingFunction · 0.45
TestLatestMapEncodingNilFunction · 0.45

Calls 1

mapWriteFunction · 0.85

Tested by 2

TestLatestMapEncodingFunction · 0.36
TestLatestMapEncodingNilFunction · 0.36