// ===========================================================================================
// addPaginationMetadataToQueryResults adds QueryResponseMetadata, which contains pagination
// info, to the constructed query results
// ===========================================================================================
addPaginationMetadataToQueryResults adds QueryResponseMetadata, which contains pagination
info, to the constructed query results
// =========================================================================================== // addPaginationMetadataToQueryResults adds QueryResponseMetadata which contains pagination // info to the constructed query results // ===========================================================================================
func addPaginationMetadataToQueryResults(buffer *bytes.Buffer, responseMetadata *pb.QueryResponseMetadata) *bytes.Buffer {
        buffer.WriteString("[{\"ResponseMetadata\":{\"RecordsCount\":")
        buffer.WriteString("\"")
        buffer.WriteString(fmt.Sprintf("%v", responseMetadata.FetchedRecordsCount))
        buffer.WriteString("\"")
        buffer.WriteString(", \"Bookmark\":")
        buffer.WriteString("\"")
        buffer.WriteString(responseMetadata.Bookmark)
        buffer.WriteString("\"}}]")
        return buffer
}
func addPaginationMetadataToQueryResults ( buffer * bytes . Buffer , responseMetadata * pb . QueryResponseMetadata ) * bytes . Buffer { buffer . WriteString ( " \" \" \" \" " ) buffer . WriteString ( " \" " ) buffer . WriteString ( fmt . Sprintf ( " " , responseMetadata . FetchedRecordsCount ) ) buffer . WriteString ( " \" " ) buffer . WriteString ( " \" \" " ) buffer . WriteString ( " \" " ) buffer . WriteString ( responseMetadata . Bookmark ) buffer . WriteString ( " \" " ) return buffer }
addPaginationMetadataToQueryResults adds QueryResponseMetadata, which contains pagination
info, to the constructed query results
addPaginationMetadataToQueryResults adds QueryResponseMetadata which contains pagination info to the constructed query results