-
Notifications
You must be signed in to change notification settings - Fork 2
/
env.go
37 lines (29 loc) · 1019 Bytes
/
env.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package job
import (
"github.com/dogefuzz/dogefuzz/config"
"github.com/dogefuzz/dogefuzz/pkg/bus"
"github.com/dogefuzz/dogefuzz/pkg/interfaces"
"go.uber.org/zap"
)
type Env interface {
Logger() *zap.Logger
Client() interfaces.HttpClient
Config() *config.Config
ContractMapper() interfaces.ContractMapper
FunctionMapper() interfaces.FunctionMapper
TaskMapper() interfaces.TaskMapper
TransactionMapper() interfaces.TransactionMapper
ContractRepo() interfaces.ContractRepo
FunctionRepo() interfaces.FunctionRepo
TaskRepo() interfaces.TaskRepo
TransactionRepo() interfaces.TransactionRepo
TaskService() interfaces.TaskService
TransactionService() interfaces.TransactionService
TaskInputRequestTopic() interfaces.Topic[bus.TaskInputRequestEvent]
TaskFinishTopic() interfaces.Topic[bus.TaskFinishEvent]
TasksCheckerJob() interfaces.CronJob
TransactionsCheckerJob() interfaces.CronJob
TransactionsTimeoutCheckerJob() interfaces.CronJob
Deployer() interfaces.Deployer
Agent() interfaces.Agent
}