17 lines
387 B
Go
17 lines
387 B
Go
|
package types
|
||
|
|
||
|
import (
|
||
|
protoio "github.com/gogo/protobuf/io"
|
||
|
)
|
||
|
|
||
|
// WriteExtensionItem writes an item payload for current extention snapshotter.
|
||
|
func WriteExtensionItem(protoWriter protoio.Writer, item []byte) error {
|
||
|
return protoWriter.WriteMsg(&SnapshotItem{
|
||
|
Item: &SnapshotItem_ExtensionPayload{
|
||
|
ExtensionPayload: &SnapshotExtensionPayload{
|
||
|
Payload: item,
|
||
|
},
|
||
|
},
|
||
|
})
|
||
|
}
|