func (ts *PBTableCodec) SyncTable(rec datatype.Recorder) interface{} { data, err := rec.Serial() if err != nil { return nil } out := &s2c.CreateRecord{} out.Record = proto.String(rec.GetName()) out.Rows = proto.Int32(int32(rec.GetRows())) out.Cols = proto.Int32(int32(rec.GetCols())) out.Recinfo = data return out }