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