Documentation ¶
Index ¶
- Constants
- func GetPeerAddr(id string) string
- func Handoff(req *acproto.ACPY2DistRequest, dist []string)
- func PartIdx2Shard(bits int, partidx int) uint32
- func PartIdx2TreeID(bits int, partidx int) uint16
- func PartShard2Idx(bits int, shard uint32) int
- func PartShard2TreeID(bits int, shard uint32) uint16
- func PartTreeID2Idx(bits int, treeid uint16) int
- func PartTreeID2Shard(bits int, treeid uint16) uint32
- type ConfDBer
- type ConstrCf
- type DCPart
- type Databaser
- type P
- func (p *P) AltPeers(loc *soty.Loc) []string
- func (p *P) Close()
- func (p *P) CurrVer() uint64
- func (p *P) DistPeers(loc *soty.Loc, dcidx int, splitRack bool, butnot string) ([]string, []string)
- func (p *P) Distrib(loc *soty.Loc, req *acproto.ACPY2DistRequest, onDone func(int))
- func (p *P) DistribLocal(loc *soty.Loc, req *acproto.ACPY2DistRequest, onDone func(int))
- func (p *P) GetConf(dcreq string) *acproto.ACPY2RingConfReply
- func (p *P) GetLoc(shard uint32) *soty.Loc
- func (p *P) GetLocN(partidx int) *soty.Loc
- func (p *P) IsStable() bool
- func (p *P) NumDC(loc *soty.Loc) int
- func (p *P) NumParts() int
- func (p *P) NumReplicas() int
- func (p *P) PeerUpdate(id string, isup bool, iscf bool, first bool, pd *kibitz.Export, ...)
- func (p *P) RandomAEPeer(loc *soty.Loc) string
- type Part
Constants ¶
View Source
const ( MAXWORKQLEN = 1000 MAXWORKERPP = 5 MAXWORKERS = 100 KEEPALIVE = 30 * time.Second )
View Source
const TSAVE = uint64(10 * time.Second)
Variables ¶
This section is empty.
Functions ¶
func GetPeerAddr ¶
func PartIdx2Shard ¶
func PartIdx2TreeID ¶
func PartShard2Idx ¶
func PartShard2TreeID ¶
func PartTreeID2Idx ¶
func PartTreeID2Shard ¶
Types ¶
type Databaser ¶
type Databaser interface { Get(*acproto.ACPY2MapDatum) (bool, error) GetInternal(string, string) ([]byte, bool) SetInternal(string, string, []byte) DelInternal(string, string) Repartition(*soty.Loc, uint64) (bool, uint64) }
access to our underlying database
type P ¶
type P struct {
// contains filtered or unexported fields
}
func (*P) DistribLocal ¶
func (*P) NumReplicas ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.