-
Notifications
You must be signed in to change notification settings - Fork 202
/
pool.go
47 lines (42 loc) · 1.54 KB
/
pool.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
38
39
40
41
42
43
44
45
46
47
package pool
type Config struct {
Address string `json:"address"`
BypassAddressValidation bool `json:"bypassAddressValidation"`
BypassShareValidation bool `json:"bypassShareValidation"`
Stratum Stratum `json:"stratum"`
BlockRefreshInterval string `json:"blockRefreshInterval"`
UpstreamCheckInterval string `json:"upstreamCheckInterval"`
Upstream []Upstream `json:"upstream"`
EstimationWindow string `json:"estimationWindow"`
LuckWindow string `json:"luckWindow"`
LargeLuckWindow string `json:"largeLuckWindow"`
Threads int `json:"threads"`
Frontend Frontend `json:"frontend"`
NewrelicName string `json:"newrelicName"`
NewrelicKey string `json:"newrelicKey"`
NewrelicVerbose bool `json:"newrelicVerbose"`
NewrelicEnabled bool `json:"newrelicEnabled"`
}
type Stratum struct {
Timeout string `json:"timeout"`
Ports []Port `json:"listen"`
}
type Port struct {
Difficulty int64 `json:"diff"`
Host string `json:"host"`
Port int `json:"port"`
MaxConn int `json:"maxConn"`
}
type Upstream struct {
Name string `json:"name"`
Host string `json:"host"`
Port int `json:"port"`
Timeout string `json:"timeout"`
}
type Frontend struct {
Enabled bool `json:"enabled"`
Listen string `json:"listen"`
Login string `json:"login"`
Password string `json:"password"`
HideIP bool `json:"hideIP"`
}