heartbeat

package
v0.0.0-...-c2c101f Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HeartBeatTask

type HeartBeatTask struct {
	Store        *storage.YigFsStorage
	StopTaskChan chan struct{}

	HeartBeatMap *common.ConcurrentMap
	// contains filtered or unexported fields
}

func NewHeartBeat

func NewHeartBeat(store *storage.YigFsStorage) (resp *HeartBeatTask, err error)

func (*HeartBeatTask) CheckAndInsertMachine

func (h *HeartBeatTask) CheckAndInsertMachine(req *types.GetIncompleteUploadSegsStore)

func (*HeartBeatTask) InsertOrUpdateHeartBeatMsg

func (h *HeartBeatTask) InsertOrUpdateHeartBeatMsg(msg *types.GetIncompleteUploadSegsStore)

func (*HeartBeatTask) RunHeartBeatTask

func (h *HeartBeatTask) RunHeartBeatTask()

func (*HeartBeatTask) Stop

func (h *HeartBeatTask) Stop()

Jump to

Keyboard shortcuts

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