You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
1.5 KiB
48 lines
1.5 KiB
10 years ago
|
package pool
|
||
|
|
||
|
type Config struct {
|
||
8 years ago
|
Address string `json:"address"`
|
||
|
BypassAddressValidation bool `json:"bypassAddressValidation"`
|
||
|
BypassShareValidation bool `json:"bypassShareValidation"`
|
||
|
Stratum Stratum `json:"stratum"`
|
||
8 years ago
|
BlockRefreshInterval string `json:"blockRefreshInterval"`
|
||
8 years ago
|
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"`
|
||
10 years ago
|
}
|
||
|
|
||
|
type Stratum struct {
|
||
8 years ago
|
Timeout string `json:"timeout"`
|
||
|
Ports []Port `json:"listen"`
|
||
10 years ago
|
}
|
||
|
|
||
|
type Port struct {
|
||
|
Host string `json:"host"`
|
||
|
Port int `json:"port"`
|
||
|
Difficulty int64 `json:"diff"`
|
||
|
MaxConn int `json:"maxConn"`
|
||
|
}
|
||
|
|
||
8 years ago
|
type Upstream struct {
|
||
|
Name string `json:"name"`
|
||
10 years ago
|
Host string `json:"host"`
|
||
|
Port int `json:"port"`
|
||
|
Timeout string `json:"timeout"`
|
||
|
}
|
||
8 years ago
|
|
||
|
type Frontend struct {
|
||
8 years ago
|
Enabled bool `json:"enabled"`
|
||
8 years ago
|
Listen string `json:"listen"`
|
||
|
Login string `json:"login"`
|
||
|
Password string `json:"password"`
|
||
|
HideIP bool `json:"hideIP"`
|
||
|
}
|