Documentation ¶
Index ¶
- type Uploader
- func (uploader *Uploader) Name() string
- func (uploader *Uploader) PutObject(stream types.UploaderService_PutObjectServer) (err error)
- func (uploader *Uploader) QueryPuttingObject(ctx context.Context, req *types.QueryPuttingObjectRequest) (resp *types.QueryPuttingObjectResponse, err error)
- func (uploader *Uploader) Start(ctx context.Context) error
- func (uploader *Uploader) Stop(ctx context.Context) error
- type UploaderConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Uploader ¶
type Uploader struct {
// contains filtered or unexported fields
}
Uploader implements the gRPC of UploaderService, responsible for uploading object payload data.
func NewUploaderService ¶
func NewUploaderService(cfg *UploaderConfig) (*Uploader, error)
NewUploaderService returns an instance of Uploader that implementation of the lifecycle.Service and UploaderService interface
func (*Uploader) PutObject ¶
func (uploader *Uploader) PutObject(stream types.UploaderService_PutObjectServer) (err error)
PutObject upload an object payload data with object info.
func (*Uploader) QueryPuttingObject ¶
func (uploader *Uploader) QueryPuttingObject(ctx context.Context, req *types.QueryPuttingObjectRequest) ( resp *types.QueryPuttingObjectResponse, err error)
QueryPuttingObject query an uploading object with object id from cache
type UploaderConfig ¶
type UploaderConfig struct { GRPCAddress string SignerGrpcAddress string TaskNodeGrpcAddress string SpDBConfig *config.SQLDBConfig PieceStoreConfig *storage.PieceStoreConfig }
UploaderConfig defines Uploader service config
Click to show internal directories.
Click to hide internal directories.