Documentation ¶
Index ¶
Constants ¶
View Source
const (
ShardSet int64 = 0x1ffff //this 1.517
)
Variables ¶
View Source
var ( ErrUploadInProgress = errors.New("Shard upload already in progress") ErrUploadNotInProgress = errors.New("Shard upload not in progress") )
Functions ¶
func AddShardFilesToPacker ¶
func AddShardFilesToPacker(spath, id string, pkr *shardpacker.Packer) (err error)
Types ¶
type UploadTracker ¶
func NewUploadTracker ¶
func NewUploadTracker() UploadTracker
func (*UploadTracker) EnterUpload ¶
func (t *UploadTracker) EnterUpload(uid UploadID) (err error)
EnterUpload attempts to claim an upload ID, if an upload with the existing ID exists an error is returnd
func (*UploadTracker) ExitUpload ¶
func (t *UploadTracker) ExitUpload(uid UploadID) (err error)
ExitUpload releases an existing upload lock for a given shard if the shard wasn't locked, and error is returned
Click to show internal directories.
Click to hide internal directories.