Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
Mirrored from https://github.com/Slazee/caddy.git
Synced Nov 12, 15:45 UTC
fix struct names (#6151)
Signed-off-by: thirdkeyword <fliterdashen@gmail.com>
huajin tong committed
Mar 6, 2024 at 21:53 UTC
277472d0817c04ba137bdb34f17d2bbbf2565403
3 files changed
+6
-6
modules/caddyhttp/celmatcher.go
+4
-4
@@ -381,24 +381,24 @@ func CELMatcherImpl(macroName, funcName string, matcherDataTypes []*cel.Type, fa
381
type CELMatcherFactory func(data ref.Val) (RequestMatcher, error)
382
383
// matcherCELLibrary is a simplistic configurable cel.Library implementation.
384
-type matcherCELLibary struct {
384
+type matcherCELLibrary struct {
385
envOptions []cel.EnvOption
386
programOptions []cel.ProgramOption
387
}
388
389
// NewMatcherCELLibrary creates a matcherLibrary from option setes.
390
func NewMatcherCELLibrary(envOptions []cel.EnvOption, programOptions []cel.ProgramOption) cel.Library {
391
- return &matcherCELLibary{
391
+ return &matcherCELLibrary{
392
envOptions: envOptions,
393
programOptions: programOptions,
394
}
395
}
396
397
-func (lib *matcherCELLibary) CompileOptions() []cel.EnvOption {
397
+func (lib *matcherCELLibrary) CompileOptions() []cel.EnvOption {
398
return lib.envOptions
399
}
400
401
-func (lib *matcherCELLibary) ProgramOptions() []cel.ProgramOption {
401
+func (lib *matcherCELLibrary) ProgramOptions() []cel.ProgramOption {
402
return lib.programOptions
403
}
404
modules/caddyhttp/reverseproxy/admin.go
+1
-1
@@ -32,7 +32,7 @@ func init() {
32
// reverse proxy upstreams in the pool.
33
type adminUpstreams struct{}
34
35
-// upstreamResults holds the status of a particular upstream
35
+// upstreamStatus holds the status of a particular upstream
36
type upstreamStatus struct {
37
Address string `json:"address"`
38
NumRequests int `json:"num_requests"`
modules/caddyhttp/templates/templates.go
+1
-1
@@ -329,7 +329,7 @@ type Templates struct {
329
logger *zap.Logger
330
}
331
332
-// Customfunctions is the interface for registering custom template functions.
332
+// CustomFunctions is the interface for registering custom template functions.
333
type CustomFunctions interface {
334
// CustomTemplateFunctions should return the mapping from custom function names to implementations.
335
CustomTemplateFunctions() template.FuncMap