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