dispatch

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2018 License: Apache-2.0 Imports: 9 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DispatchConfig

type DispatchConfig struct {
	FailedTaskEnabled       bool  `config:"failure_retry"`
	NewTaskEnabled          bool  `config:"new_task"`
	UpdateTaskEnabled       bool  `config:"update_task"`
	MaxConcurrentFetchTasks int64 `config:"max_concurrent_fetch_tasks"`
	FetchSize               int   `config:"fetch_size"`
	GetHostConfigByUrl      bool  `config:"get_host_config_by_url"`
}

type DispatchModule

type DispatchModule struct {
}

DispatchModule handle task dispatch, include new task and update task

func (DispatchModule) Name

func (module DispatchModule) Name() string

Name return Dispatch

func (DispatchModule) Setup

func (module DispatchModule) Setup(cfg *cfg.Config)

Start dispatch module

func (DispatchModule) Start

func (module DispatchModule) Start() error

func (DispatchModule) Stop

func (module DispatchModule) Stop() error

Stop dispatch module

Jump to

Keyboard shortcuts

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