core

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package core provides agent ngt gRPC client functions

Package core provides agent ngt gRPC client functions

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAgentClient added in v1.1.1

func NewAgentClient(cc *grpc.ClientConn) interface {
	vald.Client
	client.ObjectReader
	client.Indexer
}

Types

type Client

type Client interface {
	vald.Client
	client.ObjectReader
	client.Indexer
}

Client represents agent NGT client interface.

func New

func New(opts ...Option) (Client, error)

New returns Client implementation if no error occurs.

type Option

type Option func(*agentClient) error

Option is agentClient configure.

func WithAddrs

func WithAddrs(addrs ...string) Option

WithAddr returns Option that sets addr.

func WithGRPCClient

func WithGRPCClient(g grpc.Client) Option

func WithValdClient

func WithValdClient(vc vald.Client) Option

Jump to

Keyboard shortcuts

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