mirror of
https://github.com/kvazar-network/keva-stratum.git
synced 2025-01-12 08:08:18 +00:00
36 lines
986 B
Go
36 lines
986 B
Go
package pool
|
|
|
|
type Config struct {
|
|
Address string `json:"address"`
|
|
BypassAddressValidation bool `json:"bypassAddressValidation"`
|
|
BypassShareValidation bool `json:"bypassShareValidation"`
|
|
Stratum Stratum `json:"stratum"`
|
|
Daemon Daemon `json:"daemon"`
|
|
|
|
Threads int `json:"threads"`
|
|
|
|
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"`
|
|
}
|