api

package
v0.0.0-...-930013b Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2016 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MAX_RANGE      = 10000
	ALLOCATE_RANGE = MAX_RANGE / 100

	INIT_STATUS = 0
	RW_STATUS   = 1
	RO_STATUS   = 2
	ERR_STATUS  = 3

	GLOBAL_NORMAL_STATUS  = 0
	GLOBAL_TRANSFER_STAUS = 8
)

Variables

View Source
var RouteMap map[string]map[string]http.HandlerFunc

Functions

func BatchAddChunkserver

func BatchAddChunkserver(chunkserverList *[]metadata.Chunkserver) error

func InitAll

func InitAll(host, port, user, passwd, db string)

func LoadChunkserverInfo

func LoadChunkserverInfo() error

func MonitorTicker

func MonitorTicker(intervalSecond int, timeoutSecond int)

Types

type Fid

type Fid struct {
	sync.Mutex
	Begin uint64
	End   uint64
}

Jump to

Keyboard shortcuts

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