service

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IRecoveryService

type IRecoveryService interface {
	AddWorkerMsg(workerId string, msgId string, score int64, msgDetail string) bool
	DelWorkerMsg(workerId string, msgId string, isDelWorkerIdMap bool) bool
	GetWorkerMsgByShard(workerId string, start int, end int) (map[string]string, error)
	GetWorkerIdByMsgId(msgId string) string
	GetWorkerMsgByMsgId(workerId string, msgId string) (string, error)
	UpdateWorkerMsg(workerId, msgId string, msgDetail interface{}) bool
	GetWorkerMsgByScore(workerId string, startScore uint64, limit int) ([]string, error)
	GetWorkeMsgTotalNum(workerId string) (int64, error)
	GetWorkeMsgNumByTimeRange(workerId string, startTime int64, endTime int64) (int64, error)
}
var RecoveryService IRecoveryService

func NewRecoveryService

func NewRecoveryService(conf config.RedisConfig) IRecoveryService

Jump to

Keyboard shortcuts

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