Skip to content

Commit

Permalink
VarDiff is planned Update config.go
Browse files Browse the repository at this point in the history
  • Loading branch information
yuriy0803 authored Dec 18, 2024
1 parent 85134bc commit 89070f5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions proxy/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ type Proxy struct {
Debug bool `json:"debug"`

Stratum Stratum `json:"stratum"`
VarDiff VarDiff `json:"varDiff"`
}

type Stratum struct {
Expand All @@ -67,6 +68,14 @@ type Stratum struct {
KeyFile string `json:"keyFile"`
}

type VarDiff struct {
MinDiff int64 `json:"minDiff"`
MaxDiff int64 `json:"maxDiff"`
TargetTime float64 `json:"targetTime"`
VariancePercent int `json:"variancePercent"`
MaxJump int64 `json:"maxJump"`
}

type Upstream struct {
Name string `json:"name"`
Url string `json:"url"`
Expand Down

0 comments on commit 89070f5

Please sign in to comment.