Documentation
¶
Overview ¶
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.
Package grpc provides grpc server logic ¶
Package grpc provides grpc server logic ¶
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 New(opts ...Option) vald.Server
- type Aggregator
- type DistPayload
- type Option
- func WithErrGroup(eg errgroup.Group) Option
- func WithGateway(g service.Gateway) Option
- func WithIP(ip string) Option
- func WithMultiConcurrency(c int) Option
- func WithName(name string) Option
- func WithReplicationCount(rep int) Option
- func WithStreamConcurrency(c int) Option
- func WithTimeout(dur string) Option
- type PairingHeap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Aggregator ¶ added in v1.7.6
type Aggregator interface { Start(ctx context.Context) Send(ctx context.Context, data *payload.Search_Response) Result() *payload.Search_Response }
type DistPayload ¶ added in v1.2.4
type DistPayload struct {
// contains filtered or unexported fields
}
type Option ¶
type Option func(*server)
func WithErrGroup ¶
func WithGateway ¶
func WithMultiConcurrency ¶ added in v1.7.2
func WithReplicationCount ¶
func WithStreamConcurrency ¶
func WithTimeout ¶
type PairingHeap ¶ added in v1.7.6
type PairingHeap struct { DistPayload *DistPayload Children []*PairingHeap }
func (*PairingHeap) ExtractMin ¶ added in v1.7.6
func (ph *PairingHeap) ExtractMin() (*DistPayload, *PairingHeap)
func (*PairingHeap) Insert ¶ added in v1.7.6
func (ph *PairingHeap) Insert(dp *DistPayload) *PairingHeap
func (*PairingHeap) IsEmpty ¶ added in v1.7.6
func (ph *PairingHeap) IsEmpty() bool
func (*PairingHeap) Merge ¶ added in v1.7.6
func (ph *PairingHeap) Merge(h2 *PairingHeap) *PairingHeap