types

package
v0.0.0-...-92e9779 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2015 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Host

type Host struct {
	Id          string
	Weight      int
	Name        string
	ServiceIp   string
	ServicePort int
	HashStart   string
	HashEnd     string
}

func (Host) AssignHashBoundaries

func (h Host) AssignHashBoundaries()

func (*Host) GenID

func (h *Host) GenID()

type HostById

type HostById []Host

func (HostById) Len

func (hs HostById) Len() int

func (HostById) Less

func (hs HostById) Less(i, j int) bool

func (HostById) Swap

func (hs HostById) Swap(i, j int)

type HostGroup

type HostGroup struct {
	Id         string
	Weight     int
	Hosts      []Host
	ChildGroup *HostGroup
}

func (HostGroup) OrderHostIds

func (h HostGroup) OrderHostIds()

type Instance

type Instance struct {
	Id       string
	Hostname string
	Cores    int
	RamMB    int
}

func (*Instance) GenID

func (i *Instance) GenID() *big.Int

Jump to

Keyboard shortcuts

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