keva-stratum/pool/pool.go

51 lines
1.7 KiB
Go
Raw Normal View History

2015-07-05 09:49:07 +00:00
package pool
type Config struct {
IsKeva bool `json:"isKeva"`
2016-12-06 17:16:57 +00:00
Address string `json:"address"`
BypassAddressValidation bool `json:"bypassAddressValidation"`
BypassShareValidation bool `json:"bypassShareValidation"`
Stratum Stratum `json:"stratum"`
2016-12-06 18:39:39 +00:00
BlockRefreshInterval string `json:"blockRefreshInterval"`
2016-12-06 17:16:57 +00:00
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"`
2015-07-05 09:49:07 +00:00
}
type Stratum struct {
2016-12-06 18:39:39 +00:00
Timeout string `json:"timeout"`
Ports []Port `json:"listen"`
2015-07-05 09:49:07 +00:00
}
type Port struct {
Difficulty int64 `json:"diff"`
2015-07-05 09:49:07 +00:00
Host string `json:"host"`
Port int `json:"port"`
MaxConn int `json:"maxConn"`
}
2016-12-06 17:16:57 +00:00
type Upstream struct {
2019-03-09 06:45:16 +00:00
Name string `json:"name"`
Host string `json:"host"`
Port int `json:"port"`
Timeout string `json:"timeout"`
User string `json:"user"`
Password string `json:"password"`
2015-07-05 09:49:07 +00:00
}
2016-12-06 14:25:07 +00:00
type Frontend struct {
2016-12-07 06:47:15 +00:00
Enabled bool `json:"enabled"`
2016-12-06 14:25:07 +00:00
Listen string `json:"listen"`
Login string `json:"login"`
Password string `json:"password"`
HideIP bool `json:"hideIP"`
}