vald

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2021 License: Apache-2.0 Imports: 11 Imported by: 6

Documentation

Overview

Package vald provides vald server interface

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterFilterServer

func RegisterFilterServer(s *grpc.Server, srv FilterServer)

func RegisterInsertServer

func RegisterInsertServer(s *grpc.Server, srv InsertServer)

func RegisterObjectServer

func RegisterObjectServer(s *grpc.Server, srv ObjectServer)

func RegisterRemoveServer

func RegisterRemoveServer(s *grpc.Server, srv RemoveServer)

func RegisterSearchServer

func RegisterSearchServer(s *grpc.Server, srv SearchServer)

func RegisterUpdateServer

func RegisterUpdateServer(s *grpc.Server, srv UpdateServer)

func RegisterUpsertServer

func RegisterUpsertServer(s *grpc.Server, srv UpsertServer)

func RegisterValdServer

func RegisterValdServer(s *grpc.Server, srv Server)

func RegisterValdServerWithFilter

func RegisterValdServerWithFilter(s *grpc.Server, srv ServerWithFilter)

Types

type ClientWithFilter

type ClientWithFilter interface {
	Client
	FilterClient
}

type FilterClient

type FilterClient interface {
	SearchObject(ctx context.Context, in *payload.Search_ObjectRequest, opts ...grpc.CallOption) (*payload.Search_Response, error)
	MultiSearchObject(ctx context.Context, in *payload.Search_MultiObjectRequest, opts ...grpc.CallOption) (*payload.Search_Responses, error)
	StreamSearchObject(ctx context.Context, opts ...grpc.CallOption) (Filter_StreamSearchObjectClient, error)
	InsertObject(ctx context.Context, in *payload.Insert_ObjectRequest, opts ...grpc.CallOption) (*payload.Object_Location, error)
	StreamInsertObject(ctx context.Context, opts ...grpc.CallOption) (Filter_StreamInsertObjectClient, error)
	MultiInsertObject(ctx context.Context, in *payload.Insert_MultiObjectRequest, opts ...grpc.CallOption) (*payload.Object_Locations, error)
	UpdateObject(ctx context.Context, in *payload.Update_ObjectRequest, opts ...grpc.CallOption) (*payload.Object_Location, error)
	StreamUpdateObject(ctx context.Context, opts ...grpc.CallOption) (Filter_StreamUpdateObjectClient, error)
	MultiUpdateObject(ctx context.Context, in *payload.Update_MultiObjectRequest, opts ...grpc.CallOption) (*payload.Object_Locations, error)
	UpsertObject(ctx context.Context, in *payload.Upsert_ObjectRequest, opts ...grpc.CallOption) (*payload.Object_Location, error)
	StreamUpsertObject(ctx context.Context, opts ...grpc.CallOption) (Filter_StreamUpsertObjectClient, error)
	MultiUpsertObject(ctx context.Context, in *payload.Upsert_MultiObjectRequest, opts ...grpc.CallOption) (*payload.Object_Locations, error)
}

FilterClient is the client API for Filter service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewFilterClient

func NewFilterClient(cc *grpc.ClientConn) FilterClient

type Filter_StreamInsertObjectClient

type Filter_StreamInsertObjectClient interface {
	Send(*payload.Insert_ObjectRequest) error
	Recv() (*payload.Object_StreamLocation, error)
	grpc.ClientStream
}

type Filter_StreamInsertObjectServer

type Filter_StreamInsertObjectServer interface {
	Send(*payload.Object_StreamLocation) error
	Recv() (*payload.Insert_ObjectRequest, error)
	grpc.ServerStream
}

type Filter_StreamSearchObjectClient

type Filter_StreamSearchObjectClient interface {
	Send(*payload.Search_ObjectRequest) error
	Recv() (*payload.Search_StreamResponse, error)
	grpc.ClientStream
}

type Filter_StreamSearchObjectServer

type Filter_StreamSearchObjectServer interface {
	Send(*payload.Search_StreamResponse) error
	Recv() (*payload.Search_ObjectRequest, error)
	grpc.ServerStream
}

type Filter_StreamUpdateObjectClient

type Filter_StreamUpdateObjectClient interface {
	Send(*payload.Update_ObjectRequest) error
	Recv() (*payload.Object_StreamLocation, error)
	grpc.ClientStream
}

type Filter_StreamUpdateObjectServer

type Filter_StreamUpdateObjectServer interface {
	Send(*payload.Object_StreamLocation) error
	Recv() (*payload.Update_ObjectRequest, error)
	grpc.ServerStream
}

type Filter_StreamUpsertObjectClient

type Filter_StreamUpsertObjectClient interface {
	Send(*payload.Upsert_ObjectRequest) error
	Recv() (*payload.Object_StreamLocation, error)
	grpc.ClientStream
}

type Filter_StreamUpsertObjectServer

