Documentation ¶
Index ¶
- type Receiver
- func (receiver *Receiver) Name() string
- func (receiver *Receiver) QueryReceivingObject(ctx context.Context, req *types.QueryReceivingObjectRequest) (resp *types.QueryReceivingObjectResponse, err error)
- func (receiver *Receiver) ReceiveObjectPiece(stream types.ReceiverService_ReceiveObjectPieceServer) (err error)
- func (receiver *Receiver) Start(ctx context.Context) error
- func (receiver *Receiver) Stop(ctx context.Context) error
- type ReceiverConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Receiver ¶
type Receiver struct {
// contains filtered or unexported fields
}
Receiver implements the gRPC of ReceiverService, responsible for receive replicate object payload data
func NewReceiverService ¶
func NewReceiverService(config *ReceiverConfig) (*Receiver, error)
NewReceiverService return a Receiver instance and init the resource
func (*Receiver) QueryReceivingObject ¶ added in v0.1.1
func (receiver *Receiver) QueryReceivingObject(ctx context.Context, req *types.QueryReceivingObjectRequest) ( resp *types.QueryReceivingObjectResponse, err error)
QueryReceivingObject query a receiving object info by object id.
func (*Receiver) ReceiveObjectPiece ¶ added in v0.1.1
func (receiver *Receiver) ReceiveObjectPiece(stream types.ReceiverService_ReceiveObjectPieceServer) (err error)
ReceiveObjectPiece an object payload to storage provider.
type ReceiverConfig ¶
type ReceiverConfig struct { SpOperatorAddress string GRPCAddress string SignerGRPCAddress string SpDBConfig *config.SQLDBConfig PieceStoreConfig *storage.PieceStoreConfig }
Click to show internal directories.
Click to hide internal directories.