35 lines
922 B
Go
Raw Normal View History

2015-07-05 14:49:07 +05:00
package pool
type Config struct {
2016-08-07 07:05:45 +05:00
Address string `json:"address"`
BypassAddressValidation bool `json:"bypassAddressValidation"`
Stratum Stratum `json:"stratum"`
Daemon Daemon `json:"daemon"`
2015-07-05 14:49:07 +05:00
2016-08-07 08:05:23 +05:00
Threads int `json:"threads"`
2015-07-05 14:49:07 +05:00
NewrelicName string `json:"newrelicName"`
NewrelicKey string `json:"newrelicKey"`
NewrelicVerbose bool `json:"newrelicVerbose"`
NewrelicEnabled bool `json:"newrelicEnabled"`
}
type Stratum struct {
Timeout string `json:"timeout"`
BlockRefreshInterval string `json:"blockRefreshInterval"`
Ports []Port `json:"listen"`
}
type Port struct {
Host string `json:"host"`
Port int `json:"port"`
Difficulty int64 `json:"diff"`
MaxConn int `json:"maxConn"`
}
type Daemon struct {
Host string `json:"host"`
Port int `json:"port"`
Timeout string `json:"timeout"`
}