type Filter_StreamUpsertObjectServer interface {
	Send(*payload.Object_StreamLocation) error
	Recv() (*payload.Upsert_ObjectRequest, error)
	grpc.ServerStream
}

type InsertClient

type InsertClient interface {
	Insert(ctx context.Context, in *payload.Insert_Request, opts ...grpc.CallOption) (*payload.Object_Location, error)
	StreamInsert(ctx context.Context, opts ...grpc.CallOption) (Insert_StreamInsertClient, error)
	MultiInsert(ctx context.Context, in *payload.Insert_MultiRequest, opts ...grpc.CallOption) (*payload.Object_Locations, error)
}

InsertClient is the client API for Insert service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewInsertClient

func NewInsertClient(cc *grpc.ClientConn) InsertClient

type InsertServer

InsertServer is the server API for Insert service.

type Insert_StreamInsertClient

type Insert_StreamInsertClient interface {
	Send(*payload.Insert_Request) error
	Recv() (*payload.Object_StreamLocation, error)
	grpc.ClientStream
}

type Insert_StreamInsertServer

type Insert_StreamInsertServer interface {
	Send(*payload.Object_StreamLocation) error
	Recv() (*payload.Insert_Request, error)
	grpc.ServerStream
}

type ObjectClient

type ObjectClient interface {
	Exists(ctx context.Context, in *payload.Object_ID, opts ...grpc.CallOption) (*payload.Object_ID, error)
	GetObject(ctx context.Context, in *payload.Object_VectorRequest, opts ...grpc.CallOption) (*payload.Object_Vector, error)
	StreamGetObject(ctx context.Context, opts ...grpc.CallOption) (Object_StreamGetObjectClient, error)
}

ObjectClient is the client API for Object service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewObjectClient

func NewObjectClient(cc *grpc.ClientConn) ObjectClient

type ObjectServer

ObjectServer is the server API for Object service.

type Object_StreamGetObjectClient

type Object_StreamGetObjectClient interface {
	Send(*payload.Object_VectorRequest) error
	Recv() (*payload.Object_StreamVector, error)
	grpc.ClientStream
}

type Object_StreamGetObjectServer

type Object_StreamGetObjectServer interface {
	Send(*payload.Object_StreamVector) error
	Recv() (*payload.Object_VectorRequest, error)
	grpc.ServerStream
}

type RemoveClient

type RemoveClient interface {
	Remove(ctx context.Context, in *payload.Remove_Request, opts ...grpc.CallOption) (*payload.Object_Location, error)
	StreamRemove(ctx context.Context, opts ...grpc.CallOption) (Remove_StreamRemoveClient, error)
	MultiRemove(ctx context.Context, in *payload.Remove_MultiRequest, opts ...grpc.CallOption) (*payload.Object_Locations, error)
}

RemoveClient is the client API for Remove service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewRemoveClient

func NewRemoveClient(cc *grpc.ClientConn) RemoveClient

type RemoveServer

RemoveServer is the server API for Remove service.

type Remove_StreamRemoveClient

type Remove_StreamRemoveClient interface {
	Send(*payload.Remove_Request) error
	Recv() (*payload.Object_StreamLocation, error)
	grpc.ClientStream
}

type Remove_StreamRemoveServer

type Remove_StreamRemoveServer interface {
	Send(*payload.Object_StreamLocation) error
	Recv() (*payload.Remove_Request, error)
	grpc.ServerStream
}

type SearchClient

SearchClient is the client API for Search service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewSearchClient

func NewSearchClient(cc *grpc.ClientConn) SearchClient

type SearchServer

SearchServer is the server API for Search service.

type Search_StreamSearchByIDClient

type Search_StreamSearchByIDClient interface {
	Send(*payload.Search_IDRequest) error
	Recv() (*payload.Search_StreamResponse, error)
	grpc.ClientStream
}

type Search_StreamSearchByIDServer

type Search_StreamSearchByIDServer interface {
	Send(*payload.Search_StreamResponse) error
	Recv() (*payload.Search_IDRequest, error)
	grpc.ServerStream
}

type Search_StreamSearchClient

type Search_StreamSearchClient interface {
	Send(*payload.Search_Request) error
	Recv() (*payload.Search_StreamResponse, error)
	grpc.ClientStream
}

type Search_StreamSearchServer

type Search_StreamSearchServer interface {
	Send(*payload.Search_StreamResponse) error
	Recv() (*payload.Search_Request, error)
	grpc.ServerStream
}

type ServerWithFilter

type ServerWithFilter interface {
	Server
	FilterServer
}

type UnimplementedFilterServer

type UnimplementedFilterServer struct {
}

UnimplementedFilterServer can be embedded to have forward compatible implementations.

func (*UnimplementedFilterServer) InsertObject

func (*UnimplementedFilterServer) MultiInsertObject

func (*UnimplementedFilterServer) MultiSearchObject

