Documentation
¶
Index ¶
Constants ¶
View Source
const ( MAX_WEIGHT = 100 MEDIAN_WEIGHT = 50 MIN_DISK_TO_WORRY = 0.000809804 DEGRADED_WEIGHT = 30 )
View Source
const (
MAX_ERAS_SAVED = 10
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DynamicBBManager ¶
type DynamicBBManager struct { Eras map[time.Time]Era ErasAdded []time.Time BBHosts []string CurrentTime time.Time }
func NewDynamicBBManager ¶
func NewDynamicBBManager(bbHosts []string) *DynamicBBManager
func (*DynamicBBManager) GetCurrentEra ¶
func (c *DynamicBBManager) GetCurrentEra() Era
type GoServiceNode ¶
type SimpleEra ¶
type SimpleEra struct {
// contains filtered or unexported fields
}
func NewSimpleEra ¶
func NewSimpleEra() *SimpleEra
type SimpleNode ¶
type SimpleNode struct {
// contains filtered or unexported fields
}
func NewSimpleNode ¶
func NewSimpleNode(name string, ip string, port string) *SimpleNode
func (*SimpleNode) Ip ¶
func (n *SimpleNode) Ip() string
func (*SimpleNode) Name ¶
func (n *SimpleNode) Name() string
func (*SimpleNode) Port ¶
func (n *SimpleNode) Port() string
type StaticManager ¶
type StaticManager struct {
E Era
}
func NewStaticManager ¶
func NewStaticManager(e Era) *StaticManager
func (*StaticManager) GetCurrentEra ¶
func (c *StaticManager) GetCurrentEra() Era
type WeightedEra ¶
type WeightedEra struct {
// contains filtered or unexported fields
}
func NewWeightedEra ¶
func NewWeightedEra() *WeightedEra
func (*WeightedEra) Add ¶
func (s *WeightedEra) Add(n Node)
func (*WeightedEra) GetNode ¶
func (s *WeightedEra) GetNode(posit int) *WeightedNode
func (*WeightedEra) GetNodes ¶
func (s *WeightedEra) GetNodes() []Node
func (*WeightedEra) NormalizeAndPopulateMap ¶
func (s *WeightedEra) NormalizeAndPopulateMap()
type WeightedNode ¶
type WeightedNode struct {
// contains filtered or unexported fields
}
func NewWeightedNode ¶
func (*WeightedNode) Ip ¶
func (n *WeightedNode) Ip() string
func (*WeightedNode) Name ¶
func (n *WeightedNode) Name() string
func (*WeightedNode) Port ¶
func (n *WeightedNode) Port() string
Click to show internal directories.
Click to hide internal directories.