mirror of
https://github.com/go-gost/core.git
synced 2026-10-19 16:16:17 +00:00
docs(chain/node,observer/stats): fix doc comment formatting, clarify Stats.Reset, add RewriteRequestBody field
This commit is contained in:
+3
-1
@@ -30,7 +30,7 @@ type HTTPURLRewriteSetting struct {
|
||||
Replacement string
|
||||
}
|
||||
|
||||
// HTTPBodyRewriteSettings defines an HTTP response body rewrite rule.
|
||||
// HTTPBodyRewriteSettings defines an HTTP body rewrite rule.
|
||||
type HTTPBodyRewriteSettings struct {
|
||||
// Type is the MIME type to match, e.g. "text/html".
|
||||
Type string
|
||||
@@ -54,6 +54,8 @@ type HTTPNodeSettings struct {
|
||||
RewriteURL []HTTPURLRewriteSetting
|
||||
// RewriteResponseBody holds the response body rewrite rules.
|
||||
RewriteResponseBody []HTTPBodyRewriteSettings
|
||||
// RewriteRequestBody holds the request body rewrite rules.
|
||||
RewriteRequestBody []HTTPBodyRewriteSettings
|
||||
}
|
||||
|
||||
// TLSNodeSettings holds TLS configuration for a node.
|
||||
|
||||
@@ -27,6 +27,6 @@ type Stats interface {
|
||||
Get(kind Kind) uint64
|
||||
// IsUpdated reports whether any stat has changed since the last Reset.
|
||||
IsUpdated() bool
|
||||
// Reset clears the IsUpdated flag.
|
||||
// Reset clears all counters to zero and resets the IsUpdated flag.
|
||||
Reset()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user