func (*UnimplementedFilterServer) MultiUpdateObject

func (*UnimplementedFilterServer) MultiUpsertObject

func (*UnimplementedFilterServer) SearchObject

func (*UnimplementedFilterServer) StreamInsertObject

func (*UnimplementedFilterServer) StreamSearchObject

func (*UnimplementedFilterServer) StreamUpdateObject

func (*UnimplementedFilterServer) StreamUpsertObject

func (*UnimplementedFilterServer) UpdateObject

func (*UnimplementedFilterServer) UpsertObject

type UnimplementedInsertServer

type UnimplementedInsertServer struct {
}

UnimplementedInsertServer can be embedded to have forward compatible implementations.

func (*UnimplementedInsertServer) Insert

func (*UnimplementedInsertServer) MultiInsert

func (*UnimplementedInsertServer) StreamInsert

type UnimplementedObjectServer

type UnimplementedObjectServer struct {
}

UnimplementedObjectServer can be embedded to have forward compatible implementations.

func (*UnimplementedObjectServer) Exists

func (*UnimplementedObjectServer) GetObject

func (*UnimplementedObjectServer) StreamGetObject

type UnimplementedRemoveServer

type UnimplementedRemoveServer struct {
}

UnimplementedRemoveServer can be embedded to have forward compatible implementations.

func (*UnimplementedRemoveServer) MultiRemove

func (*UnimplementedRemoveServer) Remove

func (*UnimplementedRemoveServer) StreamRemove

type UnimplementedSearchServer

type UnimplementedSearchServer struct {
}

UnimplementedSearchServer can be embedded to have forward compatible implementations.

func (*UnimplementedSearchServer) MultiSearch

func (*UnimplementedSearchServer) MultiSearchByID

func (*UnimplementedSearchServer) Search

func (*UnimplementedSearchServer) SearchByID

func (*UnimplementedSearchServer) StreamSearch

func (*UnimplementedSearchServer) StreamSearchByID

type UnimplementedUpdateServer

type UnimplementedUpdateServer struct {
}

UnimplementedUpdateServer can be embedded to have forward compatible implementations.

func (*UnimplementedUpdateServer) MultiUpdate

func (*UnimplementedUpdateServer) StreamUpdate

func (*UnimplementedUpdateServer) Update

type UnimplementedUpsertServer

type UnimplementedUpsertServer struct {
}

UnimplementedUpsertServer can be embedded to have forward compatible implementations.

func (*UnimplementedUpsertServer) MultiUpsert

func (*UnimplementedUpsertServer) StreamUpsert

func (*UnimplementedUpsertServer) Upsert

type UpdateClient

type UpdateClient interface {
	Update(ctx context.Context, in *payload.Update_Request, opts ...grpc.CallOption) (*payload.Object_Location, error)
	StreamUpdate(ctx context.Context, opts ...grpc.CallOption) (Update_StreamUpdateClient, error)
	MultiUpdate(ctx context.Context, in *payload.Update_MultiRequest, opts ...grpc.CallOption) (*payload.Object_Locations, error)
}

UpdateClient is the client API for Update service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewUpdateClient

func NewUpdateClient(cc *grpc.ClientConn) UpdateClient

type UpdateServer

UpdateServer is the server API for Update service.

type Update_StreamUpdateClient

type Update_StreamUpdateClient interface {
	Send(*payload.Update_Request) error
	Recv() (*payload.Object_StreamLocation, error)
	grpc.ClientStream
}

type Update_StreamUpdateServer

type Update_StreamUpdateServer interface {
	Send(*payload.Object_StreamLocation) error
	Recv() (*payload.Update_Request, error)
	grpc.ServerStream
}

type UpsertClient

type UpsertClient interface {
	Upsert(ctx context.Context, in *payload.Upsert_Request, opts ...grpc.CallOption) (*payload.Object_Location, error)
	StreamUpsert(ctx context.Context, opts ...grpc.CallOption) (Upsert_StreamUpsertClient, error)
	MultiUpsert(ctx context.Context, in *payload.Upsert_MultiRequest, opts ...grpc.CallOption) (*payload.Object_Locations, error)
}

UpsertClient is the client API for Upsert service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewUpsertClient

func NewUpsertClient(cc *grpc.ClientConn) UpsertClient

type UpsertServer

UpsertServer is the server API for Upsert service.

type Upsert_StreamUpsertClient

type Upsert_StreamUpsertClient interface {
	Send(*payload.Upsert_Request) error
	Recv() (*payload.Object_StreamLocation, error)
	grpc.ClientStream
}

type Upsert_StreamUpsertServer

type Upsert_StreamUpsertServer interface {
	Send(*payload.Object_StreamLocation) error
	Recv() (*payload.Upsert_Request, error)
	grpc.ServerStream
}

Jump to

Keyboard shortcuts

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