Documentation ¶
Index ¶
- Constants
- func GenKey(clusterName, volName string, partitionID uint32, fileID uint64, objID int64, ...) string
- func NewBlobDeletePacket(dp *wrapper.DataPartition, fileID uint64, objID int64) *proto.Packet
- func NewBlobReadPacket(partitionID uint32, fileID uint64, objID int64, size uint32) *proto.Packet
- func NewBlobWritePacket(dp *wrapper.DataPartition, data []byte) *proto.Packet
- func ParseKey(key string) (clusterName, volName string, partitionID uint32, fileID uint64, objID int64, ...)
- func ParsePacket(p *proto.Packet) (partitionID uint32, fileID uint64, objID int64, crc uint32)
- type BlobClient
Constants ¶
View Source
const (
MaxRetryCnt = 100
)
View Source
const (
NumKeySegments = 10
)
Variables ¶
This section is empty.
Functions ¶
func NewBlobDeletePacket ¶
func NewBlobReadPacket ¶
func NewBlobWritePacket ¶
func NewBlobWritePacket(dp *wrapper.DataPartition, data []byte) *proto.Packet
Types ¶
type BlobClient ¶
type BlobClient struct {
// contains filtered or unexported fields
}
func NewBlobClient ¶
func NewBlobClient(volname, masters string) (*BlobClient, error)
func (*BlobClient) Delete ¶
func (client *BlobClient) Delete(key string) (err error)
Click to show internal directories.
Click to hide internal directories.