{"modulePath":"github.com/infinitbyte/gopa","version":"v0.11.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package dispatch\n\n## Types\n\n```go\ntype DispatchConfig struct {\n\tFailedTaskEnabled       bool  `config:\"failure_retry\"`\n\tNewTaskEnabled          bool  `config:\"new_task\"`\n\tUpdateTaskEnabled       bool  `config:\"update_task\"`\n\tMaxConcurrentFetchTasks int64 `config:\"max_concurrent_fetch_tasks\"`\n\tFetchSize               int   `config:\"fetch_size\"`\n\tGetHostConfigByUrl      bool  `config:\"get_host_config_by_url\"`\n}\n```\n\n```go\ntype DispatchModule struct {\n}\n```\nDispatchModule handle task dispatch, include new task and update task\n\n```go\nfunc (module DispatchModule) Name() string\n```\nName return Dispatch\n\n```go\nfunc (module DispatchModule) Setup(cfg *cfg.Config)\n```\nStart dispatch module\n\n```go\nfunc (module DispatchModule) Start() error\n```\n\n```go\nfunc (module DispatchModule) Stop() error\n```\nStop dispatch module\n\n","path":"github.com/infinitbyte/gopa/plugins/dispatch","name":"dispatch","synopsis":"","isRedistributable":true}
