-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
32 changed files
with
342 additions
and
341 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,7 @@ _dev | |
/storage | ||
/tmp | ||
/rpmbuild | ||
/src | ||
|
||
# Architecture specific extensions/prefixes | ||
*.[568vq] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
gopkg.in/webnice/job.v1/event | ||
gopkg.in/webnice/job.v1/pool | ||
gopkg.in/webnice/job.v1/types | ||
gopkg.in/webnice/job.v1/job | ||
github.com/webnice/job/v2/event | ||
github.com/webnice/job/v2/pool | ||
github.com/webnice/job/v2/types | ||
github.com/webnice/job/v2/job |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,27 @@ | ||
package event | ||
|
||
const ( | ||
// ECancel Событие остановки всех запущенных процессов | ||
// ECancel Событие остановки всех запущенных процессов. | ||
ECancel = Operation(`Cancel`) | ||
|
||
// ERestartProcess Событие перезапуска процесса завершившегося без ошибки | ||
// ERestartProcess Событие перезапуска процесса завершившегося без ошибки. | ||
ERestartProcess = Operation(`Restart process`) | ||
|
||
// EProcessFatality Произошла фатальная ошибка, продолжение работы не возможно | ||
// EProcessFatality Произошла фатальная ошибка, продолжение работы невозможно. | ||
EProcessFatality = Operation(`A fatal error has occurred, the continuation of the work is not possible`) | ||
|
||
// EOnError Событие ошибки | ||
// EOnError Событие ошибки. | ||
EOnError = Operation(`Process ends with error`) | ||
|
||
// ECancelError Вызов Cancel() завершился ошибкой | ||
// ECancelError Вызов Cancel() завершился ошибкой. | ||
ECancelError = Operation(`Call cancel function ends with error`) | ||
|
||
// EProcessStarted Событие запуска процесса | ||
// EProcessStarted Событие запуска процесса. | ||
EProcessStarted = Operation(`Process has started successfully`) | ||
|
||
// EProcessStoped Событие остановки процесса | ||
EProcessStoped = Operation(`Process has stopped successfully`) | ||
// EProcessStopped Событие остановки процесса. | ||
EProcessStopped = Operation(`Process has stopped successfully`) | ||
|
||
// EStartProcess Событие запуска процесса | ||
// EStartProcess Событие запуска процесса. | ||
EStartProcess = Operation(`Start process`) | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
package event | ||
|
||
// Event Событие | ||
// Event Событие. | ||
type Event struct { | ||
// SourceID Идентификатор процесса создавшего событие | ||
// SourceID Идентификатор процесса создавшего событие. | ||
SourceID string | ||
|
||
// TargetID Идентификатор процесса назначения события, если пусто - все процессы | ||
// TargetID Идентификатор процесса назначения события, если пусто - все процессы. | ||
TargetID string | ||
|
||
// Act Действие которое необходимо выполнить, либо произошедная смена состояния | ||
// Act Действие которое необходимо выполнить, либо произошедшая смена состояния. | ||
Act Operation | ||
|
||
// Err Событие ошибки | ||
// Err Событие ошибки. | ||
Err error | ||
} | ||
|
||
// Operation type | ||
// Operation type. | ||
type Operation string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module github.com/webnice/job/v2 | ||
|
||
go 1.15 | ||
go 1.18 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +0,0 @@ | ||
github.com/webnice/lv2 v0.0.0-20201212082251-996f95a7bf70 h1:/QcqM1hAVFj8yPgXkseyWZ+iMn0noLY7KPS6kEvvT5c= | ||
github.com/webnice/lv2 v0.0.0-20201212082251-996f95a7bf70/go.mod h1:Gm8zgr40Vks7dYY1VIXLoIYFf3yqpchAA5fHnAODt5k= | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.