github.com/aarzilli/tools@v0.0.0-20151123112009-0d27094f75e0/dsu/types.go (about) 1 package dsu 2 3 var memoryInstanceStore = make(map[string]*WrapBlob) 4 5 // WrapString for scalar values of type string 6 type WrapString struct { 7 S string 8 } 9 10 // WrapInt for scalar values of type int 11 type WrapInt struct { 12 I int 13 } 14 15 // WrapBlob - an universal struct for buffered put and get 16 // for datastore and memcache 17 type WrapBlob struct { 18 19 Name string // the key - dsu.WrapBlob__ 'some name' 20 Desc string 21 Category string 22 23 // scalars 24 S string // Also contains the mime type 25 I int 26 F float64 27 28 // for storage >> 500 byte 29 VByte []byte // simple vector, for images + globbed structs 30 VVByte [][]byte // vector of vector, i.e. for table data 31 32 }