grpc

package
v1.7.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2024 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Overview

Copyright (C) 2019-2024 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-2024 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

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(opts ...Option) vald.Server

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 WithErrGroup(eg errgroup.Group) Option

func WithGateway

func WithGateway(g service.Gateway) Option

func WithIP added in v1.1.1

func WithIP(ip string) Option

WithIP returns the option to set the IP for server.

func WithMultiConcurrency added in v1.7.2

func WithMultiConcurrency(c int) Option

func WithName added in v1.1.1

func WithName(name string) Option

WithName returns the option to set the name for server.

func WithReplicationCount

func WithReplicationCount(rep int) Option

func WithStreamConcurrency

func WithStreamConcurrency(c int) Option

func WithTimeout

func WithTimeout(dur string) Option

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL