client

package
v0.0.0-...-e6e0533 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2014 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(key string, result *interface{}, executionLimit, expire time.Duration, getter func()) error

Types

type Configuration

type Configuration struct {
	Nodes      []string
	CheckLimit int
	HostAddr   string
}

type DataOwnerInfo

type DataOwnerInfo struct {
	Id           int
	Addr         string
	HasValue     bool
	ItemsInCache int
}

Information about node, which owns requested data

type Request

type Request struct {
	Id        int
	Key       string
	TimeLimit time.Time
	Return    chan interface{}
	LocOwner  *DataOwnerInfo
	Start     time.Time
	NodeCount int
}

Information about request (Task)

Jump to

Keyboard shortcuts

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