common

package
v0.0.0-...-d807755 Latest Latest
Warning

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

Go to latest
Published: May 7, 2014 License: GPL-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnectReply

type ConnectReply struct {
	RegReply   RegisterReply
	Partitions []ShardCopy
}

type DaemonData

type DaemonData struct {
	ServerDetails RemoteServer
	Hashtable     Hashtable
}

type Hashtable

type Hashtable struct {
	Size  int
	Store map[string]string
}

type PutRequest

type PutRequest struct {
	Key     string
	Value   string
	Options map[string]bool
}

type Range

type Range struct {
	Start string
	End   string
}

type Ranges

type Ranges struct {
	Rs []Range
}

type RegisterReply

type RegisterReply struct {
	Coordinators map[uint64]RemoteServer
	Daemons      map[uint64]RemoteServer
	ID           uint64
	Nshards      uint
	Nfailures    uint
}

type RemoteServer

type RemoteServer struct {
	Address     string
	Port        string
	ID          uint64
	Coordinator bool
}

type ServerRange

type ServerRange struct {
	Server RemoteServer
	Range  Range
}

type ShardCopy

type ShardCopy struct {
	Start   uint64
	End     uint64
	Daemons map[uint64]bool
}

type Tuple

type Tuple struct {
	Key   string
	Value string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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