Documentation ¶
Overview ¶
Package pb is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterObjectsHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterObjectsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ObjectsClient) error
- func RegisterObjectsHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterObjectsHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ObjectsServer) error
- func RegisterObjectsServer(s *grpc.Server, srv ObjectsServer)
- type Collection
- func (*Collection) Descriptor() ([]byte, []int)deprecated
- func (x *Collection) GetDescription() string
- func (x *Collection) GetId() string
- func (x *Collection) GetLabel() string
- func (*Collection) ProtoMessage()
- func (x *Collection) ProtoReflect() protoreflect.Message
- func (x *Collection) Reset()
- func (x *Collection) String() string
- type CreateCollectionRequest
- func (*CreateCollectionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateCollectionRequest) GetCollection() *Collection
- func (*CreateCollectionRequest) ProtoMessage()
- func (x *CreateCollectionRequest) ProtoReflect() protoreflect.Message
- func (x *CreateCollectionRequest) Reset()
- func (x *CreateCollectionRequest) String() string
- type CreateCollectionResponse
- type DeleteCollectionRequest
- func (*DeleteCollectionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteCollectionRequest) GetId() string
- func (*DeleteCollectionRequest) ProtoMessage()
- func (x *DeleteCollectionRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteCollectionRequest) Reset()
- func (x *DeleteCollectionRequest) String() string
- type DeleteCollectionResponse
- type DeleteObjectRequest
- func (*DeleteObjectRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteObjectRequest) GetCollection() string
- func (x *DeleteObjectRequest) GetObjectId() string
- func (*DeleteObjectRequest) ProtoMessage()
- func (x *DeleteObjectRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteObjectRequest) Reset()
- func (x *DeleteObjectRequest) String() string
- type DeleteObjectResponse
- type GetCollectionRequest
- func (*GetCollectionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetCollectionRequest) GetId() string
- func (*GetCollectionRequest) ProtoMessage()
- func (x *GetCollectionRequest) ProtoReflect() protoreflect.Message
- func (x *GetCollectionRequest) Reset()
- func (x *GetCollectionRequest) String() string
- type GetCollectionResponse
- func (*GetCollectionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetCollectionResponse) GetCollection() *Collection
- func (*GetCollectionResponse) ProtoMessage()
- func (x *GetCollectionResponse) ProtoReflect() protoreflect.Message
- func (x *GetCollectionResponse) Reset()
- func (x *GetCollectionResponse) String() string
- type GetObjectRequest
- func (*GetObjectRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetObjectRequest) GetAt() string
- func (x *GetObjectRequest) GetCollection() string
- func (x *GetObjectRequest) GetInfoOnly() bool
- func (x *GetObjectRequest) GetObjectId() string
- func (*GetObjectRequest) ProtoMessage()
- func (x *GetObjectRequest) ProtoReflect() protoreflect.Message
- func (x *GetObjectRequest) Reset()
- func (x *GetObjectRequest) String() string
- type GetObjectResponse
- func (*GetObjectResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetObjectResponse) GetObject() *structpb.Struct
- func (*GetObjectResponse) ProtoMessage()
- func (x *GetObjectResponse) ProtoReflect() protoreflect.Message
- func (x *GetObjectResponse) Reset()
- func (x *GetObjectResponse) String() string
- type ListCollectionsRequest
- type ListCollectionsResponse
- func (*ListCollectionsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListCollectionsResponse) GetCollections() []*Collection
- func (*ListCollectionsResponse) ProtoMessage()
- func (x *ListCollectionsResponse) ProtoReflect() protoreflect.Message
- func (x *ListCollectionsResponse) Reset()
- func (x *ListCollectionsResponse) String() string
- type ListObjectsRequest
- func (*ListObjectsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListObjectsRequest) GetAt() string
- func (x *ListObjectsRequest) GetCollection() string
- func (x *ListObjectsRequest) GetOffset() int64
- func (*ListObjectsRequest) ProtoMessage()
- func (x *ListObjectsRequest) ProtoReflect() protoreflect.Message
- func (x *ListObjectsRequest) Reset()
- func (x *ListObjectsRequest) String() string
- type ListObjectsResponse
- func (*ListObjectsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListObjectsResponse) GetObjects() []*structpb.Struct
- func (*ListObjectsResponse) ProtoMessage()
- func (x *ListObjectsResponse) ProtoReflect() protoreflect.Message
- func (x *ListObjectsResponse) Reset()
- func (x *ListObjectsResponse) String() string
- type MoveObjectRequest
- func (*MoveObjectRequest) Descriptor() ([]byte, []int)deprecated
- func (x *MoveObjectRequest) GetObjectId() string
- func (x *MoveObjectRequest) GetSourceCollection() string
- func (x *MoveObjectRequest) GetTargetCollection() string
- func (*MoveObjectRequest) ProtoMessage()
- func (x *MoveObjectRequest) ProtoReflect() protoreflect.Message
- func (x *MoveObjectRequest) Reset()
- func (x *MoveObjectRequest) String() string
- type MoveObjectResponse
- type ObjectsClient
- type ObjectsServer
- type Objects_ListObjectsClient
- type Objects_ListObjectsServer
- type Objects_SearchObjectsClient
- type Objects_SearchObjectsServer
- type PatchObjectRequest
- func (*PatchObjectRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PatchObjectRequest) GetCollection() string
- func (x *PatchObjectRequest) GetData() string
- func (x *PatchObjectRequest) GetObjectId() string
- func (x *PatchObjectRequest) GetPath() string
- func (*PatchObjectRequest) ProtoMessage()
- func (x *PatchObjectRequest) ProtoReflect() protoreflect.Message
- func (x *PatchObjectRequest) Reset()
- func (x *PatchObjectRequest) String() string
- type PatchObjectResponse
- func (*PatchObjectResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PatchObjectResponse) GetObject() *structpb.Struct
- func (*PatchObjectResponse) ProtoMessage()
- func (x *PatchObjectResponse) ProtoReflect() protoreflect.Message
- func (x *PatchObjectResponse) Reset()
- func (x *PatchObjectResponse) String() string
- type PutObjectRequest
- func (*PutObjectRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PutObjectRequest) GetCollection() string
- func (x *PutObjectRequest) GetObject() *structpb.Struct
- func (*PutObjectRequest) ProtoMessage()
- func (x *PutObjectRequest) ProtoReflect() protoreflect.Message
- func (x *PutObjectRequest) Reset()
- func (x *PutObjectRequest) String() string
- type PutObjectResponse
- type SearchObjectsRequest
- func (*SearchObjectsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SearchObjectsRequest) GetCollection() string
- func (x *SearchObjectsRequest) GetQuery() *structpb.Struct
- func (*SearchObjectsRequest) ProtoMessage()
- func (x *SearchObjectsRequest) ProtoReflect() protoreflect.Message
- func (x *SearchObjectsRequest) Reset()
- func (x *SearchObjectsRequest) String() string
- type UnimplementedObjectsServer
- func (UnimplementedObjectsServer) CreateCollection(context.Context, *CreateCollectionRequest) (*CreateCollectionResponse, error)
- func (UnimplementedObjectsServer) DeleteCollection(context.Context, *DeleteCollectionRequest) (*DeleteCollectionResponse, error)
- func (UnimplementedObjectsServer) DeleteObject(context.Context, *DeleteObjectRequest) (*DeleteObjectResponse, error)
- func (UnimplementedObjectsServer) GetCollection(context.Context, *GetCollectionRequest) (*GetCollectionResponse, error)
- func (UnimplementedObjectsServer) GetObject(context.Context, *GetObjectRequest) (*GetObjectResponse, error)
- func (UnimplementedObjectsServer) ListCollections(context.Context, *ListCollectionsRequest) (*ListCollectionsResponse, error)
- func (UnimplementedObjectsServer) ListObjects(*ListObjectsRequest, Objects_ListObjectsServer) error
- func (UnimplementedObjectsServer) MoveObject(context.Context, *MoveObjectRequest) (*MoveObjectResponse, error)
- func (UnimplementedObjectsServer) PatchObject(context.Context, *PatchObjectRequest) (*PatchObjectResponse, error)
- func (UnimplementedObjectsServer) PutObject(context.Context, *PutObjectRequest) (*PutObjectResponse, error)
- func (UnimplementedObjectsServer) SearchObjects(*SearchObjectsRequest, Objects_SearchObjectsServer) error
- type UnsafeObjectsServer
Constants ¶
This section is empty.
Variables ¶
var File_proto_objects_proto protoreflect.FileDescriptor
Functions ¶
func RegisterObjectsHandler ¶
func RegisterObjectsHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterObjectsHandler registers the http handlers for service Objects to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterObjectsHandlerClient ¶
func RegisterObjectsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ObjectsClient) error
RegisterObjectsHandlerClient registers the http handlers for service Objects to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ObjectsClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ObjectsClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ObjectsClient" to call the correct interceptors.
func RegisterObjectsHandlerFromEndpoint ¶
func RegisterObjectsHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterObjectsHandlerFromEndpoint is same as RegisterObjectsHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterObjectsHandlerServer ¶
func RegisterObjectsHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ObjectsServer) error
RegisterObjectsHandlerServer registers the http handlers for service Objects to "mux". UnaryRPC :call ObjectsServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterObjectsHandlerFromEndpoint instead.
func RegisterObjectsServer ¶
func RegisterObjectsServer(s *grpc.Server, srv ObjectsServer)
Types ¶
type Collection ¶
type Collection struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // contains filtered or unexported fields }
func (*Collection) Descriptor
deprecated
func (*Collection) Descriptor() ([]byte, []int)
Deprecated: Use Collection.ProtoReflect.Descriptor instead.
func (*Collection) GetDescription ¶
func (x *Collection) GetDescription() string
func (*Collection) GetId ¶
func (x *Collection) GetId() string
func (*Collection) GetLabel ¶
func (x *Collection) GetLabel() string
func (*Collection) ProtoMessage ¶
func (*Collection) ProtoMessage()
func (*Collection) ProtoReflect ¶
func (x *Collection) ProtoReflect() protoreflect.Message
func (*Collection) Reset ¶
func (x *Collection) Reset()
func (*Collection) String ¶
func (x *Collection) String() string
type CreateCollectionRequest ¶
type CreateCollectionRequest struct { Collection *Collection `protobuf:"bytes,1,opt,name=collection,proto3" json:"collection,omitempty"` // contains filtered or unexported fields }
func (*CreateCollectionRequest) Descriptor
deprecated
func (*CreateCollectionRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateCollectionRequest.ProtoReflect.Descriptor instead.
func (*CreateCollectionRequest) GetCollection ¶
func (x *CreateCollectionRequest) GetCollection() *Collection
func (*CreateCollectionRequest) ProtoMessage ¶
func (*CreateCollectionRequest) ProtoMessage()
func (*CreateCollectionRequest) ProtoReflect ¶
func (x *CreateCollectionRequest) ProtoReflect() protoreflect.Message
func (*CreateCollectionRequest) Reset ¶
func (x *CreateCollectionRequest) Reset()
func (*CreateCollectionRequest) String ¶
func (x *CreateCollectionRequest) String() string
type CreateCollectionResponse ¶
type CreateCollectionResponse struct {
// contains filtered or unexported fields
}
func (*CreateCollectionResponse) Descriptor
deprecated
func (*CreateCollectionResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateCollectionResponse.ProtoReflect.Descriptor instead.
func (*CreateCollectionResponse) ProtoMessage ¶
func (*CreateCollectionResponse) ProtoMessage()
func (*CreateCollectionResponse) ProtoReflect ¶
func (x *CreateCollectionResponse) ProtoReflect() protoreflect.Message
func (*CreateCollectionResponse) Reset ¶
func (x *CreateCollectionResponse) Reset()
func (*CreateCollectionResponse) String ¶
func (x *CreateCollectionResponse) String() string
type DeleteCollectionRequest ¶
type DeleteCollectionRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteCollectionRequest) Descriptor
deprecated
func (*DeleteCollectionRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteCollectionRequest.ProtoReflect.Descriptor instead.
func (*DeleteCollectionRequest) GetId ¶
func (x *DeleteCollectionRequest) GetId() string
func (*DeleteCollectionRequest) ProtoMessage ¶
func (*DeleteCollectionRequest) ProtoMessage()
func (*DeleteCollectionRequest) ProtoReflect ¶
func (x *DeleteCollectionRequest) ProtoReflect() protoreflect.Message
func (*DeleteCollectionRequest) Reset ¶
func (x *DeleteCollectionRequest) Reset()
func (*DeleteCollectionRequest) String ¶
func (x *DeleteCollectionRequest) String() string
type DeleteCollectionResponse ¶
type DeleteCollectionResponse struct {
// contains filtered or unexported fields
}
func (*DeleteCollectionResponse) Descriptor
deprecated
func (*DeleteCollectionResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteCollectionResponse.ProtoReflect.Descriptor instead.
func (*DeleteCollectionResponse) ProtoMessage ¶
func (*DeleteCollectionResponse) ProtoMessage()
func (*DeleteCollectionResponse) ProtoReflect ¶
func (x *DeleteCollectionResponse) ProtoReflect() protoreflect.Message
func (*DeleteCollectionResponse) Reset ¶
func (x *DeleteCollectionResponse) Reset()
func (*DeleteCollectionResponse) String ¶
func (x *DeleteCollectionResponse) String() string
type DeleteObjectRequest ¶
type DeleteObjectRequest struct { Collection string `protobuf:"bytes,1,opt,name=Collection,proto3" json:"Collection,omitempty"` ObjectId string `protobuf:"bytes,2,opt,name=object_id,json=objectId,proto3" json:"object_id,omitempty"` // contains filtered or unexported fields }
func (*DeleteObjectRequest) Descriptor
deprecated
func (*DeleteObjectRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteObjectRequest.ProtoReflect.Descriptor instead.
func (*DeleteObjectRequest) GetCollection ¶
func (x *DeleteObjectRequest) GetCollection() string
func (*DeleteObjectRequest) GetObjectId ¶
func (x *DeleteObjectRequest) GetObjectId() string
func (*DeleteObjectRequest) ProtoMessage ¶
func (*DeleteObjectRequest) ProtoMessage()
func (*DeleteObjectRequest) ProtoReflect ¶
func (x *DeleteObjectRequest) ProtoReflect() protoreflect.Message
func (*DeleteObjectRequest) Reset ¶
func (x *DeleteObjectRequest) Reset()
func (*DeleteObjectRequest) String ¶
func (x *DeleteObjectRequest) String() string
type DeleteObjectResponse ¶
type DeleteObjectResponse struct {
// contains filtered or unexported fields
}
func (*DeleteObjectResponse) Descriptor
deprecated
func (*DeleteObjectResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteObjectResponse.ProtoReflect.Descriptor instead.
func (*DeleteObjectResponse) ProtoMessage ¶
func (*DeleteObjectResponse) ProtoMessage()
func (*DeleteObjectResponse) ProtoReflect ¶
func (x *DeleteObjectResponse) ProtoReflect() protoreflect.Message
func (*DeleteObjectResponse) Reset ¶
func (x *DeleteObjectResponse) Reset()
func (*DeleteObjectResponse) String ¶
func (x *DeleteObjectResponse) String() string
type GetCollectionRequest ¶
type GetCollectionRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetCollectionRequest) Descriptor
deprecated
func (*GetCollectionRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetCollectionRequest.ProtoReflect.Descriptor instead.
func (*GetCollectionRequest) GetId ¶
func (x *GetCollectionRequest) GetId() string
func (*GetCollectionRequest) ProtoMessage ¶
func (*GetCollectionRequest) ProtoMessage()
func (*GetCollectionRequest) ProtoReflect ¶
func (x *GetCollectionRequest) ProtoReflect() protoreflect.Message
func (*GetCollectionRequest) Reset ¶
func (x *GetCollectionRequest) Reset()
func (*GetCollectionRequest) String ¶
func (x *GetCollectionRequest) String() string
type GetCollectionResponse ¶
type GetCollectionResponse struct { Collection *Collection `protobuf:"bytes,1,opt,name=collection,proto3" json:"collection,omitempty"` // contains filtered or unexported fields }
func (*GetCollectionResponse) Descriptor
deprecated
func (*GetCollectionResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetCollectionResponse.ProtoReflect.Descriptor instead.
func (*GetCollectionResponse) GetCollection ¶
func (x *GetCollectionResponse) GetCollection() *Collection
func (*GetCollectionResponse) ProtoMessage ¶
func (*GetCollectionResponse) ProtoMessage()
func (*GetCollectionResponse) ProtoReflect ¶
func (x *GetCollectionResponse) ProtoReflect() protoreflect.Message
func (*GetCollectionResponse) Reset ¶
func (x *GetCollectionResponse) Reset()
func (*GetCollectionResponse) String ¶
func (x *GetCollectionResponse) String() string
type GetObjectRequest ¶
type GetObjectRequest struct { Collection string `protobuf:"bytes,1,opt,name=Collection,proto3" json:"Collection,omitempty"` ObjectId string `protobuf:"bytes,2,opt,name=object_id,json=objectId,proto3" json:"object_id,omitempty"` At string `protobuf:"bytes,3,opt,name=at,proto3" json:"at,omitempty"` InfoOnly bool `protobuf:"varint,4,opt,name=info_only,json=infoOnly,proto3" json:"info_only,omitempty"` // contains filtered or unexported fields }
func (*GetObjectRequest) Descriptor
deprecated
func (*GetObjectRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetObjectRequest.ProtoReflect.Descriptor instead.
func (*GetObjectRequest) GetAt ¶
func (x *GetObjectRequest) GetAt() string
func (*GetObjectRequest) GetCollection ¶
func (x *GetObjectRequest) GetCollection() string
func (*GetObjectRequest) GetInfoOnly ¶
func (x *GetObjectRequest) GetInfoOnly() bool
func (*GetObjectRequest) GetObjectId ¶
func (x *GetObjectRequest) GetObjectId() string
func (*GetObjectRequest) ProtoMessage ¶
func (*GetObjectRequest) ProtoMessage()
func (*GetObjectRequest) ProtoReflect ¶
func (x *GetObjectRequest) ProtoReflect() protoreflect.Message
func (*GetObjectRequest) Reset ¶
func (x *GetObjectRequest) Reset()
func (*GetObjectRequest) String ¶
func (x *GetObjectRequest) String() string
type GetObjectResponse ¶
type GetObjectResponse struct { Object *structpb.Struct `protobuf:"bytes,1,opt,name=object,proto3" json:"object,omitempty"` // contains filtered or unexported fields }
func (*GetObjectResponse) Descriptor
deprecated
func (*GetObjectResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetObjectResponse.ProtoReflect.Descriptor instead.
func (*GetObjectResponse) GetObject ¶
func (x *GetObjectResponse) GetObject() *structpb.Struct
func (*GetObjectResponse) ProtoMessage ¶
func (*GetObjectResponse) ProtoMessage()
func (*GetObjectResponse) ProtoReflect ¶
func (x *GetObjectResponse) ProtoReflect() protoreflect.Message
func (*GetObjectResponse) Reset ¶
func (x *GetObjectResponse) Reset()
func (*GetObjectResponse) String ¶
func (x *GetObjectResponse) String() string
type ListCollectionsRequest ¶
type ListCollectionsRequest struct {
// contains filtered or unexported fields
}
func (*ListCollectionsRequest) Descriptor
deprecated
func (*ListCollectionsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListCollectionsRequest.ProtoReflect.Descriptor instead.
func (*ListCollectionsRequest) ProtoMessage ¶
func (*ListCollectionsRequest) ProtoMessage()
func (*ListCollectionsRequest) ProtoReflect ¶
func (x *ListCollectionsRequest) ProtoReflect() protoreflect.Message
func (*ListCollectionsRequest) Reset ¶
func (x *ListCollectionsRequest) Reset()
func (*ListCollectionsRequest) String ¶
func (x *ListCollectionsRequest) String() string
type ListCollectionsResponse ¶
type ListCollectionsResponse struct { Collections []*Collection `protobuf:"bytes,1,rep,name=collections,proto3" json:"collections,omitempty"` // contains filtered or unexported fields }
func (*ListCollectionsResponse) Descriptor
deprecated
func (*ListCollectionsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListCollectionsResponse.ProtoReflect.Descriptor instead.
func (*ListCollectionsResponse) GetCollections ¶
func (x *ListCollectionsResponse) GetCollections() []*Collection
func (*ListCollectionsResponse) ProtoMessage ¶
func (*ListCollectionsResponse) ProtoMessage()
func (*ListCollectionsResponse) ProtoReflect ¶
func (x *ListCollectionsResponse) ProtoReflect() protoreflect.Message
func (*ListCollectionsResponse) Reset ¶
func (x *ListCollectionsResponse) Reset()
func (*ListCollectionsResponse) String ¶
func (x *ListCollectionsResponse) String() string
type ListObjectsRequest ¶
type ListObjectsRequest struct { Collection string `protobuf:"bytes,1,opt,name=collection,proto3" json:"collection,omitempty"` Offset int64 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"` At string `protobuf:"bytes,3,opt,name=at,proto3" json:"at,omitempty"` // contains filtered or unexported fields }
func (*ListObjectsRequest) Descriptor
deprecated
func (*ListObjectsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListObjectsRequest.ProtoReflect.Descriptor instead.
func (*ListObjectsRequest) GetAt ¶
func (x *ListObjectsRequest) GetAt() string
func (*ListObjectsRequest) GetCollection ¶
func (x *ListObjectsRequest) GetCollection() string
func (*ListObjectsRequest) GetOffset ¶
func (x *ListObjectsRequest) GetOffset() int64
func (*ListObjectsRequest) ProtoMessage ¶
func (*ListObjectsRequest) ProtoMessage()
func (*ListObjectsRequest) ProtoReflect ¶
func (x *ListObjectsRequest) ProtoReflect() protoreflect.Message
func (*ListObjectsRequest) Reset ¶
func (x *ListObjectsRequest) Reset()
func (*ListObjectsRequest) String ¶
func (x *ListObjectsRequest) String() string
type ListObjectsResponse ¶
type ListObjectsResponse struct { Objects []*structpb.Struct `protobuf:"bytes,1,rep,name=objects,proto3" json:"objects,omitempty"` // contains filtered or unexported fields }
func (*ListObjectsResponse) Descriptor
deprecated
func (*ListObjectsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListObjectsResponse.ProtoReflect.Descriptor instead.
func (*ListObjectsResponse) GetObjects ¶
func (x *ListObjectsResponse) GetObjects() []*structpb.Struct
func (*ListObjectsResponse) ProtoMessage ¶
func (*ListObjectsResponse) ProtoMessage()
func (*ListObjectsResponse) ProtoReflect ¶
func (x *ListObjectsResponse) ProtoReflect() protoreflect.Message
func (*ListObjectsResponse) Reset ¶
func (x *ListObjectsResponse) Reset()
func (*ListObjectsResponse) String ¶
func (x *ListObjectsResponse) String() string
type MoveObjectRequest ¶
type MoveObjectRequest struct { SourceCollection string `protobuf:"bytes,1,opt,name=source_collection,json=sourceCollection,proto3" json:"source_collection,omitempty"` ObjectId string `protobuf:"bytes,2,opt,name=object_id,json=objectId,proto3" json:"object_id,omitempty"` TargetCollection string `protobuf:"bytes,3,opt,name=target_collection,json=targetCollection,proto3" json:"target_collection,omitempty"` // contains filtered or unexported fields }
func (*MoveObjectRequest) Descriptor
deprecated
func (*MoveObjectRequest) Descriptor() ([]byte, []int)
Deprecated: Use MoveObjectRequest.ProtoReflect.Descriptor instead.
func (*MoveObjectRequest) GetObjectId ¶
func (x *MoveObjectRequest) GetObjectId() string
func (*MoveObjectRequest) GetSourceCollection ¶
func (x *MoveObjectRequest) GetSourceCollection() string
func (*MoveObjectRequest) GetTargetCollection ¶
func (x *MoveObjectRequest) GetTargetCollection() string
func (*MoveObjectRequest) ProtoMessage ¶
func (*MoveObjectRequest) ProtoMessage()
func (*MoveObjectRequest) ProtoReflect ¶
func (x *MoveObjectRequest) ProtoReflect() protoreflect.Message
func (*MoveObjectRequest) Reset ¶
func (x *MoveObjectRequest) Reset()
func (*MoveObjectRequest) String ¶
func (x *MoveObjectRequest) String() string
type MoveObjectResponse ¶
type MoveObjectResponse struct {
// contains filtered or unexported fields
}
func (*MoveObjectResponse) Descriptor
deprecated
func (*MoveObjectResponse) Descriptor() ([]byte, []int)
Deprecated: Use MoveObjectResponse.ProtoReflect.Descriptor instead.
func (*MoveObjectResponse) ProtoMessage ¶
func (*MoveObjectResponse) ProtoMessage()
func (*MoveObjectResponse) ProtoReflect ¶
func (x *MoveObjectResponse) ProtoReflect() protoreflect.Message
func (*MoveObjectResponse) Reset ¶
func (x *MoveObjectResponse) Reset()
func (*MoveObjectResponse) String ¶
func (x *MoveObjectResponse) String() string
type ObjectsClient ¶
type ObjectsClient interface { CreateCollection(ctx context.Context, in *CreateCollectionRequest, opts ...grpc.CallOption) (*CreateCollectionResponse, error) GetCollection(ctx context.Context, in *GetCollectionRequest, opts ...grpc.CallOption) (*GetCollectionResponse, error) ListCollections(ctx context.Context, in *ListCollectionsRequest, opts ...grpc.CallOption) (*ListCollectionsResponse, error) DeleteCollection(ctx context.Context, in *DeleteCollectionRequest, opts ...grpc.CallOption) (*DeleteCollectionResponse, error) PutObject(ctx context.Context, in *PutObjectRequest, opts ...grpc.CallOption) (*PutObjectResponse, error) PatchObject(ctx context.Context, in *PatchObjectRequest, opts ...grpc.CallOption) (*PatchObjectResponse, error) MoveObject(ctx context.Context, in *MoveObjectRequest, opts ...grpc.CallOption) (*MoveObjectResponse, error) GetObject(ctx context.Context, in *GetObjectRequest, opts ...grpc.CallOption) (*GetObjectResponse, error) DeleteObject(ctx context.Context, in *DeleteObjectRequest, opts ...grpc.CallOption) (*DeleteObjectResponse, error) ListObjects(ctx context.Context, in *ListObjectsRequest, opts ...grpc.CallOption) (Objects_ListObjectsClient, error) SearchObjects(ctx context.Context, in *SearchObjectsRequest, opts ...grpc.CallOption) (Objects_SearchObjectsClient, error) }
ObjectsClient is the client API for Objects service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewObjectsClient ¶
func NewObjectsClient(cc grpc.ClientConnInterface) ObjectsClient
type ObjectsServer ¶
type ObjectsServer interface { CreateCollection(context.Context, *CreateCollectionRequest) (*CreateCollectionResponse, error) GetCollection(context.Context, *GetCollectionRequest) (*GetCollectionResponse, error) ListCollections(context.Context, *ListCollectionsRequest) (*ListCollectionsResponse, error) DeleteCollection(context.Context, *DeleteCollectionRequest) (*DeleteCollectionResponse, error) PutObject(context.Context, *PutObjectRequest) (*PutObjectResponse, error) PatchObject(context.Context, *PatchObjectRequest) (*PatchObjectResponse, error) MoveObject(context.Context, *MoveObjectRequest) (*MoveObjectResponse, error) GetObject(context.Context, *GetObjectRequest) (*GetObjectResponse, error) DeleteObject(context.Context, *DeleteObjectRequest) (*DeleteObjectResponse, error) ListObjects(*ListObjectsRequest, Objects_ListObjectsServer) error SearchObjects(*SearchObjectsRequest, Objects_SearchObjectsServer) error // contains filtered or unexported methods }
ObjectsServer is the server API for Objects service. All implementations must embed UnimplementedObjectsServer for forward compatibility
type Objects_ListObjectsClient ¶
type Objects_ListObjectsClient interface { Recv() (*structpb.Struct, error) grpc.ClientStream }
type Objects_ListObjectsServer ¶
type Objects_ListObjectsServer interface { Send(*structpb.Struct) error grpc.ServerStream }
type Objects_SearchObjectsClient ¶
type Objects_SearchObjectsClient interface { Recv() (*structpb.Struct, error) grpc.ClientStream }
type Objects_SearchObjectsServer ¶
type Objects_SearchObjectsServer interface { Send(*structpb.Struct) error grpc.ServerStream }
type PatchObjectRequest ¶
type PatchObjectRequest struct { Collection string `protobuf:"bytes,1,opt,name=Collection,proto3" json:"Collection,omitempty"` ObjectId string `protobuf:"bytes,2,opt,name=object_id,json=objectId,proto3" json:"object_id,omitempty"` Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` Data string `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*PatchObjectRequest) Descriptor
deprecated
func (*PatchObjectRequest) Descriptor() ([]byte, []int)
Deprecated: Use PatchObjectRequest.ProtoReflect.Descriptor instead.
func (*PatchObjectRequest) GetCollection ¶
func (x *PatchObjectRequest) GetCollection() string
func (*PatchObjectRequest) GetData ¶
func (x *PatchObjectRequest) GetData() string
func (*PatchObjectRequest) GetObjectId ¶
func (x *PatchObjectRequest) GetObjectId() string
func (*PatchObjectRequest) GetPath ¶
func (x *PatchObjectRequest) GetPath() string
func (*PatchObjectRequest) ProtoMessage ¶
func (*PatchObjectRequest) ProtoMessage()
func (*PatchObjectRequest) ProtoReflect ¶
func (x *PatchObjectRequest) ProtoReflect() protoreflect.Message
func (*PatchObjectRequest) Reset ¶
func (x *PatchObjectRequest) Reset()
func (*PatchObjectRequest) String ¶
func (x *PatchObjectRequest) String() string
type PatchObjectResponse ¶
type PatchObjectResponse struct { Object *structpb.Struct `protobuf:"bytes,1,opt,name=object,proto3" json:"object,omitempty"` // contains filtered or unexported fields }
func (*PatchObjectResponse) Descriptor
deprecated
func (*PatchObjectResponse) Descriptor() ([]byte, []int)
Deprecated: Use PatchObjectResponse.ProtoReflect.Descriptor instead.
func (*PatchObjectResponse) GetObject ¶
func (x *PatchObjectResponse) GetObject() *structpb.Struct
func (*PatchObjectResponse) ProtoMessage ¶
func (*PatchObjectResponse) ProtoMessage()
func (*PatchObjectResponse) ProtoReflect ¶
func (x *PatchObjectResponse) ProtoReflect() protoreflect.Message
func (*PatchObjectResponse) Reset ¶
func (x *PatchObjectResponse) Reset()
func (*PatchObjectResponse) String ¶
func (x *PatchObjectResponse) String() string
type PutObjectRequest ¶
type PutObjectRequest struct { Collection string `protobuf:"bytes,1,opt,name=Collection,proto3" json:"Collection,omitempty"` Object *structpb.Struct `protobuf:"bytes,2,opt,name=object,proto3" json:"object,omitempty"` // contains filtered or unexported fields }
func (*PutObjectRequest) Descriptor
deprecated
func (*PutObjectRequest) Descriptor() ([]byte, []int)
Deprecated: Use PutObjectRequest.ProtoReflect.Descriptor instead.
func (*PutObjectRequest) GetCollection ¶
func (x *PutObjectRequest) GetCollection() string
func (*PutObjectRequest) GetObject ¶
func (x *PutObjectRequest) GetObject() *structpb.Struct
func (*PutObjectRequest) ProtoMessage ¶
func (*PutObjectRequest) ProtoMessage()
func (*PutObjectRequest) ProtoReflect ¶
func (x *PutObjectRequest) ProtoReflect() protoreflect.Message
func (*PutObjectRequest) Reset ¶
func (x *PutObjectRequest) Reset()
func (*PutObjectRequest) String ¶
func (x *PutObjectRequest) String() string
type PutObjectResponse ¶
type PutObjectResponse struct { ObjectId string `protobuf:"bytes,1,opt,name=object_id,json=objectId,proto3" json:"object_id,omitempty"` // contains filtered or unexported fields }
func (*PutObjectResponse) Descriptor
deprecated
func (*PutObjectResponse) Descriptor() ([]byte, []int)
Deprecated: Use PutObjectResponse.ProtoReflect.Descriptor instead.
func (*PutObjectResponse) GetObjectId ¶
func (x *PutObjectResponse) GetObjectId() string
func (*PutObjectResponse) ProtoMessage ¶
func (*PutObjectResponse) ProtoMessage()
func (*PutObjectResponse) ProtoReflect ¶
func (x *PutObjectResponse) ProtoReflect() protoreflect.Message
func (*PutObjectResponse) Reset ¶
func (x *PutObjectResponse) Reset()
func (*PutObjectResponse) String ¶
func (x *PutObjectResponse) String() string
type SearchObjectsRequest ¶
type SearchObjectsRequest struct { Collection string `protobuf:"bytes,1,opt,name=collection,proto3" json:"collection,omitempty"` Query *structpb.Struct `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"` // contains filtered or unexported fields }
func (*SearchObjectsRequest) Descriptor
deprecated
func (*SearchObjectsRequest) Descriptor() ([]byte, []int)
Deprecated: Use SearchObjectsRequest.ProtoReflect.Descriptor instead.
func (*SearchObjectsRequest) GetCollection ¶
func (x *SearchObjectsRequest) GetCollection() string
func (*SearchObjectsRequest) GetQuery ¶
func (x *SearchObjectsRequest) GetQuery() *structpb.Struct
func (*SearchObjectsRequest) ProtoMessage ¶
func (*SearchObjectsRequest) ProtoMessage()
func (*SearchObjectsRequest) ProtoReflect ¶
func (x *SearchObjectsRequest) ProtoReflect() protoreflect.Message
func (*SearchObjectsRequest) Reset ¶
func (x *SearchObjectsRequest) Reset()
func (*SearchObjectsRequest) String ¶
func (x *SearchObjectsRequest) String() string
type UnimplementedObjectsServer ¶
type UnimplementedObjectsServer struct { }
UnimplementedObjectsServer must be embedded to have forward compatible implementations.
func (UnimplementedObjectsServer) CreateCollection ¶
func (UnimplementedObjectsServer) CreateCollection(context.Context, *CreateCollectionRequest) (*CreateCollectionResponse, error)
func (UnimplementedObjectsServer) DeleteCollection ¶
func (UnimplementedObjectsServer) DeleteCollection(context.Context, *DeleteCollectionRequest) (*DeleteCollectionResponse, error)
func (UnimplementedObjectsServer) DeleteObject ¶
func (UnimplementedObjectsServer) DeleteObject(context.Context, *DeleteObjectRequest) (*DeleteObjectResponse, error)
func (UnimplementedObjectsServer) GetCollection ¶
func (UnimplementedObjectsServer) GetCollection(context.Context, *GetCollectionRequest) (*GetCollectionResponse, error)
func (UnimplementedObjectsServer) GetObject ¶
func (UnimplementedObjectsServer) GetObject(context.Context, *GetObjectRequest) (*GetObjectResponse, error)
func (UnimplementedObjectsServer) ListCollections ¶
func (UnimplementedObjectsServer) ListCollections(context.Context, *ListCollectionsRequest) (*ListCollectionsResponse, error)
func (UnimplementedObjectsServer) ListObjects ¶
func (UnimplementedObjectsServer) ListObjects(*ListObjectsRequest, Objects_ListObjectsServer) error
func (UnimplementedObjectsServer) MoveObject ¶
func (UnimplementedObjectsServer) MoveObject(context.Context, *MoveObjectRequest) (*MoveObjectResponse, error)
func (UnimplementedObjectsServer) PatchObject ¶
func (UnimplementedObjectsServer) PatchObject(context.Context, *PatchObjectRequest) (*PatchObjectResponse, error)
func (UnimplementedObjectsServer) PutObject ¶
func (UnimplementedObjectsServer) PutObject(context.Context, *PutObjectRequest) (*PutObjectResponse, error)
func (UnimplementedObjectsServer) SearchObjects ¶
func (UnimplementedObjectsServer) SearchObjects(*SearchObjectsRequest, Objects_SearchObjectsServer) error
type UnsafeObjectsServer ¶
type UnsafeObjectsServer interface {
// contains filtered or unexported methods
}
UnsafeObjectsServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ObjectsServer will result in compilation errors.