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) PutSingle(ctx context.Context, req *objectGRPC.PutSingleRequest) (*objectGRPC.PutSingleResponse, 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 ¶
type Server struct {
// contains filtered or unexported fields
}
Server wraps FrostFS API Object service and provides gRPC Object service server interface.
func New ¶
func New(c objectSvc.ServiceServer) *Server
New creates, initializes and returns Server instance.
func (*Server) Delete ¶
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 ¶
func (s *Server) Get(req *objectGRPC.GetRequest, gStream objectGRPC.ObjectService_GetServer) error
Get converts gRPC GetRequest message and server-side stream and overtakes its data to gRPC stream.
func (*Server) GetRange ¶
func (s *Server) GetRange(req *objectGRPC.GetRangeRequest, gStream objectGRPC.ObjectService_GetRangeServer) error
GetRange converts gRPC GetRangeRequest message and server-side stream and overtakes its data to gRPC stream.
func (*Server) GetRangeHash ¶
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 ¶
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 ¶
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) PutSingle ¶ added in v0.37.0
func (s *Server) PutSingle(ctx context.Context, req *objectGRPC.PutSingleRequest) (*objectGRPC.PutSingleResponse, error)
func (*Server) Search ¶
func (s *Server) Search(req *objectGRPC.SearchRequest, gStream objectGRPC.ObjectService_SearchServer) error
Search converts gRPC SearchRequest message and server-side stream and overtakes its data to gRPC stream.