Documentation ¶
Index ¶
Constants ¶
View Source
const ( INT = model.TaskStateInit DSP = model.TaskStateDispatch DEY = model.TaskStateDelay SUB = model.TaskStateSubmit RSB = model.TaskStateRscSb CLO = model.TaskStateClosed LTD = model.LogTypeTaskDispatch )
各种状态简写
Variables ¶
View Source
var ( ErrTaskDuplicate = errors.New("重复任务") ErrTaskFlowInvalid = errors.New("流程失效") ErrTaskResourceInvalid = errors.New("资源失效") ErrInvalidMsg = errors.New("无效消息") ErrHandlerMiss = errors.New("handler NotFound") )
ERROR
View Source
var (
ErrMangaNoIndex = errors.New("漫画无图")
)
ERROR
Functions ¶
This section is empty.
Types ¶
type RscHandler ¶
type RscHandler interface { CheckMessage(json.RawMessage) (interface{}, error) HandleMessage(context.Context, interface{}) error }
RscHandler .
type Service ¶
type Service struct { // cache Cache // contains filtered or unexported fields }
Service struct
func (*Service) DebugCache ¶
DebugCache .
type TaskHandler ¶
type TaskHandler interface { CheckMessage(*databus.Message) (interface{}, error) HandleMessage(context.Context, interface{}) error }
TaskHandler .
type WeightManager ¶
type WeightManager struct {
// contains filtered or unexported fields
}
WeightManager weight manager
func NewWeightManager ¶
func NewWeightManager(s *Service, opt *model.WeightOPT, key string) (wm *WeightManager)
NewWeightManager new
Click to show internal directories.
Click to hide internal directories.