keva-stratum/pool/pool.go

48 lines
1.5 KiB
Go
Raw Normal View History

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