apiserver

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: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LimitCSNormalSize = 2
	SUCCESS           = ""
	VERSION1          = "v1"
	VERSION2          = "v2"
)

Variables

View Source
var (
	MasterUrl  string
	MasterPort string
	Ip         string
	Port       int
	HttpsPort  int
	Router     *mux.Router
	Running    bool
	Mu         sync.Mutex

	LimitNum         int
	ConnPoolCapacity int

	MetadbIp       string
	MetadbPort     int
	MetadbUser     string
	MetadbPassword string
	MetaDatabase   string
)

Functions

func DeleteFile

func DeleteFile(ctx *macaron.Context, log *logs.BeeLogger) (int, []byte)

func DownloadFile

func DownloadFile(ctx *macaron.Context, log *logs.BeeLogger) (int, []byte)

func GetChunkServerGroups

func GetChunkServerGroups() *chunkserver.ChunkServerGroups

func GetChunkServerInfo

func GetChunkServerInfo() error

func GetChunkServerInfoTicker

func GetChunkServerInfoTicker()

func GetFidRange

func GetFidRange(mergeWait bool) error

func GetFidRangeTicker

func GetFidRangeTicker()

func GetFileInfo

func GetFileInfo(ctx *macaron.Context, log *logs.BeeLogger) (int, []byte)

func InitAPI

func InitAPI() error

func ReplaceChunkServerGroups

func ReplaceChunkServerGroups(newGroups *chunkserver.ChunkServerGroups)

func ReplaceConnPoolsAndChunkServerGroups

func ReplaceConnPoolsAndChunkServerGroups(newConnectionPool *chunkserver.ChunkServerConnectionPool, newGroups *chunkserver.ChunkServerGroups)

func UploadFile

func UploadFile(ctx *macaron.Context, log *logs.BeeLogger) (int, []byte)

Types

This section is empty.

Directories

Path Synopsis
Package pools provides functionality to manage and reuse resources like connections.
Package pools provides functionality to manage and reuse resources like connections.

Jump to

Keyboard shortcuts

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