aboutsummaryrefslogtreecommitdiffhomepage
path: root/modules
diff options
context:
space:
mode:
authorhuajin tong <[email protected]>2024-03-06 21:53:03 +0800
committerGitHub <[email protected]>2024-03-06 13:53:03 +0000
commit277472d0817c04ba137bdb34f17d2bbbf2565403 (patch)
treeb10d850508bae996b94c279254f4800bbcaa5f71 /modules
parent5a4374bea055c49c9c38b6a7d41e43742c137341 (diff)
downloadcaddy-277472d0817c04ba137bdb34f17d2bbbf2565403.tar.gz
caddy-277472d0817c04ba137bdb34f17d2bbbf2565403.zip
fix struct names (#6151)
Signed-off-by: thirdkeyword <[email protected]>
Diffstat (limited to 'modules')
-rw-r--r--modules/caddyhttp/celmatcher.go8
-rw-r--r--modules/caddyhttp/reverseproxy/admin.go2
-rw-r--r--modules/caddyhttp/templates/templates.go2
3 files changed, 6 insertions, 6 deletions
diff --git a/modules/caddyhttp/celmatcher.go b/modules/caddyhttp/celmatcher.go
index 65a0e7afa..376135364 100644
--- a/modules/caddyhttp/celmatcher.go
+++ b/modules/caddyhttp/celmatcher.go
@@ -381,24 +381,24 @@ func CELMatcherImpl(macroName, funcName string, matcherDataTypes []*cel.Type, fa
type CELMatcherFactory func(data ref.Val) (RequestMatcher, error)
// matcherCELLibrary is a simplistic configurable cel.Library implementation.
-type matcherCELLibary struct {
+type matcherCELLibrary struct {
envOptions []cel.EnvOption
programOptions []cel.ProgramOption
}
// NewMatcherCELLibrary creates a matcherLibrary from option setes.
func NewMatcherCELLibrary(envOptions []cel.EnvOption, programOptions []cel.ProgramOption) cel.Library {
- return &matcherCELLibary{
+ return &matcherCELLibrary{
envOptions: envOptions,
programOptions: programOptions,
}
}
-func (lib *matcherCELLibary) CompileOptions() []cel.EnvOption {
+func (lib *matcherCELLibrary) CompileOptions() []cel.EnvOption {
return lib.envOptions
}
-func (lib *matcherCELLibary) ProgramOptions() []cel.ProgramOption {
+func (lib *matcherCELLibrary) ProgramOptions() []cel.ProgramOption {
return lib.programOptions
}
diff --git a/modules/caddyhttp/reverseproxy/admin.go b/modules/caddyhttp/reverseproxy/admin.go
index f64d1ecf0..7e72a4cdb 100644
--- a/modules/caddyhttp/reverseproxy/admin.go
+++ b/modules/caddyhttp/reverseproxy/admin.go
@@ -32,7 +32,7 @@ func init() {
// reverse proxy upstreams in the pool.
type adminUpstreams struct{}
-// upstreamResults holds the status of a particular upstream
+// upstreamStatus holds the status of a particular upstream
type upstreamStatus struct {
Address string `json:"address"`
NumRequests int `json:"num_requests"`
diff --git a/modules/caddyhttp/templates/templates.go b/modules/caddyhttp/templates/templates.go
index 418f09e53..b97093b6f 100644
--- a/modules/caddyhttp/templates/templates.go
+++ b/modules/caddyhttp/templates/templates.go
@@ -329,7 +329,7 @@ type Templates struct {
logger *zap.Logger
}
-// Customfunctions is the interface for registering custom template functions.
+// CustomFunctions is the interface for registering custom template functions.
type CustomFunctions interface {
// CustomTemplateFunctions should return the mapping from custom function names to implementations.
CustomTemplateFunctions() template.FuncMap