repeater

package
v0.0.76 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checker

type Checker func(wr WorkerResult) (bool, error)

Проверка условия завершения

type Config

type Config struct {
	LimitCount int64
	Timeout    time.Duration
	// contains filtered or unexported fields
}

type LimitCountExceedError

type LimitCountExceedError struct {
}

func (*LimitCountExceedError) Error

func (e *LimitCountExceedError) Error() string

type Worker

type Worker func(data interface{}) WorkerResult

Выполняемая функция

func (Worker) Run

func (worker Worker) Run(inData interface{}, checker Checker, config Config) (interface{}, error)

type WorkerResult

type WorkerResult struct {
	OutData interface{}
	Err     error
}

Jump to

Keyboard shortcuts

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