Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/caddyserver/caddy
/ functions
Functions
2,647 in github.com/caddyserver/caddy
⨍
Functions
2,647
◇
Types & classes
525
Function
DisabledTest
(t *testing.T)
modules/caddyhttp/reverseproxy/fastcgi/client_test.go:212
Method
DispenseDirective
DispenseDirective returns a dispenser that contains all the tokens in the server block.
caddyconfig/caddyfile/parse.go:794
Method
Emit
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
Method
EnableH2C
EnableH2C enables H2C (HTTP/2 over Cleartext) on the transport.
modules/caddyhttp/reverseproxy/httptransport.go:601
Method
EnableTLS
EnableTLS enables TLS on the transport.
modules/caddyhttp/reverseproxy/httptransport.go:595
Method
Enabled
(ctx context.Context, level slog.Level)
modules/caddyhttp/logging.go:303
Method
EncodeEntry
EncodeEntry partially implements the zapcore.Encoder interface.
modules/logging/appendencoder.go:322
Method
EncodeEntry
EncodeEntry partially implements the zapcore.Encoder interface.
modules/logging/filterencoder.go:449
Method
EncodeEntry
(zapcore.Entry, []zapcore.Field)
modules/logging/journaldencoder_test.go:147
Method
EncodeEntry
EncodeEntry partially implements the zapcore.Encoder interface.
modules/logging/nopencoder.go:109
Method
Equal
(other ref.Val)
modules/caddyhttp/celmatcher.go:311
Function
Error
Error notifies the SCM that the service is stopping due to a failure, including a service-specific exit code.
notify/notify_windows.go:105
Function
Error
Error is like Status, but sends systemd an error message instead, with an optional errno-style error number.
notify/notify_linux.go:72
Function
ExampleContext_LoadModule
()
context_test.go:22
Function
ExampleContext_LoadModule_array
()
context_test.go:54
Function
ExampleContext_LoadModule_map
()
context_test.go:87
Function
Exiting
Exiting returns true if the process is exiting. EXPERIMENTAL API: subject to change or removal.
caddy.go:845
Method
FakeHash
FakeHash returns a fake hash.
modules/caddyhttp/caddyauth/bcrypt.go:73
Method
FakeHash
FakeHash returns a constant fake hash for timing attacks mitigation.
modules/caddyhttp/caddyauth/argon2id.go:170
Function
FastAbs
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
Function
FastAbs
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
Method
Filter
Filter filters the input field.
modules/logging/filters.go:71
Method
Filter
Filter filters the input field with the replacement value.
modules/logging/filters.go:140
Method
Filter
Filter renames the input field with the replacement name.
modules/logging/filters.go:869
Method
Float64
Float64 returns ws as a float64. If ws is not a float value, the zero value is returned.
modules/caddyhttp/caddyhttp.go:210
Method
Float64
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
Method
Flush
()
modules/caddyhttp/encode/encode_test.go:310
Method
FlushError
FlushError will suppress actual flushing if the response is buffered. See: https://github.com/caddyserver/caddy/issues/6144
modules/caddyhttp/responsewriter.go:241
Method
FlushError
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
Method
FlushTo
FlushTo flushes buffered logs to the given zap.Logger.
internal/logbuffer.go:69
Function
FuzzExtractFrontMatter
(data []byte)
modules/caddyhttp/templates/frontmatter_fuzz.go:19
Function
FuzzFormat
(input []byte)
caddyconfig/caddyfile/formatter_fuzz.go:21
Function
FuzzParseAddress
(data []byte)
caddyconfig/httpcaddyfile/addresses_fuzz.go:19
Function
FuzzParseDuration
(data []byte)
duration_fuzz.go:19
Function
FuzzParseNetworkAddress
(data []byte)
listeners_fuzz.go:19
Function
FuzzReplacer
(data []byte)
replacer_fuzz.go:19
Function
FuzzTokenize
(input []byte)
caddyconfig/caddyfile/lexer_fuzz.go:19
Method
GetACMEIssuer
()
modules/caddytls/tls.go:779
Method
GetACMEIssuer
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
Method
GetACMEIssuer
()
modules/caddyhttp/autohttps.go:888
Method
GetCertificate
(ctx context.Context, hello *tls.ClientHelloInfo)
modules/caddytls/certmanagers.go:129
Method
GetIPRanges
(_ *http.Request)
modules/caddyhttp/ip_range.go:85
Function
GetModule
GetModule returns module information from its ID (full name).
modules.go:164
Function
GetModuleID
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
Function
GetModuleName
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
Method
GetRenewalInfo
GetRenewalInfo wraps the underlying GetRenewalInfo method and satisfies the CertMagic interface for ARI support.
modules/caddytls/acmeissuer.go:358
Method
GetUpstreams
(r *http.Request)
modules/caddyhttp/reverseproxy/upstreams.go:134
Method
GetUpstreams
(r *http.Request)
modules/caddyhttp/reverseproxy/upstreams.go:357
Method
GetUpstreams
(r *http.Request)
modules/caddyhttp/reverseproxy/upstreams.go:493
Method
Handle
(ctx context.Context, record slog.Record)
modules/caddyhttp/logging.go:307
Method
HasExt
HasExt returns true if the filename has any of the given suffixes, case-insensitive.
modules/caddyhttp/fileserver/browsetplcontext.go:288
Method
Hash
Hash hashes plaintext using a random salt.
modules/caddyhttp/caddyauth/bcrypt.go:63
Method
Hash
Hash generates an Argon2id hash of the given plaintext using the configured parameters and salt.
modules/caddyhttp/caddyauth/argon2id.go:80
Function
HomeDir
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
Method
Host
Host returns the hostname portion of the Host header from the HTTP request.
modules/caddyhttp/templates/tplcontext.go:303
Method
HumanTotalFileSize
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
Method
HumanTotalFileSizeFollowingSymlinks
HumanTotalFileSizeFollowingSymlinks is the same as HumanTotalFileSize except the returned value reflects the size of symlink targets.
modules/caddyhttp/fileserver/browsetplcontext.go:310
Method
Initialize
Initialize sets the configuration for s and returns the starting keys.
modules/caddytls/standardstek/stek.go:45
Method
Initialize
Initialize sets the configuration for s and returns the starting keys.
modules/caddytls/distributedstek/distributedstek.go:96
Function
InstanceID
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
Method
Issue
(ctx context.Context, csr *x509.CertificateRequest)
admin_test.go:887
Method
Issue
Issue obtains a certificate for the given csr.
modules/caddytls/zerosslissuer.go:113
Method
Issue
Issue obtains a certificate for the given csr.
modules/caddytls/acmeissuer.go:336
Method
IssuerKey
()
admin_test.go:897
Method
IssuerKey
IssuerKey returns the unique issuer key for the configured CA endpoint.
modules/caddytls/zerosslissuer.go:118
Method
IssuerKey
IssuerKey returns the unique issuer key for the configured CA endpoint.
modules/caddytls/internalissuer.go:98
Method
Len
()
modules/caddyhttp/fileserver/browsetplcontext.go:334
Method
Len
()
modules/caddyhttp/fileserver/browsetplcontext.go:346
Method
Len
()
modules/caddyhttp/fileserver/browsetplcontext.go:370
Method
Less
(i, j int)
modules/caddyhttp/fileserver/browsetplcontext.go:330
Method
Less
(i, j int)
modules/caddyhttp/fileserver/browsetplcontext.go:337
Method
Less
(i, j int)
modules/caddyhttp/fileserver/browsetplcontext.go:349
Method
Less
(i, j int)
modules/caddyhttp/fileserver/browsetplcontext.go:372
Method
ListenAll
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
Function
ListenerUsage
ListenerUsage returns the current usage count of the given listener address.
listeners.go:510
Method
Listeners
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
Method
LoadCertificates
LoadCertificates returns the certificates to be loaded by fl.
modules/caddytls/fileloader.go:80
Method
LoadCertificates
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
Method
LoadCertificates
LoadCertificates returns the certificates to be loaded by sl.
modules/caddytls/storageloader.go:76
Method
LoadCertificates
LoadCertificates returns the certificates contained in pl.
modules/caddytls/pemloader.go:75
Method
LoadConfig
LoadConfig loads a Caddy config.
caddyconfig/httploader.go:84
Method
LoadLeafCertificates
LoadLeafCertificates returns the certificates to be loaded by sl.
modules/caddytls/leafstorageloader.go:85
Method
LookupTxt
(name string)
modules/caddypki/acmeserver/acmeserver.go:362
Function
Main
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
Method
MarshalJSON
()
modules/caddytls/certselection.go:192
Method
MarshalJSON
MarshalJSON satisfies json.Marshaler by marshaling m's raw matcher sets.
modules/caddyhttp/matchers.go:1405
Method
MarshalJSON
MarshalJSON marshals m's expression.
modules/caddyhttp/celmatcher.go:88
Method
MarshalJSON
MarshalJSON marshals was a boolean if true or false, a number if an integer, or a string otherwise.
modules/caddyhttp/caddyhttp.go:188
Method
MarshalJSON
MarshalJSON satisfies json.Marshaler.
modules/logging/filewriter.go:65
Method
MarshalLogArray
(enc zapcore.ArrayEncoder)
admin.go:1420
Method
MarshalLogArray
MarshalLogArray satisfies the zapcore.ArrayMarshaler interface.
internal/logmarshalers.go:40
Method
MarshalLogObject
MarshalLogObject satisfies the zapcore.ObjectMarshaler interface.
modules/caddyhttp/marshalers.go:35
Method
MarshalLogObject
MarshalLogObject satisfies the zapcore.ObjectMarshaler interface.
modules/caddyhttp/marshalers.go:74
Method
MarshalLogObject
(enc zapcore.ObjectEncoder)
modules/caddyhttp/reverseproxy/fastcgi/fastcgi.go:488
Method
MarshalLogObject
MarshalLogObject implements the zapcore.ObjectMarshaler interface.
modules/logging/filterencoder.go:483
Method
MarshalLogObject
MarshalLogObject satisfies the zapcore.ObjectMarshaler interface.
internal/logmarshalers.go:20
Method
MarshalText
MarshalText implements the text marshaller method.
modules/caddyhttp/proxyprotocol/policy.go:60
Method
Match
Match matches hello based on SNI.
modules/caddytls/matchers.go:59
Method
Match
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
Method
Match
Match returns true if r matches m.
modules/caddyhttp/ip_matchers.go:146
← previous
next →
1,501–1,600 of 2,647, ranked by callers