balancer

package
v0.0.0-...-6f42548 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 6, 2014 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Balancer

type Balancer struct {
	// contains filtered or unexported fields
}

func New

func New() *Balancer

func (*Balancer) MakeTransfers

func (bl *Balancer) MakeTransfers() (transfers []*Transfer)

func (*Balancer) RemoveHost

func (bl *Balancer) RemoveHost(hostAddr string)

func (*Balancer) TransferComplete

func (bl *Balancer) TransferComplete(transferId int64)

func (*Balancer) UpdateHost

func (bl *Balancer) UpdateHost(hostAddr string, size int64, lim int64)

type Transfer

type Transfer struct {
	Id     int64
	From   string
	To     string
	Amount int64
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL