Documentation ¶
Index ¶
- Constants
- func CheckPredecessorCommand() string
- func ComputeId(input string) uint32
- func CreateRingCommand() string
- func Debug(log string, args ...string)
- func FindRingPredecessorCommand() string
- func FindRingSuccessorCommand(id uint32, replyTo string) string
- func FixRingFingersCommand() string
- func GetCommand(key string, replyTo string) string
- func GetRandomPort() int
- func InitRingFingersCommand() string
- func IsBetween(start uint32, end uint32, val uint32) bool
- func JoinRingCommand(sponsoringNode string) string
- func LeaveRingCommand(mode string) string
- func ListItemsCommand(replyTo string) string
- func NotifyOrderlyLeaveCommand(leaver uint32, pred *uint32, succ *uint32) string
- func ParseToUInt32(input string) (uint32, error)
- func PingCommand() string
- func Pop(msg []string) ([]string, []string, error)
- func PutCommand(key string, value string, replyTo string) string
- func RemoveCommand(key string, replyTo string) string
- func RingNotifyCommand(id uint32, replyTo string) string
- func SendMessage(msg string, address string) (string, error)
- func SetId(socket *zmq.Socket)
- func StabilizeRingCommand() string
Constants ¶
View Source
const ERROR_MSG = "NORESPONSE"
View Source
const Localhost = "127.0.0.1"
View Source
const MaxPort = 47808
View Source
const MinPort = 1025
Inclusive
Variables ¶
This section is empty.
Functions ¶
func CheckPredecessorCommand ¶
func CheckPredecessorCommand() string
func CreateRingCommand ¶
func CreateRingCommand() string
func FindRingPredecessorCommand ¶
func FindRingPredecessorCommand() string
func FindRingSuccessorCommand ¶
{"do": "find-ring-successor", "id": id, "reply-to": address}
func FixRingFingersCommand ¶
func FixRingFingersCommand() string
func GetCommand ¶
func GetRandomPort ¶
func GetRandomPort() int
func InitRingFingersCommand ¶
func InitRingFingersCommand() string
func JoinRingCommand ¶
func LeaveRingCommand ¶
func ListItemsCommand ¶
func ParseToUInt32 ¶
func PingCommand ¶
func PingCommand() string
func RemoveCommand ¶
func RingNotifyCommand ¶
func StabilizeRingCommand ¶
func StabilizeRingCommand() string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.