func unmarshalDom(e *storage.Entry) *pb.Domain { dom := &pb.Domain{} err := proto.Unmarshal(e.RawMsg(), dom) utils.PanicOnError(err) return dom }
func unmarshalSketch(e *storage.Entry) *pb.Sketch { sketch := &pb.Sketch{} err := proto.Unmarshal(e.RawMsg(), sketch) utils.PanicOnError(err) return sketch }