Versions in this module Expand all Collapse all v0 v0.8.0 Jun 24, 2017 Changes in this version + const FileIdSaveInterval + type FileId struct + Hashcode uint32 + Key uint64 + VolumeId uint32 + func NewFileId(VolumeId uint32, Key uint64, Hashcode uint32) *FileId + func ParseFileId(fid string) *FileId + func (n *FileId) String() string + type Machine struct + Server MachineInfo + Volumes []storage.VolumeInfo + func NewMachine(server, publicUrl string, volumes []storage.VolumeInfo) *Machine + type MachineInfo struct + PublicUrl string + Url string + type Mapper struct + FileIdSequence uint64 + Machines []*Machine + Writers []uint32 + func NewMapper(dirname string, filename string, volumeSizeLimit uint64) (m *Mapper) + func (m *Mapper) Add(machine Machine) + func (m *Mapper) Get(vid uint32) (*Machine, error) + func (m *Mapper) NextFileId(c string) (uint64, int) + func (m *Mapper) PickForWrite(c string) (string, int, MachineInfo, error)