MCPcopy Create free account

hub / github.com/caddyserver/caddy / functions

Functions2,647 in github.com/caddyserver/caddy

FunctionDisabledTest
(t *testing.T)
modules/caddyhttp/reverseproxy/fastcgi/client_test.go:212
MethodDispenseDirective
DispenseDirective returns a dispenser that contains all the tokens in the server block.
caddyconfig/caddyfile/parse.go:794
MethodEmit
Emit creates and dispatches an event named eventName to all relevant handlers with the metadata data. Events are emitted and propagated synchronously.
modules/caddyevents/app.go:207
MethodEnableH2C
EnableH2C enables H2C (HTTP/2 over Cleartext) on the transport.
modules/caddyhttp/reverseproxy/httptransport.go:601
MethodEnableTLS
EnableTLS enables TLS on the transport.
modules/caddyhttp/reverseproxy/httptransport.go:595
MethodEnabled
(ctx context.Context, level slog.Level)
modules/caddyhttp/logging.go:303
MethodEncodeEntry
EncodeEntry partially implements the zapcore.Encoder interface.
modules/logging/appendencoder.go:322
MethodEncodeEntry
EncodeEntry partially implements the zapcore.Encoder interface.
modules/logging/filterencoder.go:449
MethodEncodeEntry
(zapcore.Entry, []zapcore.Field)
modules/logging/journaldencoder_test.go:147
MethodEncodeEntry
EncodeEntry partially implements the zapcore.Encoder interface.
modules/logging/nopencoder.go:109
MethodEqual
(other ref.Val)
modules/caddyhttp/celmatcher.go:311
FunctionError
Error notifies the SCM that the service is stopping due to a failure, including a service-specific exit code.
notify/notify_windows.go:105
FunctionError
Error is like Status, but sends systemd an error message instead, with an optional errno-style error number.
notify/notify_linux.go:72
FunctionExampleContext_LoadModule
()
context_test.go:22
FunctionExampleContext_LoadModule_array
()
context_test.go:54
FunctionExampleContext_LoadModule_map
()
context_test.go:87
FunctionExiting
Exiting returns true if the process is exiting. EXPERIMENTAL API: subject to change or removal.
caddy.go:845
MethodFakeHash
FakeHash returns a fake hash.
modules/caddyhttp/caddyauth/bcrypt.go:73
MethodFakeHash
FakeHash returns a constant fake hash for timing attacks mitigation.
modules/caddyhttp/caddyauth/argon2id.go:170
FunctionFastAbs
FastAbs is an optimized version of filepath.Abs for Unix systems, since we don't expect the working directory to ever change once Caddy is running. Av
filepath.go:29
FunctionFastAbs
FastAbs can't be optimized on Windows because there are special file paths that require the use of syscall.FullPath to handle correctly. Just call std
filepath_windows.go:25
MethodFilter
Filter filters the input field.
modules/logging/filters.go:71
MethodFilter
Filter filters the input field with the replacement value.
modules/logging/filters.go:140
MethodFilter
Filter renames the input field with the replacement name.
modules/logging/filters.go:869
MethodFloat64
Float64 returns ws as a float64. If ws is not a float value, the zero value is returned.
modules/caddyhttp/caddyhttp.go:210
MethodFloat64
Float64 returns the float64 representation of the flag given by name. It returns false if the flag is not a float64 type. It panics if the flag is not
cmd/main.go:338
MethodFlush
()
modules/caddyhttp/encode/encode_test.go:310
MethodFlushError
FlushError will suppress actual flushing if the response is buffered. See: https://github.com/caddyserver/caddy/issues/6144
modules/caddyhttp/responsewriter.go:241
MethodFlushError
FlushError is an alternative Flush returning an error. It delays the actual Flush of the underlying ResponseWriterWrapper until headers were written.
modules/caddyhttp/encode/encode.go:292
MethodFlushTo
FlushTo flushes buffered logs to the given zap.Logger.
internal/logbuffer.go:69
FunctionFuzzExtractFrontMatter
(data []byte)
modules/caddyhttp/templates/frontmatter_fuzz.go:19
FunctionFuzzFormat
(input []byte)
caddyconfig/caddyfile/formatter_fuzz.go:21
FunctionFuzzParseAddress
(data []byte)
caddyconfig/httpcaddyfile/addresses_fuzz.go:19
FunctionFuzzParseDuration
(data []byte)
duration_fuzz.go:19
FunctionFuzzParseNetworkAddress
(data []byte)
listeners_fuzz.go:19
FunctionFuzzReplacer
(data []byte)
replacer_fuzz.go:19
FunctionFuzzTokenize
(input []byte)
caddyconfig/caddyfile/lexer_fuzz.go:19
MethodGetACMEIssuer
()
modules/caddytls/tls.go:779
MethodGetACMEIssuer
GetACMEIssuer returns iss. This is useful when other types embed ACMEIssuer, because type-asserting them to *ACMEIssuer will fail, but type-asserting
modules/caddytls/acmeissuer.go:354
MethodGetACMEIssuer
()
modules/caddyhttp/autohttps.go:888
MethodGetCertificate
(ctx context.Context, hello *tls.ClientHelloInfo)
modules/caddytls/certmanagers.go:129
MethodGetIPRanges
(_ *http.Request)
modules/caddyhttp/ip_range.go:85
FunctionGetModule
GetModule returns module information from its ID (full name).
modules.go:164
FunctionGetModuleID
GetModuleID returns a module's ID from an instance of its value. If the value is not a module, an empty string will be returned.
modules.go:187
FunctionGetModuleName
GetModuleName returns a module's name (the last label of its ID) from an instance of its value. If the value is not a module, an empty string will be
modules.go:177
MethodGetRenewalInfo
GetRenewalInfo wraps the underlying GetRenewalInfo method and satisfies the CertMagic interface for ARI support.
modules/caddytls/acmeissuer.go:358
MethodGetUpstreams
(r *http.Request)
modules/caddyhttp/reverseproxy/upstreams.go:134
MethodGetUpstreams
(r *http.Request)
modules/caddyhttp/reverseproxy/upstreams.go:357
MethodGetUpstreams
(r *http.Request)
modules/caddyhttp/reverseproxy/upstreams.go:493
MethodHandle
(ctx context.Context, record slog.Record)
modules/caddyhttp/logging.go:307
MethodHasExt
HasExt returns true if the filename has any of the given suffixes, case-insensitive.
modules/caddyhttp/fileserver/browsetplcontext.go:288
MethodHash
Hash hashes plaintext using a random salt.
modules/caddyhttp/caddyauth/bcrypt.go:63
MethodHash
Hash generates an Argon2id hash of the given plaintext using the configured parameters and salt.
modules/caddyhttp/caddyauth/argon2id.go:80
FunctionHomeDir
HomeDir returns the best guess of the current user's home directory from environment variables. If unknown, "." (the current directory) is returned in
storage.go:39
MethodHost
Host returns the hostname portion of the Host header from the HTTP request.
modules/caddyhttp/templates/tplcontext.go:303
MethodHumanTotalFileSize
HumanTotalFileSize returns the total size of all files in the listing as a human-readable string in IEC format (i.e. power of 2 or base 1024).
modules/caddyhttp/fileserver/browsetplcontext.go:304
MethodHumanTotalFileSizeFollowingSymlinks
HumanTotalFileSizeFollowingSymlinks is the same as HumanTotalFileSize except the returned value reflects the size of symlink targets.
modules/caddyhttp/fileserver/browsetplcontext.go:310
MethodInitialize
Initialize sets the configuration for s and returns the starting keys.
modules/caddytls/standardstek/stek.go:45
MethodInitialize
Initialize sets the configuration for s and returns the starting keys.
modules/caddytls/distributedstek/distributedstek.go:96
FunctionInstanceID
InstanceID returns the UUID for this instance, and generates one if it does not already exist. The UUID is stored in the local data directory, regardl
caddy.go:922
MethodIssue
(ctx context.Context, csr *x509.CertificateRequest)
admin_test.go:887
MethodIssue
Issue obtains a certificate for the given csr.
modules/caddytls/zerosslissuer.go:113
MethodIssue
Issue obtains a certificate for the given csr.
modules/caddytls/acmeissuer.go:336
MethodIssuerKey
()
admin_test.go:897
MethodIssuerKey
IssuerKey returns the unique issuer key for the configured CA endpoint.
modules/caddytls/zerosslissuer.go:118
MethodIssuerKey
IssuerKey returns the unique issuer key for the configured CA endpoint.
modules/caddytls/internalissuer.go:98
MethodLen
()
modules/caddyhttp/fileserver/browsetplcontext.go:334
MethodLen
()
modules/caddyhttp/fileserver/browsetplcontext.go:346
MethodLen
()
modules/caddyhttp/fileserver/browsetplcontext.go:370
MethodLess
(i, j int)
modules/caddyhttp/fileserver/browsetplcontext.go:330
MethodLess
(i, j int)
modules/caddyhttp/fileserver/browsetplcontext.go:337
MethodLess
(i, j int)
modules/caddyhttp/fileserver/browsetplcontext.go:349
MethodLess
(i, j int)
modules/caddyhttp/fileserver/browsetplcontext.go:372
MethodListenAll
ListenAll calls Listen for all addresses represented by this struct, i.e. all ports in the range. (If the address doesn't use ports or has 1 port only
listeners.go:64
FunctionListenerUsage
ListenerUsage returns the current usage count of the given listener address.
listeners.go:510
MethodListeners
Listeners returns the server's listeners. These are active listeners, so calling Accept() or Close() on them will probably break things. They are made
modules/caddyhttp/server.go:975
MethodLoadCertificates
LoadCertificates returns the certificates to be loaded by fl.
modules/caddytls/fileloader.go:80
MethodLoadCertificates
LoadCertificates loads all the certificates+keys in the directories listed in fl from all files ending with .pem. This method of loading certificates
modules/caddytls/folderloader.go:63
MethodLoadCertificates
LoadCertificates returns the certificates to be loaded by sl.
modules/caddytls/storageloader.go:76
MethodLoadCertificates
LoadCertificates returns the certificates contained in pl.
modules/caddytls/pemloader.go:75
MethodLoadConfig
LoadConfig loads a Caddy config.
caddyconfig/httploader.go:84
MethodLoadLeafCertificates
LoadLeafCertificates returns the certificates to be loaded by sl.
modules/caddytls/leafstorageloader.go:85
MethodLookupTxt
(name string)
modules/caddypki/acmeserver/acmeserver.go:362
FunctionMain
Main implements the main function of the caddy command. Call this if Caddy is to be the main() of your program.
cmd/main.go:66
MethodMarshalJSON
()
modules/caddytls/certselection.go:192
MethodMarshalJSON
MarshalJSON satisfies json.Marshaler by marshaling m's raw matcher sets.
modules/caddyhttp/matchers.go:1405
MethodMarshalJSON
MarshalJSON marshals m's expression.
modules/caddyhttp/celmatcher.go:88
MethodMarshalJSON
MarshalJSON marshals was a boolean if true or false, a number if an integer, or a string otherwise.
modules/caddyhttp/caddyhttp.go:188
MethodMarshalJSON
MarshalJSON satisfies json.Marshaler.
modules/logging/filewriter.go:65
MethodMarshalLogArray
(enc zapcore.ArrayEncoder)
admin.go:1420
MethodMarshalLogArray
MarshalLogArray satisfies the zapcore.ArrayMarshaler interface.
internal/logmarshalers.go:40
MethodMarshalLogObject
MarshalLogObject satisfies the zapcore.ObjectMarshaler interface.
modules/caddyhttp/marshalers.go:35
MethodMarshalLogObject
MarshalLogObject satisfies the zapcore.ObjectMarshaler interface.
modules/caddyhttp/marshalers.go:74
MethodMarshalLogObject
(enc zapcore.ObjectEncoder)
modules/caddyhttp/reverseproxy/fastcgi/fastcgi.go:488
MethodMarshalLogObject
MarshalLogObject implements the zapcore.ObjectMarshaler interface.
modules/logging/filterencoder.go:483
MethodMarshalLogObject
MarshalLogObject satisfies the zapcore.ObjectMarshaler interface.
internal/logmarshalers.go:20
MethodMarshalText
MarshalText implements the text marshaller method.
modules/caddyhttp/proxyprotocol/policy.go:60
MethodMatch
Match matches hello based on SNI.
modules/caddytls/matchers.go:59
MethodMatch
Match returns true if input matches the compiled regular expression in m. It sets values on the replacer repl associated with capture groups, using th
modules/caddytls/matchers.go:199
MethodMatch
Match returns true if r matches m.
modules/caddyhttp/ip_matchers.go:146
← previousnext →1,501–1,600 of 2,647, ranked by callers