Documentation ¶
Index ¶
- func RegisterAgentServer(s *grpc.Server, srv AgentServer)
- type AgentClient
- type AgentServer
- type Agent_StreamGetObjectClient
- type Agent_StreamGetObjectServer
- type Agent_StreamInsertClient
- type Agent_StreamInsertServer
- type Agent_StreamRemoveClient
- type Agent_StreamRemoveServer
- type Agent_StreamSearchByIDClient
- type Agent_StreamSearchByIDServer
- type Agent_StreamSearchClient
- type Agent_StreamSearchServer
- type Agent_StreamUpdateClient
- type Agent_StreamUpdateServer
- type UnimplementedAgentServer
- func (*UnimplementedAgentServer) CreateAndSaveIndex(ctx context.Context, req *payload.Control_CreateIndexRequest) (*payload.Empty, error)
- func (*UnimplementedAgentServer) CreateIndex(ctx context.Context, req *payload.Control_CreateIndexRequest) (*payload.Empty, error)
- func (*UnimplementedAgentServer) Exists(ctx context.Context, req *payload.Object_ID) (*payload.Object_ID, error)
- func (*UnimplementedAgentServer) GetObject(ctx context.Context, req *payload.Object_ID) (*payload.Object_Vector, error)
- func (*UnimplementedAgentServer) IndexInfo(ctx context.Context, req *payload.Empty) (*payload.Info_Index_Count, error)
- func (*UnimplementedAgentServer) Insert(ctx context.Context, req *payload.Object_Vector) (*payload.Empty, error)
- func (*UnimplementedAgentServer) MultiInsert(ctx context.Context, req *payload.Object_Vectors) (*payload.Empty, error)
- func (*UnimplementedAgentServer) MultiRemove(ctx context.Context, req *payload.Object_IDs) (*payload.Empty, error)
- func (*UnimplementedAgentServer) MultiUpdate(ctx context.Context, req *payload.Object_Vectors) (*payload.Empty, error)
- func (*UnimplementedAgentServer) Remove(ctx context.Context, req *payload.Object_ID) (*payload.Empty, error)
- func (*UnimplementedAgentServer) SaveIndex(ctx context.Context, req *payload.Empty) (*payload.Empty, error)
- func (*UnimplementedAgentServer) Search(ctx context.Context, req *payload.Search_Request) (*payload.Search_Response, error)
- func (*UnimplementedAgentServer) SearchByID(ctx context.Context, req *payload.Search_IDRequest) (*payload.Search_Response, error)
- func (*UnimplementedAgentServer) StreamGetObject(srv Agent_StreamGetObjectServer) error
- func (*UnimplementedAgentServer) StreamInsert(srv Agent_StreamInsertServer) error
- func (*UnimplementedAgentServer) StreamRemove(srv Agent_StreamRemoveServer) error
- func (*UnimplementedAgentServer) StreamSearch(srv Agent_StreamSearchServer) error
- func (*UnimplementedAgentServer) StreamSearchByID(srv Agent_StreamSearchByIDServer) error
- func (*UnimplementedAgentServer) StreamUpdate(srv Agent_StreamUpdateServer) error
- func (*UnimplementedAgentServer) Update(ctx context.Context, req *payload.Object_Vector) (*payload.Empty, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterAgentServer ¶
func RegisterAgentServer(s *grpc.Server, srv AgentServer)
Types ¶
type AgentClient ¶
type AgentClient interface { Exists(ctx context.Context, in *payload.Object_ID, opts ...grpc.CallOption) (*payload.Object_ID, error) Search(ctx context.Context, in *payload.Search_Request, opts ...grpc.CallOption) (*payload.Search_Response, error) SearchByID(ctx context.Context, in *payload.Search_IDRequest, opts ...grpc.CallOption) (*payload.Search_Response, error) StreamSearch(ctx context.Context, opts ...grpc.CallOption) (Agent_StreamSearchClient, error) StreamSearchByID(ctx context.Context, opts ...grpc.CallOption) (Agent_StreamSearchByIDClient, error) Insert(ctx context.Context, in *payload.Object_Vector, opts ...grpc.CallOption) (*payload.Empty, error) StreamInsert(ctx context.Context, opts ...grpc.CallOption) (Agent_StreamInsertClient, error) MultiInsert(ctx context.Context, in *payload.Object_Vectors, opts ...grpc.CallOption) (*payload.Empty, error) Update(ctx context.Context, in *payload.Object_Vector, opts ...grpc.CallOption) (*payload.Empty, error) StreamUpdate(ctx context.Context, opts ...grpc.CallOption) (Agent_StreamUpdateClient, error) MultiUpdate(ctx context.Context, in *payload.Object_Vectors, opts ...grpc.CallOption) (*payload.Empty, error) Remove(ctx context.Context, in *payload.Object_ID, opts ...grpc.CallOption) (*payload.Empty, error) StreamRemove(ctx context.Context, opts ...grpc.CallOption) (Agent_StreamRemoveClient, error) MultiRemove(ctx context.Context, in *payload.Object_IDs, opts ...grpc.CallOption) (*payload.Empty, error) GetObject(ctx context.Context, in *payload.Object_ID, opts ...grpc.CallOption) (*payload.Object_Vector, error) StreamGetObject(ctx context.Context, opts ...grpc.CallOption) (Agent_StreamGetObjectClient, error) CreateIndex(ctx context.Context, in *payload.Control_CreateIndexRequest, opts ...grpc.CallOption) (*payload.Empty, error) SaveIndex(ctx context.Context, in *payload.Empty, opts ...grpc.CallOption) (*payload.Empty, error) CreateAndSaveIndex(ctx context.Context, in *payload.Control_CreateIndexRequest, opts ...grpc.CallOption) (*payload.Empty, error) IndexInfo(ctx context.Context, in *payload.Empty, opts ...grpc.CallOption) (*payload.Info_Index_Count, error) }
AgentClient is the client API for Agent service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAgentClient ¶
func NewAgentClient(cc *grpc.ClientConn) AgentClient
type AgentServer ¶
type AgentServer interface { Exists(context.Context, *payload.Object_ID) (*payload.Object_ID, error) Search(context.Context, *payload.Search_Request) (*payload.Search_Response, error) SearchByID(context.Context, *payload.Search_IDRequest) (*payload.Search_Response, error) StreamSearch(Agent_StreamSearchServer) error StreamSearchByID(Agent_StreamSearchByIDServer) error Insert(context.Context, *payload.Object_Vector) (*payload.Empty, error) StreamInsert(Agent_StreamInsertServer) error MultiInsert(context.Context, *payload.Object_Vectors) (*payload.Empty, error) Update(context.Context, *payload.Object_Vector) (*payload.Empty, error) StreamUpdate(Agent_StreamUpdateServer) error MultiUpdate(context.Context, *payload.Object_Vectors) (*payload.Empty, error) Remove(context.Context, *payload.Object_ID) (*payload.Empty, error) StreamRemove(Agent_StreamRemoveServer) error MultiRemove(context.Context, *payload.Object_IDs) (*payload.Empty, error) GetObject(context.Context, *payload.Object_ID) (*payload.Object_Vector, error) StreamGetObject(Agent_StreamGetObjectServer) error CreateIndex(context.Context, *payload.Control_CreateIndexRequest) (*payload.Empty, error) SaveIndex(context.Context, *payload.Empty) (*payload.Empty, error) CreateAndSaveIndex(context.Context, *payload.Control_CreateIndexRequest) (*payload.Empty, error) IndexInfo(context.Context, *payload.Empty) (*payload.Info_Index_Count, error) }
AgentServer is the server API for Agent service.
type Agent_StreamGetObjectClient ¶
type Agent_StreamGetObjectClient interface { Send(*payload.Object_ID) error Recv() (*payload.Object_Vector, error) grpc.ClientStream }
type Agent_StreamGetObjectServer ¶
type Agent_StreamGetObjectServer interface { Send(*payload.Object_Vector) error Recv() (*payload.Object_ID, error) grpc.ServerStream }
type Agent_StreamInsertClient ¶
type Agent_StreamInsertClient interface { Send(*payload.Object_Vector) error Recv() (*payload.Empty, error) grpc.ClientStream }
type Agent_StreamInsertServer ¶
type Agent_StreamInsertServer interface { Send(*payload.Empty) error Recv() (*payload.Object_Vector, error) grpc.ServerStream }
type Agent_StreamSearchByIDClient ¶
type Agent_StreamSearchByIDClient interface { Send(*payload.Search_IDRequest) error Recv() (*payload.Search_Response, error) grpc.ClientStream }
type Agent_StreamSearchByIDServer ¶
type Agent_StreamSearchByIDServer interface { Send(*payload.Search_Response) error Recv() (*payload.Search_IDRequest, error) grpc.ServerStream }
type Agent_StreamSearchClient ¶
type Agent_StreamSearchClient interface { Send(*payload.Search_Request) error Recv() (*payload.Search_Response, error) grpc.ClientStream }
type Agent_StreamSearchServer ¶
type Agent_StreamSearchServer interface { Send(*payload.Search_Response) error Recv() (*payload.Search_Request, error) grpc.ServerStream }
type Agent_StreamUpdateClient ¶
type Agent_StreamUpdateClient interface { Send(*payload.Object_Vector) error Recv() (*payload.Empty, error) grpc.ClientStream }
type Agent_StreamUpdateServer ¶
type Agent_StreamUpdateServer interface { Send(*payload.Empty) error Recv() (*payload.Object_Vector, error) grpc.ServerStream }
type UnimplementedAgentServer ¶
type UnimplementedAgentServer struct { }
UnimplementedAgentServer can be embedded to have forward compatible implementations.
func (*UnimplementedAgentServer) CreateAndSaveIndex ¶
func (*UnimplementedAgentServer) CreateAndSaveIndex(ctx context.Context, req *payload.Control_CreateIndexRequest) (*payload.Empty, error)
func (*UnimplementedAgentServer) CreateIndex ¶
func (*UnimplementedAgentServer) CreateIndex(ctx context.Context, req *payload.Control_CreateIndexRequest) (*payload.Empty, error)
func (*UnimplementedAgentServer) GetObject ¶
func (*UnimplementedAgentServer) GetObject(ctx context.Context, req *payload.Object_ID) (*payload.Object_Vector, error)
func (*UnimplementedAgentServer) IndexInfo ¶
func (*UnimplementedAgentServer) IndexInfo(ctx context.Context, req *payload.Empty) (*payload.Info_Index_Count, error)
func (*UnimplementedAgentServer) Insert ¶
func (*UnimplementedAgentServer) Insert(ctx context.Context, req *payload.Object_Vector) (*payload.Empty, error)
func (*UnimplementedAgentServer) MultiInsert ¶
func (*UnimplementedAgentServer) MultiInsert(ctx context.Context, req *payload.Object_Vectors) (*payload.Empty, error)
func (*UnimplementedAgentServer) MultiRemove ¶
func (*UnimplementedAgentServer) MultiRemove(ctx context.Context, req *payload.Object_IDs) (*payload.Empty, error)
func (*UnimplementedAgentServer) MultiUpdate ¶
func (*UnimplementedAgentServer) MultiUpdate(ctx context.Context, req *payload.Object_Vectors) (*payload.Empty, error)
func (*UnimplementedAgentServer) Search ¶
func (*UnimplementedAgentServer) Search(ctx context.Context, req *payload.Search_Request) (*payload.Search_Response, error)
func (*UnimplementedAgentServer) SearchByID ¶
func (*UnimplementedAgentServer) SearchByID(ctx context.Context, req *payload.Search_IDRequest) (*payload.Search_Response, error)
func (*UnimplementedAgentServer) StreamGetObject ¶
func (*UnimplementedAgentServer) StreamGetObject(srv Agent_StreamGetObjectServer) error
func (*UnimplementedAgentServer) StreamInsert ¶
func (*UnimplementedAgentServer) StreamInsert(srv Agent_StreamInsertServer) error
func (*UnimplementedAgentServer) StreamRemove ¶
func (*UnimplementedAgentServer) StreamRemove(srv Agent_StreamRemoveServer) error
func (*UnimplementedAgentServer) StreamSearch ¶
func (*UnimplementedAgentServer) StreamSearch(srv Agent_StreamSearchServer) error
func (*UnimplementedAgentServer) StreamSearchByID ¶
func (*UnimplementedAgentServer) StreamSearchByID(srv Agent_StreamSearchByIDServer) error
func (*UnimplementedAgentServer) StreamUpdate ¶
func (*UnimplementedAgentServer) StreamUpdate(srv Agent_StreamUpdateServer) error
func (*UnimplementedAgentServer) Update ¶
func (*UnimplementedAgentServer) Update(ctx context.Context, req *payload.Object_Vector) (*payload.Empty, error)
Click to show internal directories.
Click to hide internal directories.