Documentation ¶
Overview ¶
Package request provides functions to generate proto request for testing
Copyright (C) 2019-2023 vdaas.org vald team <vald@vdaas.org>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright (C) 2019-2023 vdaas.org vald team <vald@vdaas.org>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright (C) 2019-2023 vdaas.org vald team <vald@vdaas.org>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- func GenMultiInsertReq(t ObjectType, dist vector.Distribution, num int, dim int, ...) (*payload.Insert_MultiRequest, error)
- func GenMultiRemoveReq(num int, cfg *payload.Remove_Config) *payload.Remove_MultiRequest
- func GenObjectLocations(num int, name string, ipAddr string) *payload.Object_Locations
- func GenObjectStreamLocation(num int, name string, ipAddr string) []*payload.Object_StreamLocation
- func GenSameVecMultiInsertReq(num int, vec []float32, cfg *payload.Insert_Config) *payload.Insert_MultiRequest
- type ObjectType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenMultiInsertReq ¶
func GenMultiInsertReq(t ObjectType, dist vector.Distribution, num int, dim int, cfg *payload.Insert_Config) (*payload.Insert_MultiRequest, error)
func GenMultiRemoveReq ¶ added in v1.6.0
func GenMultiRemoveReq(num int, cfg *payload.Remove_Config) *payload.Remove_MultiRequest
GenMultiRemoveReq generates Remove_MultiRequest request.
func GenObjectLocations ¶
func GenObjectLocations(num int, name string, ipAddr string) *payload.Object_Locations
GenObjectLocations generate ObjectLocations payload with multiple name and ip with generated uuid.
func GenObjectStreamLocation ¶ added in v1.5.5
func GenObjectStreamLocation(num int, name string, ipAddr string) []*payload.Object_StreamLocation
GenObjectStreamLocation generate ObjectStreamLocations payload with multiple name and ip with generated uuid.
func GenSameVecMultiInsertReq ¶
func GenSameVecMultiInsertReq(num int, vec []float32, cfg *payload.Insert_Config) *payload.Insert_MultiRequest
GenSameVecMultiInsertReq generates Insert_MultiRequest with the same vector.