Documentation ¶
Index ¶
- type Server
- func (s *Server) Delete(ctx context.Context, req *objectGRPC.DeleteRequest) (*objectGRPC.DeleteResponse, error)
- func (s *Server) Get(req *objectGRPC.GetRequest, gStream objectGRPC.ObjectService_GetServer) error
- func (s *Server) GetRange(req *objectGRPC.GetRangeRequest, ...) error
- func (s *Server) GetRangeHash(ctx context.Context, req *objectGRPC.GetRangeHashRequest) (*objectGRPC.GetRangeHashResponse, error)
- func (s *Server) Head(ctx context.Context, req *objectGRPC.HeadRequest) (*objectGRPC.HeadResponse, error)
- func (s *Server) Put(gStream objectGRPC.ObjectService_PutServer) error
- func (s *Server) Search(req *objectGRPC.SearchRequest, gStream objectGRPC.ObjectService_SearchServer) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶ added in v0.12.0
type Server struct {
// contains filtered or unexported fields
}
Server wraps NeoFS API Object service and provides gRPC Object service server interface.
func (*Server) Delete ¶ added in v0.12.0
func (s *Server) Delete(ctx context.Context, req *objectGRPC.DeleteRequest) (*objectGRPC.DeleteResponse, error)
Delete converts gRPC DeleteRequest message and passes it to internal Object service.
func (*Server) Get ¶ added in v0.12.0
func (s *Server) Get(req *objectGRPC.GetRequest, gStream objectGRPC.ObjectService_GetServer) error
Get converts gRPC GetRequest message, opens internal Object service Get stream and overtakes its data to gRPC stream.
func (*Server) GetRange ¶ added in v0.12.0
func (s *Server) GetRange(req *objectGRPC.GetRangeRequest, gStream objectGRPC.ObjectService_GetRangeServer) error
GetRange converts gRPC GetRangeRequest message, opens internal Object service Search stream and overtakes its data to gRPC stream.
func (*Server) GetRangeHash ¶ added in v0.12.0
func (s *Server) GetRangeHash(ctx context.Context, req *objectGRPC.GetRangeHashRequest) (*objectGRPC.GetRangeHashResponse, error)
GetRangeHash converts gRPC GetRangeHashRequest message and passes it to internal Object service.
func (*Server) Head ¶ added in v0.12.0
func (s *Server) Head(ctx context.Context, req *objectGRPC.HeadRequest) (*objectGRPC.HeadResponse, error)
Head converts gRPC HeadRequest message and passes it to internal Object service.
func (*Server) Put ¶ added in v0.12.0
func (s *Server) Put(gStream objectGRPC.ObjectService_PutServer) error
Put opens internal Object service Put stream and overtakes data from gRPC stream to it.
func (*Server) Search ¶ added in v0.12.0
func (s *Server) Search(req *objectGRPC.SearchRequest, gStream objectGRPC.ObjectService_SearchServer) error
Search converts gRPC SearchRequest message, opens internal Object service Search stream and overtakes its data to gRPC stream.