SYMBOL INDEX (3053 symbols across 297 files) FILE: admin.go function init (line 56) | func init() { type AdminConfig (line 69) | type AdminConfig struct method newAdminHandler (line 223) | func (admin *AdminConfig) newAdminHandler(addr NetworkAddress, remote ... method provisionAdminRouters (line 291) | func (admin *AdminConfig) provisionAdminRouters(ctx Context) error { method allowedOrigins (line 315) | func (admin AdminConfig) allowedOrigins(addr NetworkAddress) []*url.URL { type ConfigSettings (line 128) | type ConfigSettings struct type IdentityConfig (line 159) | type IdentityConfig struct method certmagicConfig (line 635) | func (ident *IdentityConfig) certmagicConfig(logger *zap.Logger, makeC... type RemoteAdmin (line 183) | type RemoteAdmin struct method enforceAccessControls (line 691) | func (remote RemoteAdmin) enforceAccessControls(r *http.Request) error { type AdminAccess (line 197) | type AdminAccess struct type AdminPermissions (line 212) | type AdminPermissions struct function replaceLocalAdminServer (line 389) | func replaceLocalAdminServer(cfg *Config, ctx Context) error { function manageIdentity (line 480) | func manageIdentity(ctx Context, cfg *Config) error { function replaceRemoteAdminServer (line 529) | func replaceRemoteAdminServer(ctx Context, cfg *Config) error { method IdentityCredentials (line 672) | func (ctx Context) IdentityCredentials(logger *zap.Logger) ([]tls.Certif... function stopAdminServer (line 748) | func stopAdminServer(srv *http.Server) error { type AdminRouter (line 767) | type AdminRouter interface type AdminRoute (line 772) | type AdminRoute struct type adminHandler (line 777) | type adminHandler struct method ServeHTTP (line 791) | func (h adminHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { method serveHTTP (line 822) | func (h adminHandler) serveHTTP(w http.ResponseWriter, r *http.Request) { method handleError (line 894) | func (h adminHandler) handleError(w http.ResponseWriter, r *http.Reque... method checkHost (line 934) | func (h adminHandler) checkHost(r *http.Request) error { method checkOrigin (line 951) | func (h adminHandler) checkOrigin(r *http.Request) (string, error) { method getOrigin (line 968) | func (h adminHandler) getOrigin(r *http.Request) (string, *url.URL) { method originAllowed (line 985) | func (h adminHandler) originAllowed(origin *url.URL) bool { function etagHasher (line 999) | func etagHasher() hash.Hash { return xxhash.New() } function makeEtag (line 1003) | func makeEtag(path string, hash hash.Hash) string { function handleConfig (line 1015) | func handleConfig(w http.ResponseWriter, r *http.Request) error { function handleConfigID (line 1097) | func handleConfigID(w http.ResponseWriter, r *http.Request) error { function handleStop (line 1133) | func handleStop(w http.ResponseWriter, r *http.Request) error { function unsyncedConfigAccess (line 1151) | func unsyncedConfigAccess(method, path string, body []byte, out io.Write... function RemoveMetaFields (line 1334) | func RemoveMetaFields(rawJSON []byte) []byte { type AdminHandler (line 1351) | type AdminHandler interface type AdminHandlerFunc (line 1356) | type AdminHandlerFunc method ServeHTTP (line 1359) | func (f AdminHandlerFunc) ServeHTTP(w http.ResponseWriter, r *http.Req... type APIError (line 1367) | type APIError struct method Error (line 1373) | func (e APIError) Error() string { function parseAdminListenAddr (line 1382) | func parseAdminListenAddr(addr string, defaultAddr string) (NetworkAddre... function decodeBase64DERCert (line 1401) | func decodeBase64DERCert(certStr string) (*x509.Certificate, error) { type loggableURLArray (line 1409) | type loggableURLArray method MarshalLogArray (line 1411) | func (ua loggableURLArray) MarshalLogArray(enc zapcore.ArrayEncoder) e... function PIDFile (line 1434) | func PIDFile(filename string) error { constant rawConfigKey (line 1461) | rawConfigKey = "config" constant idKey (line 1462) | idKey = "@id" FILE: admin_test.go function TestUnsyncedConfigAccess (line 54) | func TestUnsyncedConfigAccess(t *testing.T) { function TestLoadConcurrent (line 150) | func TestLoadConcurrent(t *testing.T) { type fooModule (line 161) | type fooModule struct method CaddyModule (line 166) | func (fooModule) CaddyModule() ModuleInfo { method Start (line 172) | func (fooModule) Start() error { return nil } method Stop (line 173) | func (fooModule) Stop() error { return nil } function TestETags (line 175) | func TestETags(t *testing.T) { function BenchmarkLoad (line 209) | func BenchmarkLoad(b *testing.B) { function TestAdminHandlerErrorHandling (line 215) | func TestAdminHandlerErrorHandling(t *testing.T) { function initAdminMetrics (line 245) | func initAdminMetrics() { function TestAdminHandlerBuiltinRouteErrors (line 271) | func TestAdminHandlerBuiltinRouteErrors(t *testing.T) { function testGetMetricValue (line 336) | func testGetMetricValue(labels map[string]string) float64 { type mockRouter (line 350) | type mockRouter struct method Routes (line 354) | func (m mockRouter) Routes() []AdminRoute { type mockModule (line 358) | type mockModule struct method CaddyModule (line 362) | func (m *mockModule) CaddyModule() ModuleInfo { function TestNewAdminHandlerRouterRegistration (line 376) | func TestNewAdminHandlerRouterRegistration(t *testing.T) { type mockProvisionableRouter (line 424) | type mockProvisionableRouter struct method Provision (line 430) | func (m *mockProvisionableRouter) Provision(Context) error { type mockProvisionableModule (line 435) | type mockProvisionableModule struct method CaddyModule (line 439) | func (m *mockProvisionableModule) CaddyModule() ModuleInfo { function TestAdminRouterProvisioning (line 454) | func TestAdminRouterProvisioning(t *testing.T) { function TestAllowedOriginsUnixSocket (line 527) | func TestAllowedOriginsUnixSocket(t *testing.T) { function TestReplaceRemoteAdminServer (line 607) | func TestReplaceRemoteAdminServer(t *testing.T) { type mockIssuer (line 738) | type mockIssuer struct method Issue (line 742) | func (m *mockIssuer) Issue(ctx context.Context, csr *x509.CertificateR... method SetConfig (line 748) | func (m *mockIssuer) SetConfig(cfg *certmagic.Config) { method IssuerKey (line 752) | func (m *mockIssuer) IssuerKey() string { type mockIssuerModule (line 756) | type mockIssuerModule struct method CaddyModule (line 760) | func (m *mockIssuerModule) CaddyModule() ModuleInfo { function TestManageIdentity (line 769) | func TestManageIdentity(t *testing.T) { FILE: caddy.go type Config (line 68) | type Config struct type App (line 98) | type App interface function Run (line 104) | func Run(cfg *Config) error { function Load (line 115) | func Load(cfgJSON []byte, forceReload bool) error { function changeConfig (line 159) | func changeConfig(method, path string, input []byte, ifMatchHeader strin... function readConfig (line 281) | func readConfig(path string, out io.Writer) error { function indexConfigObjects (line 291) | func indexConfigObjects(ptr any, configPath string, index map[string]str... function unsyncedDecodeAndRun (line 338) | func unsyncedDecodeAndRun(cfgJSON []byte, allowPersist bool) error { function run (line 420) | func run(newCfg *Config, start bool) (Context, error) { function provisionContext (line 492) | func provisionContext(newCfg *Config, replaceAdminServer bool) (Context,... function ProvisionContext (line 597) | func ProvisionContext(newCfg *Config) (Context, error) { function finishSettingUp (line 602) | func finishSettingUp(ctx Context, cfg *Config) error { type ConfigLoader (line 692) | type ConfigLoader interface function Stop (line 702) | func Stop() error { function unsyncedStop (line 732) | func unsyncedStop(ctx Context) { function Validate (line 754) | func Validate(cfg *Config) error { function exitProcess (line 768) | func exitProcess(ctx context.Context, logger *zap.Logger) { function Exiting (line 853) | func Exiting() bool { return atomic.LoadInt32(exiting) == 1 } function OnExit (line 861) | func OnExit(f func(context.Context)) { type Duration (line 876) | type Duration method UnmarshalJSON (line 879) | func (d *Duration) UnmarshalJSON(b []byte) error { function ParseDuration (line 898) | func ParseDuration(s string) (time.Duration, error) { function InstanceID (line 930) | func InstanceID() (uuid.UUID, error) { function Version (line 1011) | func Version() (simple, full string) { type Event (line 1115) | type Event struct method ID (line 1158) | func (e Event) ID() uuid.UUID { return e.id } method Timestamp (line 1159) | func (e Event) Timestamp() time.Time { return e.ts } method Name (line 1160) | func (e Event) Name() string { return e.name } method Origin (line 1161) | func (e Event) Origin() Module { return e.origin } method CloudEvent (line 1166) | func (e Event) CloudEvent() CloudEvent { function NewEvent (line 1143) | func NewEvent(ctx Context, name string, data map[string]any) (Event, err... type CloudEvent (line 1189) | type CloudEvent struct function ActiveContext (line 1205) | func ActiveContext() Context { type CtxKey (line 1212) | type CtxKey type reloadFromSourceFunc (line 1258) | type reloadFromSourceFunc function SetLastConfig (line 1270) | func SetLastConfig(file, adapter string, fn reloadFromSourceFunc) { function ClearLastConfigIfDifferent (line 1281) | func ClearLastConfigIfDifferent(srcFile, srcAdapter string) { function getLastConfig (line 1289) | func getLastConfig() (file, adapter string, fn reloadFromSourceFunc) { function lastConfigMatches (line 1302) | func lastConfigMatches(srcFile, srcAdapter string) bool { constant ImportPath (line 1337) | ImportPath = "github.com/caddyserver/caddy/v2" FILE: caddy_test.go function TestParseDuration (line 23) | func TestParseDuration(t *testing.T) { function TestEvent_CloudEvent_NilOrigin (line 77) | func TestEvent_CloudEvent_NilOrigin(t *testing.T) { FILE: caddyconfig/caddyfile/adapter.go type Adapter (line 27) | type Adapter struct method Adapt (line 32) | func (a Adapter) Adapt(body []byte, options map[string]any) ([]byte, [... function FormattingDifference (line 69) | func FormattingDifference(filename string, body []byte) (caddyconfig.War... type Unmarshaler (line 106) | type Unmarshaler interface type ServerType (line 111) | type ServerType interface function UnmarshalModule (line 127) | func UnmarshalModule(d *Dispenser, moduleID string) (Unmarshaler, error) { FILE: caddyconfig/caddyfile/dispenser.go type Dispenser (line 29) | type Dispenser struct method Next (line 60) | func (d *Dispenser) Next() bool { method Prev (line 74) | func (d *Dispenser) Prev() bool { method NextArg (line 89) | func (d *Dispenser) NextArg() bool { method nextOnSameLine (line 103) | func (d *Dispenser) nextOnSameLine() bool { method NextLine (line 124) | func (d *Dispenser) NextLine() bool { method NextBlock (line 167) | func (d *Dispenser) NextBlock(initialNestingLevel int) bool { method Nesting (line 196) | func (d *Dispenser) Nesting() int { method Val (line 202) | func (d *Dispenser) Val() string { method ValRaw (line 213) | func (d *Dispenser) ValRaw() string { method ScalarVal (line 227) | func (d *Dispenser) ScalarVal() any { method Line (line 251) | func (d *Dispenser) Line() int { method File (line 259) | func (d *Dispenser) File() string { method Args (line 272) | func (d *Dispenser) Args(targets ...*string) bool { method AllArgs (line 286) | func (d *Dispenser) AllArgs(targets ...*string) bool { method CountRemainingArgs (line 299) | func (d *Dispenser) CountRemainingArgs() int { method RemainingArgs (line 314) | func (d *Dispenser) RemainingArgs() []string { method RemainingArgsRaw (line 326) | func (d *Dispenser) RemainingArgsRaw() []string { method RemainingArgsAsTokens (line 338) | func (d *Dispenser) RemainingArgsAsTokens() []Token { method NewFromNextSegment (line 351) | func (d *Dispenser) NewFromNextSegment() *Dispenser { method NextSegment (line 358) | func (d *Dispenser) NextSegment() Segment { method Token (line 390) | func (d *Dispenser) Token() Token { method Reset (line 399) | func (d *Dispenser) Reset() { method ArgErr (line 408) | func (d *Dispenser) ArgErr() error { method SyntaxErr (line 417) | func (d *Dispenser) SyntaxErr(expected string) error { method EOFErr (line 424) | func (d *Dispenser) EOFErr() error { method Err (line 429) | func (d *Dispenser) Err(msg string) error { method Errf (line 434) | func (d *Dispenser) Errf(format string, args ...any) error { method WrapErr (line 439) | func (d *Dispenser) WrapErr(err error) error { method Delete (line 455) | func (d *Dispenser) Delete() []Token { method DeleteN (line 465) | func (d *Dispenser) DeleteN(amount int) []Token { method SetContext (line 474) | func (d *Dispenser) SetContext(key string, value any) { method GetContext (line 482) | func (d *Dispenser) GetContext(key string) any { method GetContextString (line 491) | func (d *Dispenser) GetContextString(key string) string { method isNewLine (line 504) | func (d *Dispenser) isNewLine() bool { method isNextOnNewLine (line 520) | func (d *Dispenser) isNextOnNewLine() bool { function NewDispenser (line 40) | func NewDispenser(tokens []Token) *Dispenser { function NewTestDispenser (line 49) | func NewTestDispenser(input string) *Dispenser { constant MatcherNameCtxKey (line 533) | MatcherNameCtxKey = "matcher_name" FILE: caddyconfig/caddyfile/dispenser_test.go function TestDispenser_Val_Next (line 24) | func TestDispenser_Val_Next(t *testing.T) { function TestDispenser_NextArg (line 63) | func TestDispenser_NextArg(t *testing.T) { function TestDispenser_NextLine (line 110) | func TestDispenser_NextLine(t *testing.T) { function TestDispenser_NextBlock (line 140) | func TestDispenser_NextBlock(t *testing.T) { function TestDispenser_Args (line 171) | func TestDispenser_Args(t *testing.T) { function TestDispenser_RemainingArgs (line 239) | func TestDispenser_RemainingArgs(t *testing.T) { function TestDispenser_RemainingArgsAsTokens (line 277) | func TestDispenser_RemainingArgsAsTokens(t *testing.T) { function TestDispenser_ArgErr_Err (line 337) | func TestDispenser_ArgErr_Err(t *testing.T) { FILE: caddyconfig/caddyfile/formatter.go function Format (line 30) | func Format(input []byte) []byte { FILE: caddyconfig/caddyfile/formatter_fuzz.go function FuzzFormat (line 21) | func FuzzFormat(input []byte) int { FILE: caddyconfig/caddyfile/formatter_test.go function TestFormatter (line 22) | func TestFormatter(t *testing.T) { FILE: caddyconfig/caddyfile/importargs.go function parseVariadic (line 31) | func parseVariadic(token Token, argCount int) (bool, int, int) { function makeArgsReplacer (line 98) | func makeArgsReplacer(args []string) *caddy.Replacer { FILE: caddyconfig/caddyfile/importgraph.go type adjacency (line 22) | type adjacency type importGraph (line 24) | type importGraph struct method addNode (line 29) | func (i *importGraph) addNode(name string) { method addNodes (line 39) | func (i *importGraph) addNodes(names []string) { method removeNode (line 45) | func (i *importGraph) removeNode(name string) { method removeNodes (line 49) | func (i *importGraph) removeNodes(names []string) { method addEdge (line 55) | func (i *importGraph) addEdge(from, to string) error { method addEdges (line 80) | func (i *importGraph) addEdges(from string, tos []string) error { method areConnected (line 90) | func (i *importGraph) areConnected(from, to string) bool { method willCycle (line 98) | func (i *importGraph) willCycle(from, to string) bool { method exists (line 123) | func (i *importGraph) exists(key string) bool { FILE: caddyconfig/caddyfile/lexer.go type lexer (line 32) | type lexer struct method load (line 78) | func (l *lexer) load(input io.Reader) error { method next (line 107) | func (l *lexer) next() (bool, error) { method finalizeHeredoc (line 300) | func (l *lexer) finalizeHeredoc(val []rune, marker string) ([]rune, er... type Token (line 40) | type Token struct method Quoted (line 346) | func (t Token) Quoted() bool { method NumLineBreaks (line 351) | func (t Token) NumLineBreaks() int { method Clone (line 363) | func (t Token) Clone() Token { function Tokenize (line 56) | func Tokenize(input []byte, filename string) ([]Token, error) { function isNextOnNewLine (line 378) | func isNextOnNewLine(t1, t2 Token) bool { FILE: caddyconfig/caddyfile/lexer_fuzz.go function FuzzTokenize (line 19) | func FuzzTokenize(input []byte) int { FILE: caddyconfig/caddyfile/lexer_test.go function TestLexer (line 21) | func TestLexer(t *testing.T) { function lexerCompare (line 524) | func lexerCompare(t *testing.T, n int, expected, actual []Token) { FILE: caddyconfig/caddyfile/parse.go function Parse (line 39) | func Parse(filename string, input []byte) ([]ServerBlock, error) { function allTokens (line 63) | func allTokens(filename string, input []byte) ([]Token, error) { function replaceEnvVars (line 69) | func replaceEnvVars(input []byte) []byte { type parser (line 113) | type parser struct method parseAll (line 122) | func (p *parser) parseAll() ([]ServerBlock, error) { method parseOne (line 141) | func (p *parser) parseOne() error { method begin (line 146) | func (p *parser) begin() error { method addresses (line 210) | func (p *parser) addresses() error { method blockContents (line 293) | func (p *parser) blockContents() error { method directives (line 320) | func (p *parser) directives() error { method doImport (line 356) | func (p *parser) doImport(nesting int) error { method doSingleImport (line 584) | func (p *parser) doSingleImport(importFile string) ([]Token, error) { method directive (line 632) | func (p *parser) directive() error { method openCurlyBrace (line 683) | func (p *parser) openCurlyBrace() error { method closeCurlyBrace (line 694) | func (p *parser) closeCurlyBrace() error { method isNamedRoute (line 701) | func (p *parser) isNamedRoute() (bool, string) { method isSnippet (line 710) | func (p *parser) isSnippet() (bool, string) { method blockTokens (line 720) | func (p *parser) blockTokens(retainCurlies bool) ([]Token, error) { type ServerBlock (line 756) | type ServerBlock struct method GetKeysText (line 763) | func (sb ServerBlock) GetKeysText() []string { method DispenseDirective (line 773) | func (sb ServerBlock) DispenseDirective(dir string) *Dispenser { type Segment (line 786) | type Segment method Directive (line 790) | func (s Segment) Directive() string { FILE: caddyconfig/caddyfile/parse_test.go function TestParseVariadic (line 25) | func TestParseVariadic(t *testing.T) { function TestAllTokens (line 111) | func TestAllTokens(t *testing.T) { function TestParseOneAndImport (line 129) | func TestParseOneAndImport(t *testing.T) { function TestRecursiveImport (line 374) | func TestRecursiveImport(t *testing.T) { function TestDirectiveImport (line 470) | func TestDirectiveImport(t *testing.T) { function TestParseAll (line 533) | func TestParseAll(t *testing.T) { function TestEnvironmentReplacement (line 636) | func TestEnvironmentReplacement(t *testing.T) { function TestImportReplacementInJSONWithBrace (line 732) | func TestImportReplacementInJSONWithBrace(t *testing.T) { function TestSnippets (line 762) | func TestSnippets(t *testing.T) { function writeStringToTempFileOrDie (line 793) | func writeStringToTempFileOrDie(t *testing.T, str string) (pathToFile st... function TestImportedFilesIgnoreNonDirectiveImportTokens (line 807) | func TestImportedFilesIgnoreNonDirectiveImportTokens(t *testing.T) { function TestSnippetAcrossMultipleFiles (line 831) | func TestSnippetAcrossMultipleFiles(t *testing.T) { function TestRejectsGlobalMatcher (line 865) | func TestRejectsGlobalMatcher(t *testing.T) { function TestRejectAnonymousImportBlock (line 888) | func TestRejectAnonymousImportBlock(t *testing.T) { function TestAcceptSiteImportWithBraces (line 913) | func TestAcceptSiteImportWithBraces(t *testing.T) { function testParser (line 933) | func testParser(input string) parser { FILE: caddyconfig/configadapters.go type Adapter (line 26) | type Adapter interface type Warning (line 31) | type Warning struct method String (line 38) | func (w Warning) String() string { function JSON (line 51) | func JSON(val any, warnings *[]Warning) json.RawMessage { function JSONModuleObject (line 69) | func JSONModuleObject(val any, fieldName, fieldVal string, warnings *[]W... function RegisterAdapter (line 111) | func RegisterAdapter(name string, adapter Adapter) { function GetAdapter (line 121) | func GetAdapter(name string) Adapter { type adapterModule (line 130) | type adapterModule struct method CaddyModule (line 135) | func (am adapterModule) CaddyModule() caddy.ModuleInfo { FILE: caddyconfig/httpcaddyfile/addresses.go method mapAddressToProtocolToServerBlocks (line 80) | func (st *ServerType) mapAddressToProtocolToServerBlocks(originalServerB... method consolidateAddrMappings (line 195) | func (st *ServerType) consolidateAddrMappings(addrToProtocolToServerBloc... method listenersForServerBlockAddress (line 270) | func (st *ServerType) listenersForServerBlockAddress(sblock serverBlock,... type addressesWithProtocols (line 355) | type addressesWithProtocols struct type Address (line 367) | type Address struct method String (line 425) | func (a Address) String() string { method Normalize (line 455) | func (a Address) Normalize() Address { function ParseAddress (line 373) | func ParseAddress(str string) (Address, error) { function lowerExceptPlaceholders (line 478) | func lowerExceptPlaceholders(s string) string { FILE: caddyconfig/httpcaddyfile/addresses_fuzz.go function FuzzParseAddress (line 19) | func FuzzParseAddress(data []byte) int { FILE: caddyconfig/httpcaddyfile/addresses_test.go function TestParseAddress (line 7) | func TestParseAddress(t *testing.T) { function TestAddressString (line 84) | func TestAddressString(t *testing.T) { function TestKeyNormalization (line 106) | func TestKeyNormalization(t *testing.T) { FILE: caddyconfig/httpcaddyfile/builtins.go function init (line 38) | func init() { function parseBind (line 63) | func parseBind(h Helper) ([]ConfigValue, error) { function parseTLS (line 118) | func parseTLS(h Helper) ([]ConfigValue, error) { function parseRoot (line 654) | func parseRoot(h Helper) ([]ConfigValue, error) { function parseFilesystem (line 692) | func parseFilesystem(h Helper) (caddyhttp.MiddlewareHandler, error) { function parseVars (line 704) | func parseVars(h Helper) (caddyhttp.MiddlewareHandler, error) { function parseRedir (line 719) | func parseRedir(h Helper) (caddyhttp.MiddlewareHandler, error) { function parseRespond (line 793) | func parseRespond(h Helper) (caddyhttp.MiddlewareHandler, error) { function parseAbort (line 800) | func parseAbort(h Helper) (caddyhttp.MiddlewareHandler, error) { function parseError (line 809) | func parseError(h Helper) (caddyhttp.MiddlewareHandler, error) { function parseRoute (line 816) | func parseRoute(h Helper) (caddyhttp.MiddlewareHandler, error) { function parseHandle (line 833) | func parseHandle(h Helper) (caddyhttp.MiddlewareHandler, error) { function parseHandleErrors (line 837) | func parseHandleErrors(h Helper) ([]ConfigValue, error) { function parseInvoke (line 913) | func parseInvoke(h Helper) (caddyhttp.MiddlewareHandler, error) { function parseLog (line 942) | func parseLog(h Helper) ([]ConfigValue, error) { function parseLogHelper (line 950) | func parseLogHelper(h Helper, globalLogNames map[string]struct{}) ([]Con... function parseLogSkip (line 1203) | func parseLogSkip(h Helper) (caddyhttp.MiddlewareHandler, error) { function parseLogName (line 1225) | func parseLogName(h Helper) (caddyhttp.MiddlewareHandler, error) { FILE: caddyconfig/httpcaddyfile/builtins_test.go function TestLogDirectiveSyntax (line 11) | func TestLogDirectiveSyntax(t *testing.T) { function TestRedirDirectiveSyntax (line 98) | func TestRedirDirectiveSyntax(t *testing.T) { function TestImportErrorLine (line 235) | func TestImportErrorLine(t *testing.T) { function TestNestedImport (line 298) | func TestNestedImport(t *testing.T) { FILE: caddyconfig/httpcaddyfile/directives.go function RegisterDirective (line 109) | func RegisterDirective(dir string, setupFunc UnmarshalFunc) { function RegisterHandlerDirective (line 120) | func RegisterHandlerDirective(dir string, setupFunc UnmarshalHandlerFunc) { function RegisterDirectiveOrder (line 153) | func RegisterDirectiveOrder(dir string, position Positional, standardDir... function RegisterGlobalOption (line 193) | func RegisterGlobalOption(opt string, setupFunc UnmarshalGlobalFunc) { type Helper (line 202) | type Helper struct method Option (line 214) | func (h Helper) Option(name string) any { method Caddyfiles (line 220) | func (h Helper) Caddyfiles() []string { method JSON (line 239) | func (h Helper) JSON(val any) json.RawMessage { method MatcherToken (line 247) | func (h Helper) MatcherToken() (caddy.ModuleMap, bool, error) { method ExtractMatcherSet (line 259) | func (h Helper) ExtractMatcherSet() (caddy.ModuleMap, error) { method NewRoute (line 277) | func (h Helper) NewRoute(matcherSet caddy.ModuleMap, method GroupRoutes (line 306) | func (h Helper) GroupRoutes(vals []ConfigValue) { method WithDispenser (line 333) | func (h Helper) WithDispenser(d *caddyfile.Dispenser) Helper { function ParseSegmentAsSubroute (line 341) | func ParseSegmentAsSubroute(h Helper) (caddyhttp.MiddlewareHandler, erro... function parseSegmentAsConfig (line 353) | func parseSegmentAsConfig(h Helper) ([]ConfigValue, error) { type ConfigValue (line 420) | type ConfigValue struct function sortRoutes (line 437) | func sortRoutes(routes []ConfigValue) { type serverBlock (line 536) | type serverBlock struct method hostsFromKeys (line 553) | func (sb serverBlock) hostsFromKeys(loggerMode bool) []string { method hostsFromKeysNotHTTP (line 585) | func (sb serverBlock) hostsFromKeysNotHTTP(httpPort string) []string { method hasHostCatchAllKey (line 608) | func (sb serverBlock) hasHostCatchAllKey() bool { method isAllHTTP (line 616) | func (sb serverBlock) isAllHTTP() bool { type Positional (line 623) | type Positional constant Before (line 626) | Before Positional = "before" constant After (line 627) | After Positional = "after" constant First (line 628) | First Positional = "first" constant Last (line 629) | Last Positional = "last" type UnmarshalFunc (line 636) | type UnmarshalFunc type UnmarshalHandlerFunc (line 647) | type UnmarshalHandlerFunc type UnmarshalGlobalFunc (line 653) | type UnmarshalGlobalFunc FILE: caddyconfig/httpcaddyfile/directives_test.go function TestHostsFromKeys (line 9) | func TestHostsFromKeys(t *testing.T) { FILE: caddyconfig/httpcaddyfile/httptype.go function init (line 38) | func init() { type App (line 45) | type App struct type ServerType (line 54) | type ServerType struct method Setup (line 57) | func (st ServerType) Setup( method evaluateGlobalOptionsBlock (line 369) | func (ServerType) evaluateGlobalOptionsBlock(serverBlocks []serverBloc... method extractNamedRoutes (line 459) | func (ServerType) extractNamedRoutes( method serversFromPairings (line 533) | func (st *ServerType) serversFromPairings( method compileEncodedMatcherSets (line 1459) | func (st *ServerType) compileEncodedMatcherSets(sblock serverBlock) ([... function detectConflictingSchemes (line 1002) | func detectConflictingSchemes(srv *caddyhttp.Server, serverBlocks []serv... function consolidateConnPolicies (line 1062) | func consolidateConnPolicies(cps caddytls.ConnectionPolicies) (caddytls.... function appendSubrouteToRouteList (line 1225) | func appendSubrouteToRouteList(routeList caddyhttp.RouteList, function buildSubroute (line 1288) | func buildSubroute(routes []ConfigValue, groupCounter counter, needsSort... function normalizeDirectiveName (line 1400) | func normalizeDirectiveName(directive string) string { function consolidateRoutes (line 1414) | func consolidateRoutes(routes caddyhttp.RouteList) caddyhttp.RouteList { function matcherSetFromMatcherToken (line 1428) | func matcherSetFromMatcherToken( function parseMatcherDefinitions (line 1535) | func parseMatcherDefinitions(d *caddyfile.Dispenser, matchers map[string... function encodeMatcherSet (line 1623) | func encodeMatcherSet(matchers map[string]caddyhttp.RequestMatcherWithEr... function WasReplacedPlaceholderShorthand (line 1640) | func WasReplacedPlaceholderShorthand(token string) string { function tryInt (line 1659) | func tryInt(val any, warnings *[]caddyconfig.Warning) int { function tryString (line 1667) | func tryString(val any, warnings *[]caddyconfig.Warning) string { function tryDuration (line 1675) | func tryDuration(val any, warnings *[]caddyconfig.Warning) caddy.Duration { function listenersUseAnyPortOtherThan (line 1686) | func listenersUseAnyPortOtherThan(addresses []string, otherPort string) ... function mapContains (line 1703) | func mapContains[K comparable, V any](m map[K]V, keys []K) bool { function specificity (line 1724) | func specificity(s string) int { type counter (line 1741) | type counter struct method nextGroup (line 1745) | func (c counter) nextGroup() string { type namedCustomLog (line 1751) | type namedCustomLog struct type addressWithProtocols (line 1760) | type addressWithProtocols struct type sbAddrAssociation (line 1768) | type sbAddrAssociation struct constant matcherPrefix (line 1774) | matcherPrefix = "@" constant namedRouteKey (line 1775) | namedRouteKey = "named_route" FILE: caddyconfig/httpcaddyfile/httptype_test.go function TestMatcherSyntax (line 11) | func TestMatcherSyntax(t *testing.T) { function TestSpecificity (line 79) | func TestSpecificity(t *testing.T) { function TestGlobalOptions (line 109) | func TestGlobalOptions(t *testing.T) { function TestDefaultSNIWithoutHTTPS (line 215) | func TestDefaultSNIWithoutHTTPS(t *testing.T) { FILE: caddyconfig/httpcaddyfile/options.go function init (line 32) | func init() { function parseOptTrue (line 72) | func parseOptTrue(d *caddyfile.Dispenser, _ any) (any, error) { return t... function parseOptHTTPPort (line 74) | func parseOptHTTPPort(d *caddyfile.Dispenser, _ any) (any, error) { function parseOptHTTPSPort (line 89) | func parseOptHTTPSPort(d *caddyfile.Dispenser, _ any) (any, error) { function parseOptOrder (line 104) | func parseOptOrder(d *caddyfile.Dispenser, _ any) (any, error) { function parseOptStorage (line 179) | func parseOptStorage(d *caddyfile.Dispenser, _ any) (any, error) { function parseStorageCheck (line 198) | func parseStorageCheck(d *caddyfile.Dispenser, _ any) (any, error) { function parseStorageCleanInterval (line 213) | func parseStorageCleanInterval(d *caddyfile.Dispenser, _ any) (any, erro... function parseOptDuration (line 232) | func parseOptDuration(d *caddyfile.Dispenser, _ any) (any, error) { function parseOptACMEEAB (line 246) | func parseOptACMEEAB(d *caddyfile.Dispenser, _ any) (any, error) { function parseOptCertIssuer (line 273) | func parseOptCertIssuer(d *caddyfile.Dispenser, existing any) (any, erro... function parseOptSingleString (line 298) | func parseOptSingleString(d *caddyfile.Dispenser, _ any) (any, error) { function parseOptTLSResolvers (line 310) | func parseOptTLSResolvers(d *caddyfile.Dispenser, _ any) (any, error) { function parseOptDefaultBind (line 319) | func parseOptDefaultBind(d *caddyfile.Dispenser, _ any) (any, error) { function parseOptAdmin (line 347) | func parseOptAdmin(d *caddyfile.Dispenser, _ any) (any, error) { function parseOptOnDemand (line 383) | func parseOptOnDemand(d *caddyfile.Dispenser, _ any) (any, error) { function parseOptPersistConfig (line 444) | func parseOptPersistConfig(d *caddyfile.Dispenser, _ any) (any, error) { function parseOptAutoHTTPS (line 459) | func parseOptAutoHTTPS(d *caddyfile.Dispenser, _ any) (any, error) { function unmarshalCaddyfileMetricsOptions (line 478) | func unmarshalCaddyfileMetricsOptions(d *caddyfile.Dispenser) (any, erro... function parseMetricsOptions (line 494) | func parseMetricsOptions(d *caddyfile.Dispenser, _ any) (any, error) { function parseServerOptions (line 498) | func parseServerOptions(d *caddyfile.Dispenser, _ any) (any, error) { function parseOCSPStaplingOptions (line 502) | func parseOCSPStaplingOptions(d *caddyfile.Dispenser, _ any) (any, error) { function parseLogOptions (line 528) | func parseLogOptions(d *caddyfile.Dispenser, existingVal any) (any, erro... function parseOptPreferredChains (line 563) | func parseOptPreferredChains(d *caddyfile.Dispenser, _ any) (any, error) { function parseOptDNS (line 568) | func parseOptDNS(d *caddyfile.Dispenser, _ any) (any, error) { function parseOptECH (line 596) | func parseOptECH(d *caddyfile.Dispenser, _ any) (any, error) { function parseOptRenewalWindowRatio (line 639) | func parseOptRenewalWindowRatio(d *caddyfile.Dispenser, _ any) (any, err... FILE: caddyconfig/httpcaddyfile/options_test.go function TestGlobalLogOptionSyntax (line 12) | func TestGlobalLogOptionSyntax(t *testing.T) { function TestGlobalResolversOption (line 68) | func TestGlobalResolversOption(t *testing.T) { FILE: caddyconfig/httpcaddyfile/pkiapp.go function init (line 27) | func init() { function parsePKIApp (line 55) | func parsePKIApp(d *caddyfile.Dispenser, existingVal any) (any, error) { method buildPKIApp (line 197) | func (st ServerType) buildPKIApp( FILE: caddyconfig/httpcaddyfile/pkiapp_test.go function TestParsePKIApp_maintenanceIntervalAndRenewalWindowRatio (line 25) | func TestParsePKIApp_maintenanceIntervalAndRenewalWindowRatio(t *testing... function TestParsePKIApp_renewalWindowRatioInvalid (line 70) | func TestParsePKIApp_renewalWindowRatioInvalid(t *testing.T) { FILE: caddyconfig/httpcaddyfile/serveroptions.go type serverOptions (line 32) | type serverOptions struct function unmarshalCaddyfileServerOptions (line 65) | func unmarshalCaddyfileServerOptions(d *caddyfile.Dispenser) (any, error) { function applyServerOptions (line 334) | func applyServerOptions( FILE: caddyconfig/httpcaddyfile/shorthands.go type ComplexShorthandReplacer (line 10) | type ComplexShorthandReplacer struct type ShorthandReplacer (line 15) | type ShorthandReplacer struct method ApplyToSegment (line 94) | func (s ShorthandReplacer) ApplyToSegment(segment *caddyfile.Segment) { function NewShorthandReplacer (line 20) | func NewShorthandReplacer() ShorthandReplacer { function placeholderShorthands (line 53) | func placeholderShorthands() []string { FILE: caddyconfig/httpcaddyfile/tlsapp.go method buildTLSApp (line 36) | func (st ServerType) buildTLSApp( type acmeCapable (line 514) | type acmeCapable interface function fillInGlobalACMEDefaults (line 516) | func fillInGlobalACMEDefaults(issuer certmagic.Issuer, options map[strin... function newBaseAutomationPolicy (line 620) | func newBaseAutomationPolicy( function consolidateAutomationPolicies (line 686) | func consolidateAutomationPolicies(aps []*caddytls.AutomationPolicy) []*... function automationPolicyIsSubset (line 779) | func automationPolicyIsSubset(a, b *caddytls.AutomationPolicy) bool { function automationPolicyShadows (line 803) | func automationPolicyShadows(i int, aps []*caddytls.AutomationPolicy) int { function subjectQualifiesForPublicCert (line 825) | func subjectQualifiesForPublicCert(ap *caddytls.AutomationPolicy, subj s... function automationPolicyHasAllPublicNames (line 833) | func automationPolicyHasAllPublicNames(ap *caddytls.AutomationPolicy) bo... function isTailscaleDomain (line 839) | func isTailscaleDomain(name string) bool { FILE: caddyconfig/httpcaddyfile/tlsapp_test.go function TestAutomationPolicyIsSubset (line 9) | func TestAutomationPolicyIsSubset(t *testing.T) { FILE: caddyconfig/httploader.go function init (line 29) | func init() { type HTTPLoader (line 41) | type HTTPLoader struct method CaddyModule (line 76) | func (HTTPLoader) CaddyModule() caddy.ModuleInfo { method LoadConfig (line 84) | func (hl HTTPLoader) LoadConfig(ctx caddy.Context) ([]byte, error) { method makeClient (line 170) | func (hl HTTPLoader) makeClient(ctx caddy.Context) (*http.Client, erro... function attemptHttpCall (line 138) | func attemptHttpCall(client *http.Client, request *http.Request) (*http.... function doHttpCallWithRetries (line 149) | func doHttpCallWithRetries(ctx caddy.Context, client *http.Client, reque... FILE: caddyconfig/load.go function init (line 30) | func init() { type adminLoad (line 44) | type adminLoad struct method CaddyModule (line 47) | func (adminLoad) CaddyModule() caddy.ModuleInfo { method Routes (line 55) | func (al adminLoad) Routes() []caddy.AdminRoute { method handleLoad (line 73) | func (adminLoad) handleLoad(w http.ResponseWriter, r *http.Request) er... method handleAdapt (line 137) | func (adminLoad) handleAdapt(w http.ResponseWriter, r *http.Request) e... function adaptByContentType (line 179) | func adaptByContentType(contentType string, body []byte) ([]byte, []Warn... FILE: caddytest/caddytest.go type Config (line 35) | type Config struct type Tester (line 60) | type Tester struct method WithDefaultOverrides (line 87) | func (tc *Tester) WithDefaultOverrides(overrides Config) *Tester { method InitServer (line 118) | func (tc *Tester) InitServer(rawConfig string, configType string) { method initServer (line 131) | func (tc *Tester) initServer(rawConfig string, configType string) error { method ensureConfigRunning (line 212) | func (tc *Tester) ensureConfigRunning(rawConfig string, configType str... method AssertRedirect (line 376) | func (tc *Tester) AssertRedirect(requestURI string, expectedToLocation... method AssertResponseCode (line 506) | func (tc *Tester) AssertResponseCode(req *http.Request, expectedStatus... method AssertResponse (line 522) | func (tc *Tester) AssertResponse(req *http.Request, expectedStatusCode... method AssertGetResponse (line 545) | func (tc *Tester) AssertGetResponse(requestURI string, expectedStatusC... method AssertDeleteResponse (line 557) | func (tc *Tester) AssertDeleteResponse(requestURI string, expectedStat... method AssertPostResponseBody (line 569) | func (tc *Tester) AssertPostResponseBody(requestURI string, requestHea... method AssertPutResponseBody (line 584) | func (tc *Tester) AssertPutResponseBody(requestURI string, requestHead... method AssertPatchResponseBody (line 599) | func (tc *Tester) AssertPatchResponseBody(requestURI string, requestHe... function NewTester (line 68) | func NewTester(t testing.TB) *Tester { type configLoadError (line 105) | type configLoadError struct method Error (line 109) | func (e configLoadError) Error() string { return e.Response } function timeElapsed (line 111) | func timeElapsed(start time.Time, name string) { constant initConfig (line 260) | initConfig = `{ function validateTestPrerequisites (line 267) | func validateTestPrerequisites(tc *Tester) error { function isCaddyAdminRunning (line 304) | func isCaddyAdminRunning(tc *Tester) error { function getIntegrationDir (line 318) | func getIntegrationDir() string { function prependCaddyFilePath (line 330) | func prependCaddyFilePath(rawConfig string) string { function CreateTestingTransport (line 337) | func CreateTestingTransport() *http.Transport { function AssertLoadError (line 364) | func AssertLoadError(t *testing.T, rawConfig string, configType string, ... function CompareAdapt (line 415) | func CompareAdapt(t testing.TB, filename, rawConfig string, adapterName ... function AssertAdapt (line 476) | func AssertAdapt(t testing.TB, rawConfig string, adapterName string, exp... function applyHeaders (line 487) | func applyHeaders(t testing.TB, req *http.Request, requestHeaders []stri... FILE: caddytest/caddytest_test.go function TestReplaceCertificatePaths (line 10) | func TestReplaceCertificatePaths(t *testing.T) { function TestLoadUnorderedJSON (line 37) | func TestLoadUnorderedJSON(t *testing.T) { function TestCheckID (line 131) | func TestCheckID(t *testing.T) { FILE: caddytest/integration/acme_test.go constant acmeChallengePort (line 25) | acmeChallengePort = 9081 function TestACMEServerWithDefaults (line 28) | func TestACMEServerWithDefaults(t *testing.T) { function TestACMEServerWithMismatchedChallenges (line 99) | func TestACMEServerWithMismatchedChallenges(t *testing.T) { type naiveHTTPSolver (line 166) | type naiveHTTPSolver struct method Present (line 171) | func (s *naiveHTTPSolver) Present(ctx context.Context, challenge acme.... method CleanUp (line 202) | func (s naiveHTTPSolver) CleanUp(ctx context.Context, challenge acme.C... FILE: caddytest/integration/acmeserver_test.go function TestACMEServerDirectory (line 20) | func TestACMEServerDirectory(t *testing.T) { function TestACMEServerAllowPolicy (line 46) | func TestACMEServerAllowPolicy(t *testing.T) { function TestACMEServerDenyPolicy (line 136) | func TestACMEServerDenyPolicy(t *testing.T) { FILE: caddytest/integration/autohttps_test.go function TestAutoHTTPtoHTTPSRedirectsImplicitPort (line 10) | func TestAutoHTTPtoHTTPSRedirectsImplicitPort(t *testing.T) { function TestAutoHTTPtoHTTPSRedirectsExplicitPortSameAsHTTPSPort (line 26) | func TestAutoHTTPtoHTTPSRedirectsExplicitPortSameAsHTTPSPort(t *testing.... function TestAutoHTTPtoHTTPSRedirectsExplicitPortDifferentFromHTTPSPort (line 42) | func TestAutoHTTPtoHTTPSRedirectsExplicitPortDifferentFromHTTPSPort(t *t... function TestAutoHTTPRedirectsWithHTTPListenerFirstInAddresses (line 58) | func TestAutoHTTPRedirectsWithHTTPListenerFirstInAddresses(t *testing.T) { function TestAutoHTTPRedirectsInsertedBeforeUserDefinedCatchAll (line 100) | func TestAutoHTTPRedirectsInsertedBeforeUserDefinedCatchAll(t *testing.T) { function TestAutoHTTPRedirectsInsertedBeforeUserDefinedCatchAllWithNoExplicitHTTPSite (line 125) | func TestAutoHTTPRedirectsInsertedBeforeUserDefinedCatchAllWithNoExplici... function TestAutoHTTPSRedirectSortingExactMatchOverWildcard (line 147) | func TestAutoHTTPSRedirectSortingExactMatchOverWildcard(t *testing.T) { FILE: caddytest/integration/caddyfile_adapt_test.go function TestCaddyfileAdaptToJSON (line 17) | func TestCaddyfileAdaptToJSON(t *testing.T) { FILE: caddytest/integration/caddyfile_test.go function TestRespond (line 11) | func TestRespond(t *testing.T) { function TestRedirect (line 33) | func TestRedirect(t *testing.T) { function TestDuplicateHosts (line 61) | func TestDuplicateHosts(t *testing.T) { function TestReadCookie (line 75) | func TestReadCookie(t *testing.T) { function TestReplIndex (line 108) | func TestReplIndex(t *testing.T) { function TestInvalidPrefix (line 134) | func TestInvalidPrefix(t *testing.T) { function TestValidPrefix (line 179) | func TestValidPrefix(t *testing.T) { function TestUriReplace (line 483) | func TestUriReplace(t *testing.T) { function TestUriOps (line 500) | func TestUriOps(t *testing.T) { function TestHttpRequestLocalPortPlaceholder (line 525) | func TestHttpRequestLocalPortPlaceholder(t *testing.T) { function TestSetThenAddQueryParams (line 539) | func TestSetThenAddQueryParams(t *testing.T) { function TestSetThenDeleteParams (line 556) | func TestSetThenDeleteParams(t *testing.T) { function TestRenameAndOtherOps (line 573) | func TestRenameAndOtherOps(t *testing.T) { function TestReplaceOps (line 591) | func TestReplaceOps(t *testing.T) { function TestReplaceWithReplacementPlaceholder (line 606) | func TestReplaceWithReplacementPlaceholder(t *testing.T) { function TestReplaceWithKeyPlaceholder (line 620) | func TestReplaceWithKeyPlaceholder(t *testing.T) { function TestPartialReplacement (line 634) | func TestPartialReplacement(t *testing.T) { function TestNonExistingSearch (line 648) | func TestNonExistingSearch(t *testing.T) { function TestReplaceAllOps (line 662) | func TestReplaceAllOps(t *testing.T) { function TestUriOpsBlock (line 677) | func TestUriOpsBlock(t *testing.T) { function TestHandleErrorSimpleCodes (line 696) | func TestHandleErrorSimpleCodes(t *testing.T) { function TestHandleErrorRange (line 716) | func TestHandleErrorRange(t *testing.T) { function TestHandleErrorSort (line 736) | func TestHandleErrorSort(t *testing.T) { function TestHandleErrorRangeAndCodes (line 760) | func TestHandleErrorRangeAndCodes(t *testing.T) { function TestHandleErrorSubHandlers (line 785) | func TestHandleErrorSubHandlers(t *testing.T) { function TestInvalidSiteAddressesAsDirectives (line 825) | func TestInvalidSiteAddressesAsDirectives(t *testing.T) { FILE: caddytest/integration/forwardauth_test.go function TestForwardAuthCopyHeadersStripsClientHeaders (line 37) | func TestForwardAuthCopyHeadersStripsClientHeaders(t *testing.T) { function TestForwardAuthCopyHeadersAuthResponseWins (line 135) | func TestForwardAuthCopyHeadersAuthResponseWins(t *testing.T) { FILE: caddytest/integration/h2listener_test.go function newH2ListenerWithVersionsWithTLSTester (line 13) | func newH2ListenerWithVersionsWithTLSTester(t *testing.T, serverVersions... function TestH2ListenerWithTLS (line 45) | func TestH2ListenerWithTLS(t *testing.T) { function newH2ListenerWithVersionsWithoutTLSTester (line 73) | func newH2ListenerWithVersionsWithoutTLSTester(t *testing.T, serverVersi... function TestH2ListenerWithoutTLS (line 103) | func TestH2ListenerWithoutTLS(t *testing.T) { FILE: caddytest/integration/handler_test.go function TestBrowse (line 11) | func TestBrowse(t *testing.T) { function TestRespondWithJSON (line 34) | func TestRespondWithJSON(t *testing.T) { FILE: caddytest/integration/intercept_test.go function TestIntercept (line 9) | func TestIntercept(t *testing.T) { FILE: caddytest/integration/leafcertloaders_test.go function TestLeafCertLoaders (line 9) | func TestLeafCertLoaders(t *testing.T) { FILE: caddytest/integration/listener_test.go function setupListenerWrapperTest (line 15) | func setupListenerWrapperTest(t *testing.T, handlerFunc http.HandlerFunc... function TestHTTPRedirectWrapperWithLargeUpload (line 53) | func TestHTTPRedirectWrapperWithLargeUpload(t *testing.T) { function TestLargeHttpRequest (line 82) | func TestLargeHttpRequest(t *testing.T) { FILE: caddytest/integration/map_test.go function TestMap (line 10) | func TestMap(t *testing.T) { function TestMapRespondWithDefault (line 40) | func TestMapRespondWithDefault(t *testing.T) { function TestMapAsJSON (line 68) | func TestMapAsJSON(t *testing.T) { FILE: caddytest/integration/mockdns_test.go function init (line 13) | func init() { type MockDNSProvider (line 18) | type MockDNSProvider struct method CaddyModule (line 23) | func (MockDNSProvider) CaddyModule() caddy.ModuleInfo { method Provision (line 31) | func (MockDNSProvider) Provision(ctx caddy.Context) error { method UnmarshalCaddyfile (line 36) | func (p *MockDNSProvider) UnmarshalCaddyfile(d *caddyfile.Dispenser) e... method AppendRecords (line 49) | func (MockDNSProvider) AppendRecords(ctx context.Context, zone string,... method DeleteRecords (line 54) | func (MockDNSProvider) DeleteRecords(ctx context.Context, zone string,... method GetRecords (line 59) | func (MockDNSProvider) GetRecords(ctx context.Context, zone string) ([... method SetRecords (line 64) | func (MockDNSProvider) SetRecords(ctx context.Context, zone string, re... FILE: caddytest/integration/pki_test.go function TestLeafCertLifetimeLessThanIntermediate (line 9) | func TestLeafCertLifetimeLessThanIntermediate(t *testing.T) { function TestIntermediateLifetimeLessThanRoot (line 59) | func TestIntermediateLifetimeLessThanRoot(t *testing.T) { FILE: caddytest/integration/proxyprotocol_test.go type proxyProtoBackend (line 67) | type proxyProtoBackend struct method addr (line 130) | func (b *proxyProtoBackend) addr() string { method recordedAddrs (line 136) | func (b *proxyProtoBackend) recordedAddrs() []string { function newProxyProtoBackend (line 79) | func newProxyProtoBackend(t *testing.T) *proxyProtoBackend { type tlsProxyProtoBackend (line 149) | type tlsProxyProtoBackend struct method addr (line 206) | func (b *tlsProxyProtoBackend) addr() string { method tlsConfig (line 212) | func (b *tlsProxyProtoBackend) tlsConfig() *tls.Config { method recordedAddrs (line 217) | func (b *tlsProxyProtoBackend) recordedAddrs() []string { function newTLSProxyProtoBackend (line 163) | func newTLSProxyProtoBackend(t *testing.T) *tlsProxyProtoBackend { function proxyProtoTLSConfig (line 228) | func proxyProtoTLSConfig(listenPort int, backendAddr, ppVersion string, ... function testTLSProxyProtocolMatrix (line 277) | func testTLSProxyProtocolMatrix(t *testing.T, ppVersion string, transpor... function proxyProtoConfig (line 324) | func proxyProtoConfig(listenPort int, backendAddr, ppVersion string, tra... function freePort (line 369) | func freePort(t *testing.T) int { function TestProxyProtocolV1WithH1 (line 382) | func TestProxyProtocolV1WithH1(t *testing.T) { function TestProxyProtocolV2WithH1 (line 388) | func TestProxyProtocolV2WithH1(t *testing.T) { function TestProxyProtocolV1WithH2C (line 394) | func TestProxyProtocolV1WithH2C(t *testing.T) { function TestProxyProtocolV2WithH2C (line 404) | func TestProxyProtocolV2WithH2C(t *testing.T) { function TestProxyProtocolV2WithH2CMultipleRequests (line 415) | func TestProxyProtocolV2WithH2CMultipleRequests(t *testing.T) { function TestProxyProtocolV1WithH2 (line 421) | func TestProxyProtocolV1WithH2(t *testing.T) { function TestProxyProtocolV2WithH2 (line 427) | func TestProxyProtocolV2WithH2(t *testing.T) { function TestProxyProtocolServerAndProxy (line 433) | func TestProxyProtocolServerAndProxy(t *testing.T) { function testProxyProtocolMatrix (line 475) | func testProxyProtocolMatrix(t *testing.T, ppVersion string, transportVe... function TestProxyProtocolListenerWrapper (line 544) | func TestProxyProtocolListenerWrapper(t *testing.T) { FILE: caddytest/integration/reverseproxy_test.go function TestSRVReverseProxy (line 15) | func TestSRVReverseProxy(t *testing.T) { function TestDialWithPlaceholderUnix (line 58) | func TestDialWithPlaceholderUnix(t *testing.T) { function TestReverseProxyWithPlaceholderDialAddress (line 140) | func TestReverseProxyWithPlaceholderDialAddress(t *testing.T) { function TestReverseProxyWithPlaceholderTCPDialAddress (line 234) | func TestReverseProxyWithPlaceholderTCPDialAddress(t *testing.T) { function TestReverseProxyHealthCheck (line 328) | func TestReverseProxyHealthCheck(t *testing.T) { function TestReverseProxyHealthCheckPortUsed (line 392) | func TestReverseProxyHealthCheckPortUsed(t *testing.T) { function TestReverseProxyHealthCheckUnixSocket (line 451) | func TestReverseProxyHealthCheckUnixSocket(t *testing.T) { function TestReverseProxyHealthCheckUnixSocketWithoutPort (line 509) | func TestReverseProxyHealthCheckUnixSocketWithoutPort(t *testing.T) { FILE: caddytest/integration/sni_test.go function TestDefaultSNI (line 9) | func TestDefaultSNI(t *testing.T) { function TestDefaultSNIWithNamedHostAndExplicitIP (line 108) | func TestDefaultSNIWithNamedHostAndExplicitIP(t *testing.T) { function TestDefaultSNIWithPortMappingOnly (line 212) | func TestDefaultSNIWithPortMappingOnly(t *testing.T) { function TestHttpOnlyOnDomainWithSNI (line 288) | func TestHttpOnlyOnDomainWithSNI(t *testing.T) { FILE: caddytest/integration/stream_test.go function TestH2ToH2CStream (line 23) | func TestH2ToH2CStream(t *testing.T) { function testH2ToH2CStreamServeH2C (line 153) | func testH2ToH2CStreamServeH2C(t *testing.T) *http.Server { function TestH2ToH1ChunkedResponse (line 207) | func TestH2ToH1ChunkedResponse(t *testing.T) { function testH2ToH1ChunkedResponseServeH1 (line 362) | func testH2ToH1ChunkedResponseServeH1(t *testing.T) *http.Server { function GenerateRandomBytes (line 415) | func GenerateRandomBytes(n int) ([]byte, error) { function GenerateRandomString (line 430) | func GenerateRandomString(n int) (string, error) { FILE: cmd/caddy/main.go function main (line 40) | func main() { FILE: cmd/cobra.go constant fullDocsFooter (line 117) | fullDocsFooter = `Full documentation is available at: function init (line 120) | func init() { function onlyVersionText (line 127) | func onlyVersionText() string { function caddyCmdToCobra (line 132) | func caddyCmdToCobra(caddyCmd Command) *cobra.Command { function WrapCommandFuncForCobra (line 149) | func WrapCommandFuncForCobra(f CommandFunc) func(cmd *cobra.Command, _ [... type exitError (line 161) | type exitError struct method Error (line 166) | func (e *exitError) Error() string { FILE: cmd/commandfactory.go type rootCommandFactory (line 7) | type rootCommandFactory struct method Use (line 18) | func (f *rootCommandFactory) Use(fn func(cmd *cobra.Command)) { method Build (line 22) | func (f *rootCommandFactory) Build() *cobra.Command { function newRootCommandFactory (line 12) | func newRootCommandFactory(fn func() *cobra.Command) *rootCommandFactory { FILE: cmd/commandfuncs.go function cmdStart (line 45) | func cmdStart(fl Flags) (int, error) { function cmdRun (line 172) | func cmdRun(fl Flags) (int, error) { function cmdStop (line 340) | func cmdStop(fl Flags) (int, error) { function cmdReload (line 360) | func cmdReload(fl Flags) (int, error) { function cmdVersion (line 399) | func cmdVersion(_ Flags) (int, error) { function cmdBuildInfo (line 405) | func cmdBuildInfo(_ Flags) (int, error) { type jsonModuleInfo (line 415) | type jsonModuleInfo struct function cmdListModules (line 422) | func cmdListModules(fl Flags) (int, error) { function cmdEnviron (line 525) | func cmdEnviron(fl Flags) (int, error) { function cmdAdaptConfig (line 536) | func cmdAdaptConfig(fl Flags) (int, error) { function cmdValidateConfig (line 627) | func cmdValidateConfig(fl Flags) (int, error) { function cmdFmt (line 669) | func cmdFmt(fl Flags) (int, error) { function handleEnvFileFlag (line 736) | func handleEnvFileFlag(fl Flags) error { function AdminAPIRequest (line 758) | func AdminAPIRequest(adminAddr, method, uri string, headers http.Header,... function DetermineAdminAPIAddress (line 846) | func DetermineAdminAPIAddress(address string, config []byte, configFile,... function configFileWithRespectToDefault (line 892) | func configFileWithRespectToDefault(logger *zap.Logger, configFile strin... type moduleInfo (line 915) | type moduleInfo struct FILE: cmd/commands.go type Command (line 33) | type Command struct type CommandFunc (line 79) | type CommandFunc function Commands (line 83) | func Commands() map[string]Command { function init (line 95) | func init() { function RegisterCommand (line 578) | func RegisterCommand(cmd Command) { FILE: cmd/commands_test.go function TestCommandsAreAvailable (line 10) | func TestCommandsAreAvailable(t *testing.T) { FILE: cmd/main.go function init (line 48) | func init() { function Main (line 66) | func Main() { function handlePingbackConn (line 83) | func handlePingbackConn(conn net.Conn, expect []byte) error { function LoadConfig (line 108) | func LoadConfig(configFile, adapterName string) ([]byte, string, string,... function isCaddyfile (line 112) | func isCaddyfile(configFile, adapterName string) (bool, error) { function loadConfigWithLogger (line 146) | func loadConfigWithLogger(logger *zap.Logger, configFile, adapterName st... function watchConfigFile (line 251) | func watchConfigFile(filename, adapterName string) { type Flags (line 305) | type Flags struct method String (line 312) | func (f Flags) String(name string) string { method Bool (line 320) | func (f Flags) Bool(name string) bool { method Int (line 329) | func (f Flags) Int(name string) int { method Float64 (line 338) | func (f Flags) Float64(name string) float64 { method Duration (line 347) | func (f Flags) Duration(name string) time.Duration { function loadEnvFromFile (line 352) | func loadEnvFromFile(envFile string) error { function parseEnvFile (line 385) | func parseEnvFile(envInput io.Reader) (map[string]string, error) { function printEnvironment (line 452) | func printEnvironment() { function setResourceLimits (line 475) | func setResourceLimits(logger *zap.Logger) func() { type StringSlice (line 507) | type StringSlice method String (line 509) | func (ss StringSlice) String() string { return "[" + strings.Join(ss, ... method Set (line 511) | func (ss *StringSlice) Set(value string) error { FILE: cmd/main_test.go function TestParseEnvFile (line 9) | func TestParseEnvFile(t *testing.T) { function Test_isCaddyfile (line 172) | func Test_isCaddyfile(t *testing.T) { FILE: cmd/packagesfuncs.go function cmdUpgrade (line 36) | func cmdUpgrade(fl Flags) (int, error) { function splitModule (line 49) | func splitModule(arg string) (module, version string, err error) { function cmdAddPackage (line 68) | func cmdAddPackage(fl Flags) (int, error) { function cmdRemovePackage (line 96) | func cmdRemovePackage(fl Flags) (int, error) { function upgradeBuild (line 124) | func upgradeBuild(pluginPkgs map[string]pluginPackage, fl Flags) (int, e... function getModules (line 216) | func getModules() (standard, nonstandard, unknown []moduleInfo, err erro... function listModules (line 266) | func listModules(path string) error { function showVersion (line 273) | func showVersion(path string) error { function downloadBuild (line 280) | func downloadBuild(qs url.Values) (*http.Response, error) { function getPluginPackages (line 307) | func getPluginPackages(modules []moduleInfo) (map[string]pluginPackage, ... function writeCaddyBinary (line 319) | func writeCaddyBinary(path string, body *io.ReadCloser, fileInfo os.File... constant downloadPath (line 342) | downloadPath = "https://caddyserver.com/api/download" type pluginPackage (line 344) | type pluginPackage struct method String (line 349) | func (p pluginPackage) String() string { FILE: cmd/removebinary.go function removeCaddyBinary (line 27) | func removeCaddyBinary(path string) error { FILE: cmd/removebinary_windows.go function removeCaddyBinary (line 31) | func removeCaddyBinary(path string) error { FILE: cmd/storagefuncs.go type storVal (line 32) | type storVal struct function determineStorage (line 38) | func determineStorage(configFile string, configAdapter string) (*storVal... function cmdImportStorage (line 64) | func cmdImportStorage(fl Flags) (int, error) { function cmdExportStorage (line 136) | func cmdExportStorage(fl Flags) (int, error) { FILE: context.go type Context (line 46) | type Context struct method OnCancel (line 99) | func (ctx *Context) OnCancel(f func()) { method FileSystems (line 105) | func (ctx *Context) FileSystems() FileSystems { method GetMetricsRegistry (line 115) | func (ctx *Context) GetMetricsRegistry() *prometheus.Registry { method initMetrics (line 119) | func (ctx *Context) initMetrics() { method OnExit (line 136) | func (ctx *Context) OnExit(f func(context.Context)) { method LoadModule (line 188) | func (ctx Context) LoadModule(structPointer any, fieldName string) (an... method emitEvent (line 290) | func (ctx Context) emitEvent(name string, data map[string]any) Event { method loadModulesFromSomeMap (line 300) | func (ctx Context) loadModulesFromSomeMap(namespace, inlineModuleKey s... method loadModulesFromRegularMap (line 318) | func (ctx Context) loadModulesFromRegularMap(namespace, inlineModuleKe... method loadModuleMap (line 335) | func (ctx Context) loadModuleMap(namespace string, val reflect.Value) ... method LoadModuleByID (line 364) | func (ctx Context) LoadModuleByID(id string, rawMsg json.RawMessage) (... method loadModuleInline (line 478) | func (ctx Context) loadModuleInline(moduleNameKey, moduleScope string,... method App (line 505) | func (ctx Context) App(name string) (any, error) { method AppIfConfigured (line 530) | func (ctx Context) AppIfConfigured(name string) (any, error) { method Storage (line 552) | func (ctx Context) Storage() certmagic.Storage { method Logger (line 573) | func (ctx Context) Logger(module ...Module) *zap.Logger { method Slogger (line 612) | func (ctx Context) Slogger() *slog.Logger { method Modules (line 655) | func (ctx Context) Modules() []Module { method Module (line 663) | func (ctx Context) Module() Module { method WithValue (line 671) | func (ctx *Context) WithValue(key, value any) Context { function NewContext (line 65) | func NewContext(ctx Context) (Context, context.CancelFunc) { function NewContextWithCause (line 72) | func NewContextWithCause(ctx Context) (Context, context.CancelCauseFunc) { type slogHandlerFactory (line 595) | type slogHandlerFactory function RegisterSlogHandlerFactory (line 604) | func RegisterSlogHandlerFactory(factory slogHandlerFactory) { type eventEmitter (line 686) | type eventEmitter interface FILE: context_test.go function ExampleContext_LoadModule (line 22) | func ExampleContext_LoadModule() { function ExampleContext_LoadModule_array (line 54) | func ExampleContext_LoadModule_array() { function ExampleContext_LoadModule_map (line 87) | func ExampleContext_LoadModule_map() { FILE: duration_fuzz.go function FuzzParseDuration (line 19) | func FuzzParseDuration(data []byte) int { FILE: filepath.go function FastAbs (line 29) | func FastAbs(path string) (string, error) { FILE: filepath_windows.go function FastAbs (line 25) | func FastAbs(path string) (string, error) { FILE: filesystem.go type FileSystems (line 19) | type FileSystems interface FILE: internal/filesystems/map.go constant DefaultFileSystemKey (line 10) | DefaultFileSystemKey = "default" type wrapperFs (line 16) | type wrapperFs struct type FileSystemMap (line 24) | type FileSystemMap struct method key (line 29) | func (f *FileSystemMap) key(k string) string { method Register (line 38) | func (f *FileSystemMap) Register(k string, v fs.FS) { method Unregister (line 50) | func (f *FileSystemMap) Unregister(k string) { method Get (line 60) | func (f *FileSystemMap) Get(k string) (v fs.FS, ok bool) { method Default (line 74) | func (f *FileSystemMap) Default() fs.FS { FILE: internal/filesystems/os.go type OsFS (line 16) | type OsFS struct method Open (line 18) | func (OsFS) Open(name string) (fs.File, error) { return os.Op... method Stat (line 19) | func (OsFS) Stat(name string) (fs.FileInfo, error) { return os.St... method Glob (line 20) | func (OsFS) Glob(pattern string) ([]string, error) { return filep... method ReadDir (line 21) | func (OsFS) ReadDir(name string) ([]fs.DirEntry, error) { return os.Re... method ReadFile (line 22) | func (OsFS) ReadFile(name string) ([]byte, error) { return os.Re... FILE: internal/logbuffer.go type LogBufferCore (line 25) | type LogBufferCore struct method Enabled (line 43) | func (c *LogBufferCore) Enabled(lvl zapcore.Level) bool { method With (line 47) | func (c *LogBufferCore) With(fields []zapcore.Field) zapcore.Core { method Check (line 51) | func (c *LogBufferCore) Check(entry zapcore.Entry, ce *zapcore.Checked... method Write (line 58) | func (c *LogBufferCore) Write(entry zapcore.Entry, fields []zapcore.Fi... method Sync (line 66) | func (c *LogBufferCore) Sync() error { return nil } method FlushTo (line 69) | func (c *LogBufferCore) FlushTo(logger *zap.Logger) { type LogBufferCoreInterface (line 32) | type LogBufferCoreInterface interface function NewLogBufferCore (line 37) | func NewLogBufferCore(level zapcore.LevelEnabler) *LogBufferCore { FILE: internal/logs.go function MaxSizeSubjectsListForLog (line 9) | func MaxSizeSubjectsListForLog(subjects map[string]struct{}, maxToDispla... FILE: internal/metrics/metrics.go function SanitizeCode (line 8) | func SanitizeCode(s int) string { function SanitizeMethod (line 33) | func SanitizeMethod(m string) string { FILE: internal/metrics/metrics_test.go function TestSanitizeMethod (line 8) | func TestSanitizeMethod(t *testing.T) { FILE: internal/ranges.go function PrivateRangesCIDR (line 5) | func PrivateRangesCIDR() []string { FILE: internal/sockets.go function SplitUnixSocketPermissionsBits (line 34) | func SplitUnixSocketPermissionsBits(addr string) (path string, fileMode ... FILE: internal/testmocks/dummyverifier.go function init (line 11) | func init() { type dummyVerifier (line 15) | type dummyVerifier struct method UnmarshalCaddyfile (line 18) | func (dummyVerifier) UnmarshalCaddyfile(d *caddyfile.Dispenser) error { method CaddyModule (line 23) | func (dummyVerifier) CaddyModule() caddy.ModuleInfo { method VerifyClientCertificate (line 33) | func (dummyVerifier) VerifyClientCertificate(rawCerts [][]byte, verifi... FILE: listen.go function reuseUnixSocket (line 33) | func reuseUnixSocket(_, _ string) (any, error) { function listenReusable (line 37) | func listenReusable(ctx context.Context, lnKey string, network, address ... type fakeCloseListener (line 122) | type fakeCloseListener struct method Accept (line 132) | func (fcl *fakeCloseListener) Accept() (net.Conn, error) { method Close (line 177) | func (fcl *fakeCloseListener) Close() error { type canSetKeepAliveConfig (line 128) | type canSetKeepAliveConfig interface type sharedListener (line 196) | type sharedListener struct method clearDeadline (line 203) | func (sl *sharedListener) clearDeadline() error { method setDeadline (line 217) | func (sl *sharedListener) setDeadline() error { method Destruct (line 234) | func (sl *sharedListener) Destruct() error { type fakeClosePacketConn (line 240) | type fakeClosePacketConn struct method ReadFrom (line 245) | func (fcpc *fakeClosePacketConn) ReadFrom(p []byte) (n int, addr net.A... method Close (line 275) | func (fcpc *fakeClosePacketConn) Close() error { method Unwrap (line 283) | func (fcpc *fakeClosePacketConn) Unwrap() net.PacketConn { type sharedPacketConn (line 288) | type sharedPacketConn struct method Destruct (line 294) | func (spc *sharedPacketConn) Destruct() error { method Unwrap (line 299) | func (spc *sharedPacketConn) Unwrap() net.PacketConn { FILE: listen_unix.go function reuseUnixSocket (line 43) | func reuseUnixSocket(network, addr string) (any, error) { function listenReusable (line 94) | func listenReusable(ctx context.Context, lnKey string, network, address ... function reusePort (line 201) | func reusePort(network, address string, conn syscall.RawConn) error { type unixListener (line 216) | type unixListener struct method Close (line 222) | func (uln *unixListener) Close() error { type unixConn (line 242) | type unixConn struct method Close (line 248) | func (uc *unixConn) Close() error { method Unwrap (line 268) | func (uc *unixConn) Unwrap() net.PacketConn { type deleteListener (line 288) | type deleteListener struct method Close (line 293) | func (dl deleteListener) Close() error { type deletePacketConn (line 300) | type deletePacketConn struct method Close (line 305) | func (dl deletePacketConn) Close() error { method Unwrap (line 310) | func (dl deletePacketConn) Unwrap() net.PacketConn { FILE: listen_unix_setopt.go constant unixSOREUSEPORT (line 7) | unixSOREUSEPORT = unix.SO_REUSEPORT FILE: listen_unix_setopt_freebsd.go constant unixSOREUSEPORT (line 7) | unixSOREUSEPORT = unix.SO_REUSEPORT_LB FILE: listeners.go type NetworkAddress (line 44) | type NetworkAddress struct method ListenAll (line 64) | func (na NetworkAddress) ListenAll(ctx context.Context, config net.Lis... method Listen (line 135) | func (na NetworkAddress) Listen(ctx context.Context, portOffset uint, ... method listen (line 150) | func (na NetworkAddress) listen(ctx context.Context, portOffset uint, ... method IsUnixNetwork (line 209) | func (na NetworkAddress) IsUnixNetwork() bool { method IsFdNetwork (line 215) | func (na NetworkAddress) IsFdNetwork() bool { method JoinHostPort (line 221) | func (na NetworkAddress) JoinHostPort(offset uint) string { method Expand (line 229) | func (na NetworkAddress) Expand() []NetworkAddress { method At (line 241) | func (na NetworkAddress) At(portOffset uint) NetworkAddress { method PortRangeSize (line 251) | func (na NetworkAddress) PortRangeSize() uint { method isLoopback (line 258) | func (na NetworkAddress) isLoopback() bool { method isWildcardInterface (line 271) | func (na NetworkAddress) isWildcardInterface() bool { method port (line 281) | func (na NetworkAddress) port() string { method String (line 291) | func (na NetworkAddress) String() string { method ListenQUIC (line 434) | func (na NetworkAddress) ListenQUIC(ctx context.Context, portOffset ui... function IsUnixNetwork (line 299) | func IsUnixNetwork(netw string) bool { function IsFdNetwork (line 304) | func IsFdNetwork(netw string) bool { function ParseNetworkAddress (line 316) | func ParseNetworkAddress(addr string) (NetworkAddress, error) { function ParseNetworkAddressWithDefaults (line 322) | func ParseNetworkAddressWithDefaults(addr, defaultNetwork string, defaul... function SplitNetworkAddress (line 378) | func SplitNetworkAddress(a string) (network, host, port string, err erro... function JoinNetworkAddress (line 413) | func JoinNetworkAddress(network, host, port string) string { function ListenerUsage (line 507) | func ListenerUsage(network, addr string) int { type contextAndCancelFunc (line 513) | type contextAndCancelFunc struct type sharedQUICState (line 520) | type sharedQUICState struct method getConfigForClient (line 537) | func (sqs *sharedQUICState) getConfigForClient(ch *tls.ClientHelloInfo... method addState (line 545) | func (sqs *sharedQUICState) addState(tlsConfig *tls.Config) (context.C... function newSharedQUICState (line 527) | func newSharedQUICState(tlsConfig *tls.Config) *sharedQUICState { type sharedQuicListener (line 579) | type sharedQuicListener struct method Destruct (line 587) | func (sql *sharedQuicListener) Destruct() error { function fakeClosedErr (line 597) | func fakeClosedErr(l interface{ Addr() net.Addr }) error { type fakeCloseQuicListener (line 613) | type fakeCloseQuicListener struct method Accept (line 625) | func (fcql *fakeCloseQuicListener) Accept(_ context.Context) (*quic.Co... method Close (line 638) | func (fcql *fakeCloseQuicListener) Close() error { function RegisterNetwork (line 651) | func RegisterNetwork(network string, getListener ListenerFunc) { function getListenerFromPlugin (line 674) | func getListenerFromPlugin(ctx context.Context, network, host, port stri... function listenerKey (line 684) | func listenerKey(network, addr string) string { type ListenerFunc (line 692) | type ListenerFunc type ListenerWrapper (line 705) | type ListenerWrapper interface type PacketConnWrapper (line 718) | type PacketConnWrapper interface constant maxPortSpan (line 725) | maxPortSpan = 65535 FILE: listeners_fuzz.go function FuzzParseNetworkAddress (line 19) | func FuzzParseNetworkAddress(data []byte) int { FILE: listeners_test.go function TestSplitNetworkAddress (line 24) | func TestSplitNetworkAddress(t *testing.T) { function TestJoinNetworkAddress (line 117) | func TestJoinNetworkAddress(t *testing.T) { function TestParseNetworkAddress (line 178) | func TestParseNetworkAddress(t *testing.T) { function TestParseNetworkAddressWithDefaults (line 304) | func TestParseNetworkAddressWithDefaults(t *testing.T) { function TestJoinHostPort (line 430) | func TestJoinHostPort(t *testing.T) { function TestExpand (line 479) | func TestExpand(t *testing.T) { function TestSplitUnixSocketPermissionsBits (line 561) | func TestSplitUnixSocketPermissionsBits(t *testing.T) { FILE: logging.go function init (line 35) | func init() { type Logging (line 62) | type Logging struct method openLogs (line 86) | func (logging *Logging) openLogs(ctx Context) error { method setupNewDefault (line 137) | func (logging *Logging) setupNewDefault(ctx Context) error { method closeLogs (line 208) | func (logging *Logging) closeLogs() error { method Logger (line 219) | func (logging *Logging) Logger(mod Module) *zap.Logger { method openWriter (line 250) | func (logging *Logging) openWriter(opener WriterOpener) (io.WriteClose... type WriterOpener (line 267) | type WriterOpener interface function IsWriterStandardStream (line 282) | func IsWriterStandardStream(wo WriterOpener) bool { type writerDestructor (line 291) | type writerDestructor struct method Destruct (line 295) | func (wdest writerDestructor) Destruct() error { type BaseLog (line 300) | type BaseLog struct method provisionCommon (line 342) | func (cl *BaseLog) provisionCommon(ctx Context, logging *Logging) error { method buildCore (line 396) | func (cl *BaseLog) buildCore() { method buildOptions (line 425) | func (cl *BaseLog) buildOptions() ([]zap.Option, error) { type SinkLog (line 448) | type SinkLog struct method provision (line 452) | func (sll *SinkLog) provision(ctx Context, logging *Logging) error { type CustomLog (line 476) | type CustomLog struct method provision (line 490) | func (cl *CustomLog) provision(ctx Context, logging *Logging) error { method matchesModule (line 525) | func (cl *CustomLog) matchesModule(moduleID string) bool { method loggerAllowed (line 533) | func (cl *CustomLog) loggerAllowed(name string, isModule bool) bool { type filteringCore (line 596) | type filteringCore struct method With (line 602) | func (fc *filteringCore) With(fields []zapcore.Field) zapcore.Core { method Check (line 611) | func (fc *filteringCore) Check(e zapcore.Entry, ce *zapcore.CheckedEnt... type LogSampling (line 619) | type LogSampling struct type StdoutWriter (line 635) | type StdoutWriter struct method CaddyModule (line 645) | func (StdoutWriter) CaddyModule() ModuleInfo { method String (line 668) | func (StdoutWriter) String() string { return "stdout" } method WriterKey (line 673) | func (StdoutWriter) WriterKey() string { return "std:out" } method OpenWriter (line 682) | func (StdoutWriter) OpenWriter() (io.WriteCloser, error) { type StderrWriter (line 638) | type StderrWriter struct method CaddyModule (line 653) | func (StderrWriter) CaddyModule() ModuleInfo { method String (line 669) | func (StderrWriter) String() string { return "stderr" } method WriterKey (line 676) | func (StderrWriter) WriterKey() string { return "std:err" } method OpenWriter (line 687) | func (StderrWriter) OpenWriter() (io.WriteCloser, error) { type DiscardWriter (line 641) | type DiscardWriter struct method CaddyModule (line 661) | func (DiscardWriter) CaddyModule() ModuleInfo { method String (line 670) | func (DiscardWriter) String() string { return "discard" } method WriterKey (line 679) | func (DiscardWriter) WriterKey() string { return "discard" } method OpenWriter (line 692) | func (DiscardWriter) OpenWriter() (io.WriteCloser, error) { type notClosable (line 697) | type notClosable struct method Close (line 699) | func (fc notClosable) Close() error { return nil } type defaultCustomLog (line 701) | type defaultCustomLog struct function newDefaultProductionLog (line 710) | func newDefaultProductionLog() (*defaultCustomLog, error) { function newDefaultProductionLogEncoder (line 735) | func newDefaultProductionLogEncoder(wo WriterOpener) zapcore.Encoder { function parseLevel (line 751) | func parseLevel(levelInput string) (zapcore.LevelEnabler, error) { function Log (line 779) | func Log() *zap.Logger { function BufferedLog (line 791) | func BufferedLog() (*zap.Logger, *zap.Logger, *internal.LogBufferCore) { type ConfiguresFormatterDefault (line 813) | type ConfiguresFormatterDefault interface constant DefaultLoggerName (line 817) | DefaultLoggerName = "default" FILE: logging_test.go function TestCustomLog_loggerAllowed (line 19) | func TestCustomLog_loggerAllowed(t *testing.T) { FILE: metrics.go function init (line 12) | func init() { function instrumentHandlerCounter (line 53) | func instrumentHandlerCounter(counter *prometheus.CounterVec, next http.... function newDelegator (line 64) | func newDelegator(w http.ResponseWriter) *delegator { type delegator (line 70) | type delegator struct method WriteHeader (line 75) | func (d *delegator) WriteHeader(code int) { method Unwrap (line 82) | func (d *delegator) Unwrap() http.ResponseWriter { FILE: modules.go type Module (line 54) | type Module interface type ModuleInfo (line 63) | type ModuleInfo struct method String (line 120) | func (mi ModuleInfo) String() string { return string(mi.ID) } type ModuleID (line 98) | type ModuleID method Namespace (line 103) | func (id ModuleID) Namespace() string { method Name (line 112) | func (id ModuleID) Name() string { type ModuleMap (line 128) | type ModuleMap function RegisterModule (line 138) | func RegisterModule(instance Module) { function GetModule (line 164) | func GetModule(name string) (ModuleInfo, error) { function GetModuleName (line 177) | func GetModuleName(instance any) string { function GetModuleID (line 187) | func GetModuleID(instance any) string { function GetModules (line 204) | func GetModules(scope string) []ModuleInfo { function Modules (line 246) | func Modules() []string { function getModuleNameInline (line 263) | func getModuleNameInline(moduleNameKey string, raw json.RawMessage) (str... type Provisioner (line 296) | type Provisioner interface type Validator (line 305) | type Validator interface type CleanerUpper (line 315) | type CleanerUpper interface function ParseStructTag (line 322) | func ParseStructTag(tag string) (map[string]string, error) { function StrictUnmarshalJSON (line 342) | func StrictUnmarshalJSON(data []byte, v any) error { function isJSONRawMessage (line 355) | func isJSONRawMessage(typ reflect.Type) bool { function isModuleMapType (line 365) | func isModuleMapType(typ reflect.Type) bool { type ProxyFuncProducer (line 375) | type ProxyFuncProducer interface FILE: modules/caddyevents/app.go function init (line 29) | func init() { type App (line 72) | type App struct method CaddyModule (line 112) | func (App) CaddyModule() caddy.ModuleInfo { method Provision (line 120) | func (app *App) Provision(ctx caddy.Context) error { method Start (line 145) | func (app *App) Start() error { method Stop (line 158) | func (app *App) Stop() error { method Subscribe (line 166) | func (app *App) Subscribe(s *Subscription) error { method On (line 194) | func (app *App) On(eventName string, handler Handler) error { method Emit (line 207) | func (app *App) Emit(ctx caddy.Context, eventName string, data map[str... type Subscription (line 87) | type Subscription struct type Handler (line 327) | type Handler interface FILE: modules/caddyevents/eventsconfig/caddyfile.go function init (line 30) | func init() { function parseApp (line 42) | func parseApp(d *caddyfile.Dispenser, _ any) (any, error) { FILE: modules/caddyfs/filesystem.go function init (line 16) | func init() { type moduleEntry (line 21) | type moduleEntry struct method UnmarshalCaddyfile (line 89) | func (f *moduleEntry) UnmarshalCaddyfile(d *caddyfile.Dispenser) error { type Filesystems (line 28) | type Filesystems struct method CaddyModule (line 50) | func (Filesystems) CaddyModule() caddy.ModuleInfo { method Start (line 57) | func (xs *Filesystems) Start() error { return nil } method Stop (line 58) | func (xs *Filesystems) Stop() error { return nil } method Provision (line 60) | func (xs *Filesystems) Provision(ctx caddy.Context) error { method Cleanup (line 82) | func (f *Filesystems) Cleanup() error { function parseFilesystems (line 34) | func parseFilesystems(d *caddyfile.Dispenser, existingVal any) (any, err... FILE: modules/caddyhttp/app.go function init (line 38) | func init() { type App (line 111) | type App struct method CaddyModule (line 166) | func (App) CaddyModule() caddy.ModuleInfo { method Provision (line 174) | func (app *App) Provision(ctx caddy.Context) error { method Validate (line 416) | func (app *App) Validate() error { method Start (line 470) | func (app *App) Start() error { method Stop (line 679) | func (app *App) Stop() error { method Cleanup (line 826) | func (app *App) Cleanup() error { method httpPort (line 833) | func (app *App) httpPort() int { method httpsPort (line 840) | func (app *App) httpsPort() int { function removeTLSALPN (line 449) | func removeTLSALPN(srv *Server, target string) { constant defaultIdleTimeout (line 852) | defaultIdleTimeout = caddy.Duration(5 * time.Minute) constant defaultReadHeaderTimeout (line 859) | defaultReadHeaderTimeout = caddy.Duration(time.Minute) FILE: modules/caddyhttp/autohttps.go type AutoHTTPSConfig (line 36) | type AutoHTTPSConfig struct method automaticHTTPSPhase1 (line 77) | func (app *App) automaticHTTPSPhase1(ctx caddy.Context, repl *caddy.Repl... method makeRedirRoute (line 520) | func (app *App) makeRedirRoute(redirToPort uint, matcherSet MatcherSet) ... method createAutomationPolicies (line 559) | func (app *App) createAutomationPolicies(ctx caddy.Context, internalName... method fillInACMEIssuer (line 789) | func (app *App) fillInACMEIssuer(acmeIssuer *caddytls.ACMEIssuer) error { method automaticHTTPSPhase2 (line 831) | func (app *App) automaticHTTPSPhase2() error { function isTailscaleDomain (line 846) | func isTailscaleDomain(name string) bool { type acmeCapable (line 850) | type acmeCapable interface function getFirstHostFromRoute (line 855) | func getFirstHostFromRoute(r Route) string { FILE: modules/caddyhttp/caddyauth/argon2id.go function init (line 30) | func init() { constant argon2idName (line 35) | argon2idName = "argon2id" constant defaultArgon2idTime (line 36) | defaultArgon2idTime = 1 constant defaultArgon2idMemory (line 37) | defaultArgon2idMemory = 46 * 1024 constant defaultArgon2idThreads (line 38) | defaultArgon2idThreads = 1 constant defaultArgon2idKeylen (line 39) | defaultArgon2idKeylen = 32 constant defaultSaltLength (line 40) | defaultSaltLength = 16 type Argon2idHash (line 44) | type Argon2idHash struct method CaddyModule (line 53) | func (Argon2idHash) CaddyModule() caddy.ModuleInfo { method Compare (line 61) | func (Argon2idHash) Compare(hashed, plaintext []byte) (bool, error) { method Hash (line 80) | func (b Argon2idHash) Hash(plaintext []byte) ([]byte, error) { method FakeHash (line 170) | func (Argon2idHash) FakeHash() []byte { function DecodeHash (line 112) | func DecodeHash(hash []byte) (*Argon2idHash, []byte, error) { function generateSalt (line 182) | func generateSalt(length int) ([]byte, error) { FILE: modules/caddyhttp/caddyauth/basicauth.go function init (line 32) | func init() { type HTTPBasicAuth (line 37) | type HTTPBasicAuth struct method CaddyModule (line 71) | func (HTTPBasicAuth) CaddyModule() caddy.ModuleInfo { method Provision (line 79) | func (hba *HTTPBasicAuth) Provision(ctx caddy.Context) error { method Authenticate (line 143) | func (hba HTTPBasicAuth) Authenticate(w http.ResponseWriter, req *http... method correctPassword (line 165) | func (hba HTTPBasicAuth) correctPassword(account Account, plaintextPas... method promptForCredentials (line 207) | func (hba HTTPBasicAuth) promptForCredentials(w http.ResponseWriter, e... type Cache (line 222) | type Cache struct method makeRoom (line 233) | func (c *Cache) makeRoom() { type Comparer (line 264) | type Comparer interface type Hasher (line 278) | type Hasher interface type Account (line 284) | type Account struct FILE: modules/caddyhttp/caddyauth/bcrypt.go function init (line 25) | func init() { constant bcryptName (line 31) | bcryptName = "bcrypt" constant defaultBcryptCost (line 32) | defaultBcryptCost = 14 type BcryptHash (line 36) | type BcryptHash struct method CaddyModule (line 43) | func (BcryptHash) CaddyModule() caddy.ModuleInfo { method Compare (line 51) | func (BcryptHash) Compare(hashed, plaintext []byte) (bool, error) { method Hash (line 63) | func (b BcryptHash) Hash(plaintext []byte) ([]byte, error) { method FakeHash (line 73) | func (BcryptHash) FakeHash() []byte { FILE: modules/caddyhttp/caddyauth/caddyauth.go function init (line 28) | func init() { type Authentication (line 45) | type Authentication struct method CaddyModule (line 56) | func (Authentication) CaddyModule() caddy.ModuleInfo { method Provision (line 65) | func (a *Authentication) Provision(ctx caddy.Context) error { method ServeHTTP (line 78) | func (a Authentication) ServeHTTP(w http.ResponseWriter, r *http.Reque... type Authenticator (line 114) | type Authenticator interface type User (line 119) | type User struct FILE: modules/caddyhttp/caddyauth/caddyfile.go function init (line 24) | func init() { function parseCaddyfile (line 37) | func parseCaddyfile(h httpcaddyfile.Helper) (caddyhttp.MiddlewareHandler... FILE: modules/caddyhttp/caddyauth/command.go function init (line 32) | func init() { function cmdHashPassword (line 89) | func cmdHashPassword(fs caddycmd.Flags) (int, error) { FILE: modules/caddyhttp/caddyhttp.go function init (line 32) | func init() { type RequestMatcher (line 43) | type RequestMatcher interface type RequestMatcherWithError (line 55) | type RequestMatcherWithError interface type Handler (line 65) | type Handler interface type HandlerFunc (line 70) | type HandlerFunc method ServeHTTP (line 73) | func (f HandlerFunc) ServeHTTP(w http.ResponseWriter, r *http.Request)... type Middleware (line 79) | type Middleware type MiddlewareHandler (line 90) | type MiddlewareHandler interface type ResponseHandler (line 126) | type ResponseHandler struct method Provision (line 143) | func (rh *ResponseHandler) Provision(ctx caddy.Context) error { type WeakString (line 162) | type WeakString method UnmarshalJSON (line 166) | func (ws *WeakString) UnmarshalJSON(b []byte) error { method MarshalJSON (line 188) | func (ws WeakString) MarshalJSON() ([]byte, error) { method Int (line 203) | func (ws WeakString) Int() int { method Float64 (line 210) | func (ws WeakString) Float64() float64 { method Bool (line 217) | func (ws WeakString) Bool() bool { method String (line 222) | func (ws WeakString) String() string { function StatusCodeMatches (line 230) | func StatusCodeMatches(actual, configured int) bool { function SanitizedPathJoin (line 252) | func SanitizedPathJoin(root, reqPath string) string { function CleanPath (line 279) | func CleanPath(p string, collapseSlashes bool) string { function cleanPath (line 302) | func cleanPath(p string) string { type tlsPlaceholderWrapper (line 314) | type tlsPlaceholderWrapper struct method CaddyModule (line 316) | func (tlsPlaceholderWrapper) CaddyModule() caddy.ModuleInfo { method WrapListener (line 323) | func (tlsPlaceholderWrapper) WrapListener(ln net.Listener) net.Listene... method UnmarshalCaddyfile (line 325) | func (tlsPlaceholderWrapper) UnmarshalCaddyfile(d *caddyfile.Dispenser... constant DefaultHTTPPort (line 329) | DefaultHTTPPort = 80 constant DefaultHTTPSPort (line 332) | DefaultHTTPSPort = 443 constant separator (line 335) | separator = string(filepath.Separator) FILE: modules/caddyhttp/caddyhttp_test.go function TestSanitizedPathJoin (line 10) | func TestSanitizedPathJoin(t *testing.T) { function TestCleanPath (line 150) | func TestCleanPath(t *testing.T) { FILE: modules/caddyhttp/celmatcher.go function init (line 45) | func init() { type MatchExpression (line 61) | type MatchExpression struct method CaddyModule (line 80) | func (MatchExpression) CaddyModule() caddy.ModuleInfo { method MarshalJSON (line 88) | func (m MatchExpression) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 105) | func (m *MatchExpression) UnmarshalJSON(data []byte) error { method Provision (line 122) | func (m *MatchExpression) Provision(ctx caddy.Context) error { method Match (line 204) | func (m MatchExpression) Match(r *http.Request) bool { method MatchWithError (line 213) | func (m MatchExpression) MatchWithError(r *http.Request) (bool, error) { method UnmarshalCaddyfile (line 227) | func (m *MatchExpression) UnmarshalCaddyfile(d *caddyfile.Dispenser) e... method caddyPlaceholderFunc (line 259) | func (m MatchExpression) caddyPlaceholderFunc(lhs, rhs ref.Val) ref.Val { type celHTTPRequest (line 290) | type celHTTPRequest struct method ResolveName (line 292) | func (cr celHTTPRequest) ResolveName(name string) (any, bool) { method Parent (line 299) | func (cr celHTTPRequest) Parent() interpreter.Activation { method ConvertToNative (line 303) | func (cr celHTTPRequest) ConvertToNative(typeDesc reflect.Type) (any, ... method ConvertToType (line 307) | func (celHTTPRequest) ConvertToType(typeVal ref.Type) ref.Val { method Equal (line 311) | func (cr celHTTPRequest) Equal(other ref.Val) ref.Val { method Type (line 317) | func (celHTTPRequest) Type() ref.Type { return httpRequestCELType } method Value (line 318) | func (cr celHTTPRequest) Value() any { return cr } type celPkixName (line 324) | type celPkixName struct method ConvertToNative (line 326) | func (pn celPkixName) ConvertToNative(typeDesc reflect.Type) (any, err... method ConvertToType (line 330) | func (pn celPkixName) ConvertToType(typeVal ref.Type) ref.Val { method Equal (line 337) | func (pn celPkixName) Equal(other ref.Val) ref.Val { method Type (line 343) | func (celPkixName) Type() ref.Type { return pkixNameCELType } method Value (line 344) | func (pn celPkixName) Value() any { return pn } type celTypeAdapter (line 347) | type celTypeAdapter struct method NativeToValue (line 349) | func (celTypeAdapter) NativeToValue(value any) ref.Val { type CELLibraryProducer (line 366) | type CELLibraryProducer interface function CELMatcherImpl (line 391) | func CELMatcherImpl(macroName, funcName string, matcherDataTypes []*cel.... type matcherCELLibrary (line 444) | type matcherCELLibrary struct method CompileOptions (line 457) | func (lib *matcherCELLibrary) CompileOptions() []cel.EnvOption { method ProgramOptions (line 461) | func (lib *matcherCELLibrary) ProgramOptions() []cel.ProgramOption { function NewMatcherCELLibrary (line 450) | func NewMatcherCELLibrary(envOptions []cel.EnvOption, programOptions []c... function CELMatcherDecorator (line 469) | func CELMatcherDecorator(funcName string, fac any) interpreter.Interpret... function CELMatcherRuntimeFunction (line 554) | func CELMatcherRuntimeFunction(funcName string, fac any) functions.Binar... function celMatcherStringListMacroExpander (line 592) | func celMatcherStringListMacroExpander(funcName string) cel.MacroFactory { function celMatcherStringMacroExpander (line 613) | func celMatcherStringMacroExpander(funcName string) parser.MacroExpander { function celMatcherJSONMacroExpander (line 629) | func celMatcherJSONMacroExpander(funcName string) parser.MacroExpander { function CELValueToMapStrList (line 669) | func CELValueToMapStrList(data ref.Val) (map[string][]string, error) { function isCELStringExpr (line 733) | func isCELStringExpr(e ast.Expr) bool { function isCELStringLiteral (line 738) | func isCELStringLiteral(e ast.Expr) bool { function isCELCaddyPlaceholderCall (line 753) | func isCELCaddyPlaceholderCall(e ast.Expr) bool { function isCELConcatCall (line 768) | func isCELConcatCall(e ast.Expr) bool { function isCELStringListLiteral (line 792) | func isCELStringListLiteral(e ast.Expr) bool { constant CELPlaceholderFuncName (line 828) | CELPlaceholderFuncName = "ph" constant CELRequestVarName (line 831) | CELRequestVarName = "req" constant MatcherNameCtxKey (line 833) | MatcherNameCtxKey = "matcher_name" FILE: modules/caddyhttp/celmatcher_test.go function TestMatchExpressionMatch (line 450) | func TestMatchExpressionMatch(t *testing.T) { function BenchmarkMatchExpressionMatch (line 503) | func BenchmarkMatchExpressionMatch(b *testing.B) { function TestMatchExpressionProvision (line 545) | func TestMatchExpressionProvision(t *testing.T) { FILE: modules/caddyhttp/encode/brotli/brotli_precompressed.go function init (line 8) | func init() { type BrotliPrecompressed (line 13) | type BrotliPrecompressed struct method CaddyModule (line 16) | func (BrotliPrecompressed) CaddyModule() caddy.ModuleInfo { method AcceptEncoding (line 25) | func (BrotliPrecompressed) AcceptEncoding() string { return "br" } method Suffix (line 28) | func (BrotliPrecompressed) Suffix() string { return ".br" } FILE: modules/caddyhttp/encode/caddyfile.go function init (line 27) | func init() { function parseCaddyfile (line 31) | func parseCaddyfile(h httpcaddyfile.Helper) (caddyhttp.MiddlewareHandler... method UnmarshalCaddyfile (line 56) | func (enc *Encode) UnmarshalCaddyfile(d *caddyfile.Dispenser) error { FILE: modules/caddyhttp/encode/encode.go function init (line 37) | func init() { type Encode (line 42) | type Encode struct method CaddyModule (line 61) | func (Encode) CaddyModule() caddy.ModuleInfo { method Provision (line 69) | func (enc *Encode) Provision(ctx caddy.Context) error { method Validate (line 134) | func (enc *Encode) Validate() error { method ServeHTTP (line 154) | func (enc *Encode) ServeHTTP(w http.ResponseWriter, r *http.Request, n... method addEncoding (line 193) | func (enc *Encode) addEncoding(e Encoding) error { method openResponseWriter (line 215) | func (enc *Encode) openResponseWriter(encodingName string, w http.Resp... method initResponseWriter (line 222) | func (enc *Encode) initResponseWriter(rw *responseWriter, encodingName... method Match (line 278) | func (enc *Encode) Match(rw *responseWriter) bool { function isEncodeAllowed (line 150) | func isEncodeAllowed(h http.Header) bool { type responseWriter (line 238) | type responseWriter struct method WriteHeader (line 251) | func (rw *responseWriter) WriteHeader(status int) { method FlushError (line 284) | func (rw *responseWriter) FlushError() error { method Write (line 313) | func (rw *responseWriter) Write(p []byte) (int, error) { method ReadFrom (line 374) | func (rw *responseWriter) ReadFrom(r io.Reader) (int64, error) { method Close (line 407) | func (rw *responseWriter) Close() error { method Unwrap (line 433) | func (rw *responseWriter) Unwrap() http.ResponseWriter { method init (line 438) | func (rw *responseWriter) init() { type writerOnly (line 363) | type writerOnly struct constant sniffLen (line 368) | sniffLen = 512 function hasVaryValue (line 472) | func hasVaryValue(hdr http.Header, target string) bool { function AcceptedEncodings (line 490) | func AcceptedEncodings(r *http.Request, preferredOrder []string) []string { type encodingPreference (line 557) | type encodingPreference struct type Encoder (line 564) | type Encoder interface type Encoding (line 572) | type Encoding interface type Precompressed (line 579) | type Precompressed interface constant defaultMinLength (line 585) | defaultMinLength = 512 FILE: modules/caddyhttp/encode/encode_test.go function BenchmarkOpenResponseWriter (line 10) | func BenchmarkOpenResponseWriter(b *testing.B) { function TestPreferOrder (line 17) | func TestPreferOrder(t *testing.T) { function TestValidate (line 125) | func TestValidate(t *testing.T) { function TestIsEncodeAllowed (line 252) | func TestIsEncodeAllowed(t *testing.T) { FILE: modules/caddyhttp/encode/gzip/gzip.go function init (line 28) | func init() { type Gzip (line 33) | type Gzip struct method CaddyModule (line 38) | func (Gzip) CaddyModule() caddy.ModuleInfo { method UnmarshalCaddyfile (line 46) | func (g *Gzip) UnmarshalCaddyfile(d *caddyfile.Dispenser) error { method Provision (line 61) | func (g *Gzip) Provision(ctx caddy.Context) error { method Validate (line 69) | func (g Gzip) Validate() error { method AcceptEncoding (line 81) | func (Gzip) AcceptEncoding() string { return "gzip" } method NewEncoder (line 84) | func (g Gzip) NewEncoder() encode.Encoder { FILE: modules/caddyhttp/encode/gzip/gzip_precompressed.go function init (line 8) | func init() { type GzipPrecompressed (line 13) | type GzipPrecompressed struct method CaddyModule (line 18) | func (GzipPrecompressed) CaddyModule() caddy.ModuleInfo { method Suffix (line 26) | func (GzipPrecompressed) Suffix() string { return ".gz" } FILE: modules/caddyhttp/encode/zstd/zstd.go function init (line 27) | func init() { type Zstd (line 32) | type Zstd struct method CaddyModule (line 41) | func (Zstd) CaddyModule() caddy.ModuleInfo { method UnmarshalCaddyfile (line 49) | func (z *Zstd) UnmarshalCaddyfile(d *caddyfile.Dispenser) error { method Provision (line 68) | func (z *Zstd) Provision(ctx caddy.Context) error { method AcceptEncoding (line 86) | func (Zstd) AcceptEncoding() string { return "zstd" } method NewEncoder (line 89) | func (z Zstd) NewEncoder() encode.Encoder { FILE: modules/caddyhttp/encode/zstd/zstd_precompressed.go function init (line 8) | func init() { type ZstdPrecompressed (line 13) | type ZstdPrecompressed struct method CaddyModule (line 18) | func (ZstdPrecompressed) CaddyModule() caddy.ModuleInfo { method Suffix (line 26) | func (ZstdPrecompressed) Suffix() string { return ".zst" } FILE: modules/caddyhttp/errors.go function Error (line 32) | func Error(statusCode int, err error) HandlerError { type HandlerError (line 57) | type HandlerError struct method Error (line 65) | func (e HandlerError) Error() string { method Unwrap (line 83) | func (e HandlerError) Unwrap() error { return e.Err } function randString (line 90) | func randString(n int, sameCase bool) string { function trace (line 106) | func trace() string { constant ErrorCtxKey (line 117) | ErrorCtxKey = caddy.CtxKey("handler_chain_error") FILE: modules/caddyhttp/fileserver/browse.go type Browse (line 53) | type Browse struct constant defaultDirEntryLimit (line 75) | defaultDirEntryLimit = 10000 method serveBrowse (line 78) | func (fsrv *FileServer) serveBrowse(fileSystem fs.FS, root, dirPath stri... method loadDirectoryContents (line 216) | func (fsrv *FileServer) loadDirectoryContents(ctx context.Context, fileS... method browseApplyQueryParams (line 239) | func (fsrv *FileServer) browseApplyQueryParams(w http.ResponseWriter, r ... method makeBrowseTemplate (line 303) | func (fsrv *FileServer) makeBrowseTemplate(tplCtx *templateContext) (*te... method isSymlinkTargetDir (line 326) | func (fsrv *FileServer) isSymlinkTargetDir(fileSystem fs.FS, f fs.FileIn... function isSymlink (line 339) | func isSymlink(f fs.FileInfo) bool { type templateContext (line 346) | type templateContext struct FILE: modules/caddyhttp/fileserver/browsetplcontext.go method directoryListing (line 38) | func (fsrv *FileServer) directoryListing(ctx context.Context, fileSystem... type browseTemplateContext (line 143) | type browseTemplateContext struct method Breadcrumbs (line 193) | func (l browseTemplateContext) Breadcrumbs() []crumb { method applySortAndLimit (line 220) | func (l *browseTemplateContext) applySortAndLimit(sortParam, orderPara... method HumanTotalFileSize (line 305) | func (btc browseTemplateContext) HumanTotalFileSize() string { method HumanTotalFileSizeFollowingSymlinks (line 311) | func (btc browseTemplateContext) HumanTotalFileSizeFollowingSymlinks()... type crumb (line 268) | type crumb struct type fileInfo (line 274) | type fileInfo struct method HasExt (line 289) | func (fi fileInfo) HasExt(exts ...string) bool { method HumanSize (line 298) | func (fi fileInfo) HumanSize() string { method HumanModTime (line 317) | func (fi fileInfo) HumanModTime(format string) string { type byName (line 322) | type byName method Len (line 328) | func (l byName) Len() int { return len(l.Items) } method Swap (line 329) | func (l byName) Swap(i, j int) { l.Items[i], l.Items[j] = l.Items[j], ... method Less (line 331) | func (l byName) Less(i, j int) bool { type byNameDirFirst (line 323) | type byNameDirFirst method Len (line 335) | func (l byNameDirFirst) Len() int { return len(l.Items) } method Swap (line 336) | func (l byNameDirFirst) Swap(i, j int) { l.Items[i], l.Items[j] = l.It... method Less (line 338) | func (l byNameDirFirst) Less(i, j int) bool { type bySize (line 324) | type bySize method Len (line 347) | func (l bySize) Len() int { return len(l.Items) } method Swap (line 348) | func (l bySize) Swap(i, j int) { l.Items[i], l.Items[j] = l.Items[j], ... method Less (line 350) | func (l bySize) Less(i, j int) bool { type byTime (line 325) | type byTime method Len (line 371) | func (l byTime) Len() int { return len(l.Items) } method Swap (line 372) | func (l byTime) Swap(i, j int) { l.Items[i], l.Items[j] = l.Items... method Less (line 373) | func (l byTime) Less(i, j int) bool { return l.Items[i].ModTime.Before... constant sortByName (line 376) | sortByName = "name" constant sortByNameDirFirst (line 377) | sortByNameDirFirst = "namedirfirst" constant sortBySize (line 378) | sortBySize = "size" constant sortByTime (line 379) | sortByTime = "time" constant sortOrderAsc (line 381) | sortOrderAsc = "asc" constant sortOrderDesc (line 382) | sortOrderDesc = "desc" FILE: modules/caddyhttp/fileserver/browsetplcontext_test.go function TestBreadcrumbs (line 21) | func TestBreadcrumbs(t *testing.T) { FILE: modules/caddyhttp/fileserver/caddyfile.go function init (line 31) | func init() { function parseCaddyfile (line 38) | func parseCaddyfile(h httpcaddyfile.Helper) (caddyhttp.MiddlewareHandler... method UnmarshalCaddyfile (line 67) | func (fsrv *FileServer) UnmarshalCaddyfile(d *caddyfile.Dispenser) error { method FinalizeUnmarshalCaddyfile (line 207) | func (fsrv *FileServer) FinalizeUnmarshalCaddyfile(h httpcaddyfile.Helpe... function parseTryFiles (line 255) | func parseTryFiles(h httpcaddyfile.Helper) ([]httpcaddyfile.ConfigValue,... FILE: modules/caddyhttp/fileserver/command.go function init (line 39) | func init() { function cmdFileServer (line 86) | func cmdFileServer(fs caddycmd.Flags) (int, error) { FILE: modules/caddyhttp/fileserver/matcher.go function init (line 43) | func init() { type MatchFile (line 65) | type MatchFile struct method CaddyModule (line 118) | func (MatchFile) CaddyModule() caddy.ModuleInfo { method UnmarshalCaddyfile (line 132) | func (m *MatchFile) UnmarshalCaddyfile(d *caddyfile.Dispenser) error { method CELLibrary (line 174) | func (MatchFile) CELLibrary(ctx caddy.Context) (cel.Library, error) { method Provision (line 274) | func (m *MatchFile) Provision(ctx caddy.Context) error { method Validate (line 296) | func (m MatchFile) Validate() error { method Match (line 317) | func (m MatchFile) Match(r *http.Request) bool { method MatchWithError (line 327) | func (m MatchFile) MatchWithError(r *http.Request) (bool, error) { method selectFile (line 333) | func (m MatchFile) selectFile(r *http.Request) (bool, error) { method strictFileExists (line 550) | func (m MatchFile) strictFileExists(fileSystem fs.FS, file string) (os... method firstSplit (line 579) | func (m MatchFile) firstSplit(path string) (splitPart, remainder strin... function celFileMatcherMacroExpander (line 225) | func celFileMatcherMacroExpander() parser.MacroExpander { function parseErrorCode (line 533) | func parseErrorCode(input string) error { function indexFold (line 596) | func indexFold(haystack, needle string) int { function isCELTryFilesLiteral (line 608) | func isCELTryFilesLiteral(e ast.Expr) bool { function isCELStringExpr (line 641) | func isCELStringExpr(e ast.Expr) bool { function isCELStringLiteral (line 646) | func isCELStringLiteral(e ast.Expr) bool { function isCELCaddyPlaceholderCall (line 661) | func isCELCaddyPlaceholderCall(e ast.Expr) bool { function isCELConcatCall (line 676) | func isCELConcatCall(e ast.Expr) bool { function isCELStringListLiteral (line 700) | func isCELStringListLiteral(e ast.Expr) bool { constant tryPolicyFirstExist (line 727) | tryPolicyFirstExist = "first_exist" constant tryPolicyFirstExistFallback (line 728) | tryPolicyFirstExistFallback = "first_exist_fallback" constant tryPolicyLargestSize (line 729) | tryPolicyLargestSize = "largest_size" constant tryPolicySmallestSize (line 730) | tryPolicySmallestSize = "smallest_size" constant tryPolicyMostRecentlyMod (line 731) | tryPolicyMostRecentlyMod = "most_recently_modified" FILE: modules/caddyhttp/fileserver/matcher_test.go type testCase (line 33) | type testCase struct function TestFileMatcher (line 40) | func TestFileMatcher(t *testing.T) { function TestFileMatcherNonWindows (line 127) | func TestFileMatcherNonWindows(t *testing.T) { function fileMatcherTest (line 150) | func fileMatcherTest(t *testing.T, i int, tc testCase) { function TestPHPFileMatcher (line 191) | func TestPHPFileMatcher(t *testing.T) { function TestFirstSplit (line 304) | func TestFirstSplit(t *testing.T) { function TestMatchExpressionMatch (line 406) | func TestMatchExpressionMatch(t *testing.T) { FILE: modules/caddyhttp/fileserver/staticfiles.go function init (line 41) | func init() { type FileServer (line 97) | type FileServer struct method CaddyModule (line 185) | func (FileServer) CaddyModule() caddy.ModuleInfo { method Provision (line 193) | func (fsrv *FileServer) Provision(ctx caddy.Context) error { method ServeHTTP (line 268) | func (fsrv *FileServer) ServeHTTP(w http.ResponseWriter, r *http.Reque... method openFile (line 591) | func (fsrv *FileServer) openFile(fileSystem fs.FS, filename string, w ... method mapDirOpenError (line 625) | func (fsrv *FileServer) mapDirOpenError(fileSystem fs.FS, originalErr ... method transformHidePaths (line 655) | func (fsrv *FileServer) transformHidePaths(repl *caddy.Replacer) []str... method notFound (line 722) | func (fsrv *FileServer) notFound(w http.ResponseWriter, r *http.Reques... method getEtagFromFile (line 758) | func (fsrv *FileServer) getEtagFromFile(fileSystem fs.FS, filename str... function fileHidden (line 673) | func fileHidden(filename string, hide []string) bool { function calculateEtag (line 744) | func calculateEtag(d os.FileInfo) string { function redirect (line 779) | func redirect(w http.ResponseWriter, r *http.Request, toPath string) err... type statusOverrideResponseWriter (line 795) | type statusOverrideResponseWriter struct method WriteHeader (line 802) | func (wr statusOverrideResponseWriter) WriteHeader(int) { method Unwrap (line 808) | func (wr statusOverrideResponseWriter) Unwrap() http.ResponseWriter { constant minBackoff (line 815) | minBackoff, maxBackoff = 2, 5 constant separator (line 816) | separator = string(filepath.Separator) FILE: modules/caddyhttp/fileserver/staticfiles_test.go function TestFileHidden (line 24) | func TestFileHidden(t *testing.T) { FILE: modules/caddyhttp/headers/caddyfile.go function init (line 27) | func init() { function parseCaddyfile (line 49) | func parseCaddyfile(h httpcaddyfile.Helper) ([]httpcaddyfile.ConfigValue... function parseReqHdrCaddyfile (line 163) | func parseReqHdrCaddyfile(h httpcaddyfile.Helper) ([]httpcaddyfile.Confi... function CaddyfileHeaderOp (line 221) | func CaddyfileHeaderOp(ops *HeaderOps, field, value string, replacement ... function applyHeaderOp (line 225) | func applyHeaderOp(ops *HeaderOps, respHeaderOps *RespHeaderOps, field, ... FILE: modules/caddyhttp/headers/headers.go function init (line 27) | func init() { type Handler (line 43) | type Handler struct method CaddyModule (line 49) | func (Handler) CaddyModule() caddy.ModuleInfo { method Provision (line 57) | func (h *Handler) Provision(ctx caddy.Context) error { method Validate (line 74) | func (h Handler) Validate() error { method ServeHTTP (line 90) | func (h Handler) ServeHTTP(w http.ResponseWriter, r *http.Request, nex... type HeaderOps (line 114) | type HeaderOps struct method Provision (line 135) | func (ops *HeaderOps) Provision(_ caddy.Context) error { method validate (line 176) | func (ops HeaderOps) validate() error { method ApplyTo (line 220) | func (ops *HeaderOps) ApplyTo(hdr http.Header, repl *caddy.Replacer) { method ApplyToRequest (line 344) | func (ops HeaderOps) ApplyToRequest(r *http.Request) { function containsPlaceholders (line 163) | func containsPlaceholders(s string) bool { type Replacement (line 190) | type Replacement struct type RespHeaderOps (line 204) | type RespHeaderOps struct type responseWriterWrapper (line 379) | type responseWriterWrapper struct method WriteHeader (line 387) | func (rww *responseWriterWrapper) WriteHeader(status int) { method Write (line 403) | func (rww *responseWriterWrapper) Write(d []byte) (int, error) { FILE: modules/caddyhttp/headers/headers_test.go function TestHandler (line 29) | func TestHandler(t *testing.T) { type nextHandler (line 270) | type nextHandler method ServeHTTP (line 272) | func (f nextHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)... function TestContainsPlaceholders (line 276) | func TestContainsPlaceholders(t *testing.T) { function TestHeaderProvisionSkipsPlaceholders (line 296) | func TestHeaderProvisionSkipsPlaceholders(t *testing.T) { function TestPlaceholderInSearchRegexp (line 324) | func TestPlaceholderInSearchRegexp(t *testing.T) { FILE: modules/caddyhttp/http2listener.go type connectionStater (line 12) | type connectionStater interface type http2Listener (line 25) | type http2Listener struct method Accept (line 33) | func (h *http2Listener) Accept() (net.Conn, error) { type tlsStateConn (line 77) | type tlsStateConn struct method tlsNetConn (line 81) | func (conn tlsStateConn) tlsNetConn() net.Conn { type http2StateConn (line 85) | type http2StateConn struct method ConnectionState (line 89) | func (conn http2StateConn) ConnectionState() tls.ConnectionState { type http2Conn (line 93) | type http2Conn struct method Read (line 104) | func (c *http2Conn) Read(p []byte) (int, error) { FILE: modules/caddyhttp/httpredirectlistener.go function init (line 29) | func init() { type HTTPRedirectListenerWrapper (line 46) | type HTTPRedirectListenerWrapper struct method CaddyModule (line 52) | func (HTTPRedirectListenerWrapper) CaddyModule() caddy.ModuleInfo { method UnmarshalCaddyfile (line 59) | func (h *HTTPRedirectListenerWrapper) UnmarshalCaddyfile(d *caddyfile.... method WrapListener (line 63) | func (h *HTTPRedirectListenerWrapper) WrapListener(l net.Listener) net... type httpRedirectListener (line 70) | type httpRedirectListener struct method Accept (line 77) | func (l *httpRedirectListener) Accept() (net.Conn, error) { type httpRedirectConn (line 95) | type httpRedirectConn struct method Read (line 106) | func (c *httpRedirectConn) Read(p []byte) (int, error) { function firstBytesLookLikeHTTP (line 163) | func firstBytesLookLikeHTTP(hdr []byte) bool { FILE: modules/caddyhttp/intercept/intercept.go function init (line 35) | func init() { type Intercept (line 45) | type Intercept struct method CaddyModule (line 70) | func (Intercept) CaddyModule() caddy.ModuleInfo { method Provision (line 80) | func (irh *Intercept) Provision(ctx caddy.Context) error { method ServeHTTP (line 128) | func (ir Intercept) ServeHTTP(w http.ResponseWriter, r *http.Request, ... method UnmarshalCaddyfile (line 226) | func (i *Intercept) UnmarshalCaddyfile(d *caddyfile.Dispenser) error { method FinalizeUnmarshalCaddyfile (line 294) | func (i *Intercept) FinalizeUnmarshalCaddyfile(helper httpcaddyfile.He... type interceptedResponseHandler (line 103) | type interceptedResponseHandler struct method WriteHeader (line 112) | func (irh interceptedResponseHandler) WriteHeader(statusCode int) { method Unwrap (line 123) | func (irh interceptedResponseHandler) Unwrap() http.ResponseWriter { constant matcherPrefix (line 363) | matcherPrefix = "@" function parseCaddyfile (line 365) | func parseCaddyfile(helper httpcaddyfile.Helper) (caddyhttp.MiddlewareHa... FILE: modules/caddyhttp/invoke.go function init (line 24) | func init() { type Invoke (line 32) | type Invoke struct method CaddyModule (line 38) | func (Invoke) CaddyModule() caddy.ModuleInfo { method ServeHTTP (line 45) | func (invoke *Invoke) ServeHTTP(w http.ResponseWriter, r *http.Request... FILE: modules/caddyhttp/ip_matchers.go type MatchRemoteIP (line 37) | type MatchRemoteIP struct method CaddyModule (line 67) | func (MatchRemoteIP) CaddyModule() caddy.ModuleInfo { method UnmarshalCaddyfile (line 75) | func (m *MatchRemoteIP) UnmarshalCaddyfile(d *caddyfile.Dispenser) err... method CELLibrary (line 101) | func (MatchRemoteIP) CELLibrary(ctx caddy.Context) (cel.Library, error) { method Provision (line 133) | func (m *MatchRemoteIP) Provision(ctx caddy.Context) error { method Match (line 146) | func (m MatchRemoteIP) Match(r *http.Request) bool { method MatchWithError (line 155) | func (m MatchRemoteIP) MatchWithError(r *http.Request) (bool, error) { type MatchClientIP (line 50) | type MatchClientIP struct method CaddyModule (line 183) | func (MatchClientIP) CaddyModule() caddy.ModuleInfo { method UnmarshalCaddyfile (line 191) | func (m *MatchClientIP) UnmarshalCaddyfile(d *caddyfile.Dispenser) err... method CELLibrary (line 214) | func (MatchClientIP) CELLibrary(ctx caddy.Context) (cel.Library, error) { method Provision (line 241) | func (m *MatchClientIP) Provision(ctx caddy.Context) error { method Match (line 253) | func (m MatchClientIP) Match(r *http.Request) bool { method MatchWithError (line 262) | func (m MatchClientIP) MatchWithError(r *http.Request) (bool, error) { function init (line 61) | func init() { function provisionCidrsZonesFromRanges (line 284) | func provisionCidrsZonesFromRanges(ranges []string) ([]*netip.Prefix, []... function parseIPZoneFromString (line 317) | func parseIPZoneFromString(address string) (netip.Addr, string, error) { function matchIPByCidrZones (line 340) | func matchIPByCidrZones(clientIP netip.Addr, zoneID string, cidrs []*net... FILE: modules/caddyhttp/ip_range.go function init (line 28) | func init() { type IPRangeSource (line 52) | type IPRangeSource interface type StaticIPRange (line 57) | type StaticIPRange struct method CaddyModule (line 66) | func (StaticIPRange) CaddyModule() caddy.ModuleInfo { method Provision (line 73) | func (s *StaticIPRange) Provision(ctx caddy.Context) error { method GetIPRanges (line 85) | func (s *StaticIPRange) GetIPRanges(_ *http.Request) []netip.Prefix { method UnmarshalCaddyfile (line 90) | func (m *StaticIPRange) UnmarshalCaddyfile(d *caddyfile.Dispenser) err... function CIDRExpressionToPrefix (line 106) | func CIDRExpressionToPrefix(expr string) (netip.Prefix, error) { function PrivateRangesCIDR (line 135) | func PrivateRangesCIDR() []string { FILE: modules/caddyhttp/logging.go function init (line 34) | func init() { type ServerLogConfig (line 44) | type ServerLogConfig struct method wrapLogger (line 93) | func (slc ServerLogConfig) wrapLogger(logger *zap.Logger, req *http.Re... method getLoggerHosts (line 135) | func (slc ServerLogConfig) getLoggerHosts(host string) []string { method clone (line 157) | func (slc *ServerLogConfig) clone() *ServerLogConfig { type StringArray (line 174) | type StringArray method UnmarshalJSON (line 177) | func (sa *StringArray) UnmarshalJSON(b []byte) error { function errLogValues (line 206) | func errLogValues(err error) (status int, msg string, fields func() []za... type ExtraLogFields (line 235) | type ExtraLogFields struct method Add (line 241) | func (e *ExtraLogFields) Add(field zap.Field) { method Set (line 248) | func (e *ExtraLogFields) Set(field zap.Field) { method getSloggerHandler (line 260) | func (e *ExtraLogFields) getSloggerHandler(handler *extraFieldsSlogHan... constant LogSkipVar (line 286) | LogSkipVar string = "log_skip" constant ExtraLogFieldsCtxKey (line 289) | ExtraLogFieldsCtxKey caddy.CtxKey = "extra_log_fields" constant AccessLoggerNameVarKey (line 292) | AccessLoggerNameVarKey string = "access_logger_names" type extraFieldsSlogHandler (line 295) | type extraFieldsSlogHandler struct method Enabled (line 303) | func (e *extraFieldsSlogHandler) Enabled(ctx context.Context, level sl... method Handle (line 307) | func (e *extraFieldsSlogHandler) Handle(ctx context.Context, record sl... method WithAttrs (line 315) | func (e *extraFieldsSlogHandler) WithAttrs(attrs []slog.Attr) slog.Han... method WithGroup (line 325) | func (e *extraFieldsSlogHandler) WithGroup(name string) slog.Handler { FILE: modules/caddyhttp/logging/caddyfile.go function init (line 25) | func init() { function parseCaddyfile (line 32) | func parseCaddyfile(h httpcaddyfile.Helper) (caddyhttp.MiddlewareHandler... method UnmarshalCaddyfile (line 39) | func (h *LogAppend) UnmarshalCaddyfile(d *caddyfile.Dispenser) error { FILE: modules/caddyhttp/logging/logappend.go function init (line 29) | func init() { type LogAppend (line 36) | type LogAppend struct method CaddyModule (line 56) | func (LogAppend) CaddyModule() caddy.ModuleInfo { method ServeHTTP (line 63) | func (h LogAppend) ServeHTTP(w http.ResponseWriter, r *http.Request, n... method addLogField (line 120) | func (h LogAppend) addLogField(r *http.Request, buf *bytes.Buffer) { constant placeholderRequestBody (line 164) | placeholderRequestBody = "{http.request.body}" constant placeholderRequestBodyBase64 (line 165) | placeholderRequestBodyBase64 = "{http.request.body_base64}" constant placeholderResponseBody (line 166) | placeholderResponseBody = "{http.response.body}" constant placeholderResponseBodyBase64 (line 167) | placeholderResponseBodyBase64 = "{http.response.body_base64}" FILE: modules/caddyhttp/map/caddyfile.go function init (line 24) | func init() { function parseCaddyfile (line 44) | func parseCaddyfile(h httpcaddyfile.Helper) (caddyhttp.MiddlewareHandler... FILE: modules/caddyhttp/map/map.go function init (line 28) | func init() { type Handler (line 39) | type Handler struct method CaddyModule (line 57) | func (Handler) CaddyModule() caddy.ModuleInfo { method Provision (line 65) | func (h *Handler) Provision(_ caddy.Context) error { method Validate (line 91) | func (h *Handler) Validate() error { method ServeHTTP (line 124) | func (h Handler) ServeHTTP(w http.ResponseWriter, r *http.Request, nex... type Mapping (line 175) | type Mapping struct FILE: modules/caddyhttp/map/map_test.go function TestHandler (line 14) | func TestHandler(t *testing.T) { FILE: modules/caddyhttp/marshalers.go type LoggableHTTPRequest (line 27) | type LoggableHTTPRequest struct method MarshalLogObject (line 34) | func (r LoggableHTTPRequest) MarshalLogObject(enc zapcore.ObjectEncode... type LoggableHTTPHeader (line 66) | type LoggableHTTPHeader struct method MarshalLogObject (line 73) | func (h LoggableHTTPHeader) MarshalLogObject(enc zapcore.ObjectEncoder... type LoggableStringArray (line 90) | type LoggableStringArray method MarshalLogArray (line 93) | func (sa LoggableStringArray) MarshalLogArray(enc zapcore.ArrayEncoder... type LoggableTLSConnState (line 104) | type LoggableTLSConnState method MarshalLogObject (line 107) | func (t LoggableTLSConnState) MarshalLogObject(enc zapcore.ObjectEncod... FILE: modules/caddyhttp/matchers.go type MatchHost (line 65) | type MatchHost method CaddyModule (line 236) | func (MatchHost) CaddyModule() caddy.ModuleInfo { method UnmarshalCaddyfile (line 244) | func (m *MatchHost) UnmarshalCaddyfile(d *caddyfile.Dispenser) error { method Provision (line 256) | func (m MatchHost) Provision(_ caddy.Context) error { method Match (line 301) | func (m MatchHost) Match(r *http.Request) bool { method MatchWithError (line 307) | func (m MatchHost) MatchWithError(r *http.Request) (bool, error) { method CELLibrary (line 374) | func (MatchHost) CELLibrary(ctx caddy.Context) (cel.Library, error) { method fuzzy (line 394) | func (MatchHost) fuzzy(h string) bool { return strings.ContainsAny(h, ... method large (line 399) | func (m MatchHost) large() bool { return len(m) > 100 } type MatchPath (line 108) | type MatchPath method CaddyModule (line 402) | func (MatchPath) CaddyModule() caddy.ModuleInfo { method Provision (line 410) | func (m MatchPath) Provision(_ caddy.Context) error { method Match (line 423) | func (m MatchPath) Match(r *http.Request) bool { method MatchWithError (line 429) | func (m MatchPath) MatchWithError(r *http.Request) (bool, error) { method matchPatternWithEscapeSequence (line 540) | func (MatchPath) matchPatternWithEscapeSequence(escapedPath, matchPath... method CELLibrary (line 652) | func (MatchPath) CELLibrary(ctx caddy.Context) (cel.Library, error) { method UnmarshalCaddyfile (line 675) | func (m *MatchPath) UnmarshalCaddyfile(d *caddyfile.Dispenser) error { type MatchPathRE (line 118) | type MatchPathRE struct method CaddyModule (line 687) | func (MatchPathRE) CaddyModule() caddy.ModuleInfo { method Match (line 695) | func (m MatchPathRE) Match(r *http.Request) bool { method MatchWithError (line 701) | func (m MatchPathRE) MatchWithError(r *http.Request) (bool, error) { method CELLibrary (line 718) | func (MatchPathRE) CELLibrary(ctx caddy.Context) (cel.Library, error) { type MatchMethod (line 121) | type MatchMethod method CaddyModule (line 768) | func (MatchMethod) CaddyModule() caddy.ModuleInfo { method UnmarshalCaddyfile (line 776) | func (m *MatchMethod) UnmarshalCaddyfile(d *caddyfile.Dispenser) error { method Match (line 788) | func (m MatchMethod) Match(r *http.Request) bool { method MatchWithError (line 794) | func (m MatchMethod) MatchWithError(r *http.Request) (bool, error) { method CELLibrary (line 804) | func (MatchMethod) CELLibrary(_ caddy.Context) (cel.Library, error) { type MatchQuery (line 147) | type MatchQuery method CaddyModule (line 821) | func (MatchQuery) CaddyModule() caddy.ModuleInfo { method UnmarshalCaddyfile (line 829) | func (m *MatchQuery) UnmarshalCaddyfile(d *caddyfile.Dispenser) error { method Match (line 853) | func (m MatchQuery) Match(r *http.Request) bool { method MatchWithError (line 860) | func (m MatchQuery) MatchWithError(r *http.Request) (bool, error) { method CELLibrary (line 911) | func (MatchQuery) CELLibrary(_ caddy.Context) (cel.Library, error) { type MatchHeader (line 163) | type MatchHeader method CaddyModule (line 927) | func (MatchHeader) CaddyModule() caddy.ModuleInfo { method UnmarshalCaddyfile (line 935) | func (m *MatchHeader) UnmarshalCaddyfile(d *caddyfile.Dispenser) error { method Match (line 977) | func (m MatchHeader) Match(r *http.Request) bool { method MatchWithError (line 983) | func (m MatchHeader) MatchWithError(r *http.Request) (bool, error) { method CELLibrary (line 995) | func (MatchHeader) CELLibrary(_ caddy.Context) (cel.Library, error) { type MatchHeaderRE (line 172) | type MatchHeaderRE method CaddyModule (line 1072) | func (MatchHeaderRE) CaddyModule() caddy.ModuleInfo { method UnmarshalCaddyfile (line 1080) | func (m *MatchHeaderRE) UnmarshalCaddyfile(d *caddyfile.Dispenser) err... method Match (line 1122) | func (m MatchHeaderRE) Match(r *http.Request) bool { method MatchWithError (line 1128) | func (m MatchHeaderRE) MatchWithError(r *http.Request) (bool, error) { method Provision (line 1148) | func (m MatchHeaderRE) Provision(ctx caddy.Context) error { method Validate (line 1159) | func (m MatchHeaderRE) Validate() error { method CELLibrary (line 1175) | func (MatchHeaderRE) CELLibrary(ctx caddy.Context) (cel.Library, error) { type MatchProtocol (line 178) | type MatchProtocol method CaddyModule (line 1232) | func (MatchProtocol) CaddyModule() caddy.ModuleInfo { method Match (line 1240) | func (m MatchProtocol) Match(r *http.Request) bool { method MatchWithError (line 1246) | func (m MatchProtocol) MatchWithError(r *http.Request) (bool, error) { method UnmarshalCaddyfile (line 1275) | func (m *MatchProtocol) UnmarshalCaddyfile(d *caddyfile.Dispenser) err... method CELLibrary (line 1293) | func (MatchProtocol) CELLibrary(_ caddy.Context) (cel.Library, error) { type MatchTLS (line 185) | type MatchTLS struct method CaddyModule (line 1309) | func (MatchTLS) CaddyModule() caddy.ModuleInfo { method Match (line 1317) | func (m MatchTLS) Match(r *http.Request) bool { method MatchWithError (line 1323) | func (m MatchTLS) MatchWithError(r *http.Request) (bool, error) { method UnmarshalCaddyfile (line 1341) | func (m *MatchTLS) UnmarshalCaddyfile(d *caddyfile.Dispenser) error { type MatchNot (line 216) | type MatchNot struct method CaddyModule (line 1364) | func (MatchNot) CaddyModule() caddy.ModuleInfo { method UnmarshalCaddyfile (line 1372) | func (m *MatchNot) UnmarshalCaddyfile(d *caddyfile.Dispenser) error { method UnmarshalJSON (line 1386) | func (m *MatchNot) UnmarshalJSON(data []byte) error { method MarshalJSON (line 1392) | func (m MatchNot) MarshalJSON() ([]byte, error) { method Provision (line 1397) | func (m *MatchNot) Provision(ctx caddy.Context) error { method Match (line 1423) | func (m MatchNot) Match(r *http.Request) bool { method MatchWithError (line 1431) | func (m MatchNot) MatchWithError(r *http.Request) (bool, error) { function init (line 222) | func init() { function getHeaderFieldVals (line 1014) | func getHeaderFieldVals(input http.Header, fieldName, host string, trans... function matchHeaders (line 1028) | func matchHeaders(input, against http.Header, host string, transferEncod... type MatchRegexp (line 1447) | type MatchRegexp struct method Provision (line 1467) | func (mre *MatchRegexp) Provision(caddy.Context) error { method Validate (line 1477) | func (mre *MatchRegexp) Validate() error { method Match (line 1488) | func (mre *MatchRegexp) Match(input string, repl *caddy.Replacer) bool { method UnmarshalCaddyfile (line 1521) | func (mre *MatchRegexp) UnmarshalCaddyfile(d *caddyfile.Dispenser) err... function ParseCaddyfileNestedMatcherSet (line 1556) | func ParseCaddyfileNestedMatcherSet(d *caddyfile.Dispenser) (caddy.Modul... constant regexpPlaceholderPrefix (line 1610) | regexpPlaceholderPrefix = "http.regexp" constant MatcherErrorVarKey (line 1620) | MatcherErrorVarKey = "matchers.error" FILE: modules/caddyhttp/matchers_test.go function TestHostMatcher (line 30) | func TestHostMatcher(t *testing.T) { function TestPathMatcher (line 172) | func TestPathMatcher(t *testing.T) { function TestPathMatcherWindows (line 457) | func TestPathMatcherWindows(t *testing.T) { function TestPathREMatcher (line 479) | func TestPathREMatcher(t *testing.T) { function TestHeaderMatcher (line 599) | func TestHeaderMatcher(t *testing.T) { function TestQueryMatcher (line 727) | func TestQueryMatcher(t *testing.T) { function TestHeaderREMatcher (line 857) | func TestHeaderREMatcher(t *testing.T) { function BenchmarkHeaderREMatcher (line 940) | func BenchmarkHeaderREMatcher(b *testing.B) { function TestVarREMatcher (line 965) | func TestVarREMatcher(t *testing.T) { function TestNotMatcher (line 1062) | func TestNotMatcher(t *testing.T) { function BenchmarkLargeHostMatcher (line 1178) | func BenchmarkLargeHostMatcher(b *testing.B) { function BenchmarkHostMatcherWithoutPlaceholder (line 1205) | func BenchmarkHostMatcherWithoutPlaceholder(b *testing.B) { function BenchmarkHostMatcherWithPlaceholder (line 1218) | func BenchmarkHostMatcherWithPlaceholder(b *testing.B) { FILE: modules/caddyhttp/metrics.go type Metrics (line 46) | type Metrics struct method scanConfigForHosts (line 152) | func (m *Metrics) scanConfigForHosts(app *App) { method shouldAllowHostMetrics (line 190) | func (m *Metrics) shouldAllowHostMetrics(host string, isHTTPS bool) bo... type httpMetrics (line 76) | type httpMetrics struct function initHTTPMetrics (line 86) | func initHTTPMetrics(ctx caddy.Context, metrics *Metrics) { function serverNameFromContext (line 209) | func serverNameFromContext(ctx context.Context) string { type metricsInstrumentedRoute (line 220) | type metricsInstrumentedRoute struct method ServeHTTP (line 234) | func (h *metricsInstrumentedRoute) ServeHTTP(w http.ResponseWriter, r ... function newMetricsInstrumentedRoute (line 226) | func newMetricsInstrumentedRoute(ctx caddy.Context, handler string, next... function computeApproximateRequestSize (line 308) | func computeApproximateRequestSize(r *http.Request) int { FILE: modules/caddyhttp/metrics_test.go function TestServerNameFromContext (line 18) | func TestServerNameFromContext(t *testing.T) { function TestMetricsInstrumentedHandler (line 32) | func TestMetricsInstrumentedHandler(t *testing.T) { function TestMetricsInstrumentedHandlerPerHost (line 203) | func TestMetricsInstrumentedHandlerPerHost(t *testing.T) { function TestMetricsCardinalityProtection (line 377) | func TestMetricsCardinalityProtection(t *testing.T) { function TestMetricsHTTPSCatchAll (line 434) | func TestMetricsHTTPSCatchAll(t *testing.T) { function TestMetricsInstrumentedRoute (line 483) | func TestMetricsInstrumentedRoute(t *testing.T) { function BenchmarkMetricsInstrumentedRoute (line 526) | func BenchmarkMetricsInstrumentedRoute(b *testing.B) { function BenchmarkSingleRouteMetrics (line 552) | func BenchmarkSingleRouteMetrics(b *testing.B) { FILE: modules/caddyhttp/proxyprotocol/listenerwrapper.go type ListenerWrapper (line 37) | type ListenerWrapper struct method Provision (line 89) | func (pp *ListenerWrapper) Provision(ctx caddy.Context) error { method WrapListener (line 137) | func (pp *ListenerWrapper) WrapListener(l net.Listener) net.Listener { FILE: modules/caddyhttp/proxyprotocol/module.go function init (line 22) | func init() { method CaddyModule (line 26) | func (ListenerWrapper) CaddyModule() caddy.ModuleInfo { method UnmarshalCaddyfile (line 41) | func (w *ListenerWrapper) UnmarshalCaddyfile(d *caddyfile.Dispenser) err... FILE: modules/caddyhttp/proxyprotocol/policy.go type Policy (line 11) | type Policy method MarshalText (line 60) | func (x Policy) MarshalText() ([]byte, error) { method UnmarshalText (line 65) | func (x *Policy) UnmarshalText(text []byte) error { constant PolicyIGNORE (line 16) | PolicyIGNORE Policy = iota constant PolicyUSE (line 18) | PolicyUSE constant PolicyREJECT (line 23) | PolicyREJECT constant PolicyREQUIRE (line 28) | PolicyREQUIRE constant PolicySKIP (line 32) | PolicySKIP function parsePolicy (line 75) | func parsePolicy(name string) (Policy, error) { FILE: modules/caddyhttp/push/caddyfile.go function init (line 23) | func init() { function parseCaddyfile (line 46) | func parseCaddyfile(h httpcaddyfile.Helper) (caddyhttp.MiddlewareHandler... FILE: modules/caddyhttp/push/handler.go function init (line 30) | func init() { type Handler (line 46) | type Handler struct method CaddyModule (line 57) | func (Handler) CaddyModule() caddy.ModuleInfo { method Provision (line 65) | func (h *Handler) Provision(ctx caddy.Context) error { method ServeHTTP (line 76) | func (h Handler) ServeHTTP(w http.ResponseWriter, r *http.Request, nex... method initializePushHeaders (line 136) | func (h Handler) initializePushHeaders(r *http.Request, repl *caddy.Re... method servePreloadLinks (line 166) | func (h Handler) servePreloadLinks(pusher http.Pusher, hdr http.Header... type Resource (line 186) | type Resource struct type HeaderConfig (line 196) | type HeaderConfig struct type linkPusher (line 204) | type linkPusher struct method WriteHeader (line 212) | func (lp linkPusher) WriteHeader(statusCode int) { function isRemoteResource (line 228) | func isRemoteResource(resource string) bool { constant pushHeader (line 248) | pushHeader = "Caddy-Push" constant pushedLink (line 255) | pushedLink = "http.handlers.push.pushed_link" FILE: modules/caddyhttp/push/link.go type linkResource (line 22) | type linkResource struct function parseLinkHeader (line 37) | func parseLinkHeader(header string) []linkResource { constant comma (line 74) | comma = "," constant semicolon (line 75) | semicolon = ";" constant equal (line 76) | equal = "=" FILE: modules/caddyhttp/push/link_test.go function TestParseLinkHeader (line 21) | func TestParseLinkHeader(t *testing.T) { FILE: modules/caddyhttp/replacer.go function NewTestReplacer (line 50) | func NewTestReplacer(req *http.Request) *caddy.Replacer { function addHTTPVarsToReplacer (line 58) | func addHTTPVarsToReplacer(repl *caddy.Replacer, req *http.Request, w ht... function getReqTLSReplacement (line 409) | func getReqTLSReplacement(req *http.Request, key string) (any, bool) { function marshalPublicKey (line 545) | func marshalPublicKey(pubKey any) ([]byte, error) { function getTLSPeerCert (line 563) | func getTLSPeerCert(cs *tls.ConnectionState) *x509.Certificate { type requestID (line 570) | type requestID struct method String (line 575) | func (rid *requestID) String() string { constant reqCookieReplPrefix (line 585) | reqCookieReplPrefix = "http.request.cookie." constant reqHeaderReplPrefix (line 586) | reqHeaderReplPrefix = "http.request.header." constant reqHostLabelsReplPrefix (line 587) | reqHostLabelsReplPrefix = "http.request.host.labels." constant reqTLSReplPrefix (line 588) | reqTLSReplPrefix = "http.request.tls." constant reqURIPathReplPrefix (line 589) | reqURIPathReplPrefix = "http.request.uri.path." constant reqURIQueryReplPrefix (line 590) | reqURIQueryReplPrefix = "http.request.uri.query." constant respHeaderReplPrefix (line 591) | respHeaderReplPrefix = "http.response.header." constant varsReplPrefix (line 592) | varsReplPrefix = "http.vars." constant reqOrigURIPathReplPrefix (line 593) | reqOrigURIPathReplPrefix = "http.request.orig_uri.path." FILE: modules/caddyhttp/replacer_test.go function TestHTTPVarReplacement (line 30) | func TestHTTPVarReplacement(t *testing.T) { FILE: modules/caddyhttp/requestbody/caddyfile.go function init (line 26) | func init() { function parseCaddyfile (line 30) | func parseCaddyfile(h httpcaddyfile.Helper) (caddyhttp.MiddlewareHandler... FILE: modules/caddyhttp/requestbody/requestbody.go function init (line 31) | func init() { type RequestBody (line 36) | type RequestBody struct method CaddyModule (line 55) | func (RequestBody) CaddyModule() caddy.ModuleInfo { method Provision (line 62) | func (rb *RequestBody) Provision(ctx caddy.Context) error { method ServeHTTP (line 67) | func (rb RequestBody) ServeHTTP(w http.ResponseWriter, r *http.Request... type errorWrapper (line 109) | type errorWrapper struct method Read (line 113) | func (ew errorWrapper) Read(p []byte) (n int, err error) { FILE: modules/caddyhttp/responsematchers.go type ResponseMatcher (line 27) | type ResponseMatcher struct method Match (line 40) | func (rm ResponseMatcher) Match(statusCode int, hdr http.Header) bool { method matchStatusCode (line 47) | func (rm ResponseMatcher) matchStatusCode(statusCode int) bool { function ParseNamedResponseMatcher (line 69) | func ParseNamedResponseMatcher(d *caddyfile.Dispenser, matchers map[stri... FILE: modules/caddyhttp/responsematchers_test.go function TestResponseMatcher (line 22) | func TestResponseMatcher(t *testing.T) { FILE: modules/caddyhttp/responsewriter.go type ResponseWriterWrapper (line 31) | type ResponseWriterWrapper struct method Push (line 38) | func (rww *ResponseWriterWrapper) Push(target string, opts *http.PushO... method ReadFrom (line 48) | func (rww *ResponseWriterWrapper) ReadFrom(r io.Reader) (n int64, err ... method Unwrap (line 57) | func (rww *ResponseWriterWrapper) Unwrap() http.ResponseWriter { type responseRecorder (line 65) | type responseRecorder struct method WriteHeader (line 148) | func (rr *responseRecorder) WriteHeader(statusCode int) { method Write (line 175) | func (rr *responseRecorder) Write(data []byte) (int, error) { method ReadFrom (line 189) | func (rr *responseRecorder) ReadFrom(r io.Reader) (int64, error) { method Status (line 204) | func (rr *responseRecorder) Status() int { method Size (line 210) | func (rr *responseRecorder) Size() int { method Buffer (line 216) | func (rr *responseRecorder) Buffer() *bytes.Buffer { method Buffered (line 221) | func (rr *responseRecorder) Buffered() bool { method WriteResponse (line 225) | func (rr *responseRecorder) WriteResponse() error { method FlushError (line 241) | func (rr *responseRecorder) FlushError() error { method setReadSize (line 251) | func (rr *responseRecorder) setReadSize(size *int) { method Hijack (line 255) | func (rr *responseRecorder) Hijack() (net.Conn, *bufio.ReadWriter, err... function NewResponseRecorder (line 137) | func NewResponseRecorder(w http.ResponseWriter, buf *bytes.Buffer, shoul... type hijackedConn (line 279) | type hijackedConn struct method updateReadSize (line 284) | func (hc *hijackedConn) updateReadSize(n int) { method Read (line 290) | func (hc *hijackedConn) Read(p []byte) (int, error) { method WriteTo (line 296) | func (hc *hijackedConn) WriteTo(w io.Writer) (int64, error) { method Write (line 302) | func (hc *hijackedConn) Write(p []byte) (int, error) { method ReadFrom (line 308) | func (hc *hijackedConn) ReadFrom(r io.Reader) (int64, error) { type ResponseRecorder (line 317) | type ResponseRecorder interface type ShouldBufferFunc (line 329) | type ShouldBufferFunc FILE: modules/caddyhttp/responsewriter_test.go type responseWriterSpy (line 11) | type responseWriterSpy interface type baseRespWriter (line 23) | type baseRespWriter method Write (line 25) | func (brw *baseRespWriter) Write(d []byte) (int, error) { method Header (line 29) | func (brw *baseRespWriter) Header() http.Header { return nil } method WriteHeader (line 30) | func (brw *baseRespWriter) WriteHeader(statusCode int) {} method Written (line 31) | func (brw *baseRespWriter) Written() string { return string... method CalledReadFrom (line 32) | func (brw *baseRespWriter) CalledReadFrom() bool { return false } type readFromRespWriter (line 35) | type readFromRespWriter struct method ReadFrom (line 40) | func (rf *readFromRespWriter) ReadFrom(r io.Reader) (int64, error) { method CalledReadFrom (line 45) | func (rf *readFromRespWriter) CalledReadFrom() bool { return rf.called } function TestResponseWriterWrapperReadFrom (line 47) | func TestResponseWriterWrapperReadFrom(t *testing.T) { function TestResponseWriterWrapperUnwrap (line 96) | func TestResponseWriterWrapperUnwrap(t *testing.T) { function TestResponseRecorderReadFrom (line 104) | func TestResponseRecorderReadFrom(t *testing.T) { FILE: modules/caddyhttp/reverseproxy/addresses.go type parsedAddr (line 26) | type parsedAddr struct method dialAddr (line 31) | func (p parsedAddr) dialAddr() string { method rangedPort (line 49) | func (p parsedAddr) rangedPort() bool { method replaceablePort (line 53) | func (p parsedAddr) replaceablePort() bool { method isUnix (line 57) | func (p parsedAddr) isUnix() bool { function parseUpstreamDialAddress (line 65) | func parseUpstreamDialAddress(upstreamAddr string) (parsedAddr, error) { FILE: modules/caddyhttp/reverseproxy/addresses_test.go function TestParseUpstreamDialAddress (line 19) | func TestParseUpstreamDialAddress(t *testing.T) { FILE: modules/caddyhttp/reverseproxy/admin.go function init (line 25) | func init() { type adminUpstreams (line 33) | type adminUpstreams struct method CaddyModule (line 43) | func (adminUpstreams) CaddyModule() caddy.ModuleInfo { method Routes (line 51) | func (al adminUpstreams) Routes() []caddy.AdminRoute { method handleUpstreams (line 62) | func (adminUpstreams) handleUpstreams(w http.ResponseWriter, r *http.R... type upstreamStatus (line 36) | type upstreamStatus struct FILE: modules/caddyhttp/reverseproxy/admin_test.go function adminHandlerFixture (line 30) | func adminHandlerFixture(t *testing.T, staticAddrs, dynamicAddrs []strin... function callAdminUpstreams (line 60) | func callAdminUpstreams(t *testing.T) []upstreamStatus { function resultsByAddress (line 85) | func resultsByAddress(statuses []upstreamStatus) map[string]upstreamStat... function TestAdminUpstreamsMethodNotAllowed (line 94) | func TestAdminUpstreamsMethodNotAllowed(t *testing.T) { function TestAdminUpstreamsEmpty (line 117) | func TestAdminUpstreamsEmpty(t *testing.T) { function TestAdminUpstreamsStaticOnly (line 131) | func TestAdminUpstreamsStaticOnly(t *testing.T) { function TestAdminUpstreamsDynamicOnly (line 154) | func TestAdminUpstreamsDynamicOnly(t *testing.T) { function TestAdminUpstreamsBothPools (line 177) | func TestAdminUpstreamsBothPools(t *testing.T) { function TestAdminUpstreamsNoOverlapBetweenPools (line 202) | func TestAdminUpstreamsNoOverlapBetweenPools(t *testing.T) { function TestAdminUpstreamsReportsFailCounts (line 224) | func TestAdminUpstreamsReportsFailCounts(t *testing.T) { function TestAdminUpstreamsReportsNumRequests (line 254) | func TestAdminUpstreamsReportsNumRequests(t *testing.T) { FILE: modules/caddyhttp/reverseproxy/ascii.go function asciiEqualFold (line 28) | func asciiEqualFold(s, t string) bool { function asciiLower (line 41) | func asciiLower(b byte) byte { function asciiIsPrint (line 50) | func asciiIsPrint(s string) bool { FILE: modules/caddyhttp/reverseproxy/ascii_test.go function TestEqualFold (line 28) | func TestEqualFold(t *testing.T) { function TestIsPrint (line 66) | func TestIsPrint(t *testing.T) { FILE: modules/caddyhttp/reverseproxy/buffering_test.go type zeroReader (line 8) | type zeroReader struct method Read (line 10) | func (zeroReader) Read(p []byte) (int, error) { function TestBuffering (line 17) | func TestBuffering(t *testing.T) { FILE: modules/caddyhttp/reverseproxy/caddyfile.go function init (line 39) | func init() { function parseCaddyfile (line 45) | func parseCaddyfile(h httpcaddyfile.Helper) (caddyhttp.MiddlewareHandler... method UnmarshalCaddyfile (line 142) | func (h *Handler) UnmarshalCaddyfile(d *caddyfile.Dispenser) error { method FinalizeUnmarshalCaddyfile (line 912) | func (h *Handler) FinalizeUnmarshalCaddyfile(helper httpcaddyfile.Helper... method UnmarshalCaddyfile (line 1015) | func (h *HTTPTransport) UnmarshalCaddyfile(d *caddyfile.Dispenser) error { function parseCopyResponseCaddyfile (line 1364) | func parseCopyResponseCaddyfile(h httpcaddyfile.Helper) (caddyhttp.Middl... method UnmarshalCaddyfile (line 1378) | func (h *CopyResponseHandler) UnmarshalCaddyfile(d *caddyfile.Dispenser)... function parseCopyResponseHeadersCaddyfile (line 1403) | func parseCopyResponseHeadersCaddyfile(h httpcaddyfile.Helper) (caddyhtt... method UnmarshalCaddyfile (line 1418) | func (h *CopyResponseHeadersHandler) UnmarshalCaddyfile(d *caddyfile.Dis... method UnmarshalCaddyfile (line 1453) | func (u *SRVUpstreams) UnmarshalCaddyfile(d *caddyfile.Dispenser) error { method UnmarshalCaddyfile (line 1559) | func (u *AUpstreams) UnmarshalCaddyfile(d *caddyfile.Dispenser) error { method UnmarshalCaddyfile (line 1666) | func (u *MultiUpstreams) UnmarshalCaddyfile(d *caddyfile.Dispenser) error { constant matcherPrefix (line 1689) | matcherPrefix = "@" FILE: modules/caddyhttp/reverseproxy/command.go function init (line 37) | func init() { function cmdReverseProxy (line 87) | func cmdReverseProxy(fs caddycmd.Flags) (int, error) { FILE: modules/caddyhttp/reverseproxy/copyresponse.go function init (line 27) | func init() { type CopyResponseHandler (line 35) | type CopyResponseHandler struct method CaddyModule (line 44) | func (CopyResponseHandler) CaddyModule() caddy.ModuleInfo { method Provision (line 52) | func (h *CopyResponseHandler) Provision(ctx caddy.Context) error { method ServeHTTP (line 58) | func (h CopyResponseHandler) ServeHTTP(rw http.ResponseWriter, req *ht... type CopyResponseHeadersHandler (line 90) | type CopyResponseHeadersHandler struct method CaddyModule (line 105) | func (CopyResponseHeadersHandler) CaddyModule() caddy.ModuleInfo { method Validate (line 113) | func (h *CopyResponseHeadersHandler) Validate() error { method Provision (line 122) | func (h *CopyResponseHeadersHandler) Provision(ctx caddy.Context) error { method ServeHTTP (line 145) | func (h CopyResponseHeadersHandler) ServeHTTP(rw http.ResponseWriter, ... FILE: modules/caddyhttp/reverseproxy/dynamic_upstreams_test.go function resetDynamicHosts (line 26) | func resetDynamicHosts() { function TestFillDynamicHostCreatesEntry (line 36) | func TestFillDynamicHostCreatesEntry(t *testing.T) { function TestFillDynamicHostReusesSameHost (line 63) | func TestFillDynamicHostReusesSameHost(t *testing.T) { function TestFillDynamicHostUpdatesLastSeen (line 79) | func TestFillDynamicHostUpdatesLastSeen(t *testing.T) { function TestFillDynamicHostIndependentAddresses (line 106) | func TestFillDynamicHostIndependentAddresses(t *testing.T) { function TestFillDynamicHostPreservesFailCount (line 123) | func TestFillDynamicHostPreservesFailCount(t *testing.T) { function TestProvisionUpstreamDynamic (line 147) | func TestProvisionUpstreamDynamic(t *testing.T) { function TestProvisionUpstreamStatic (line 189) | func TestProvisionUpstreamStatic(t *testing.T) { function TestDynamicHostHealthyConsultsFails (line 224) | func TestDynamicHostHealthyConsultsFails(t *testing.T) { function TestDynamicHostCleanupEvictsStaleEntries (line 253) | func TestDynamicHostCleanupEvictsStaleEntries(t *testing.T) { function TestDynamicHostCleanupRetainsFreshEntries (line 286) | func TestDynamicHostCleanupRetainsFreshEntries(t *testing.T) { function TestDynamicHostConcurrentFillHost (line 319) | func TestDynamicHostConcurrentFillHost(t *testing.T) { FILE: modules/caddyhttp/reverseproxy/fastcgi/caddyfile.go function init (line 34) | func init() { method UnmarshalCaddyfile (line 50) | func (t *Transport) UnmarshalCaddyfile(d *caddyfile.Dispenser) error { function parsePHPFastCGI (line 172) | func parsePHPFastCGI(h httpcaddyfile.Helper) ([]httpcaddyfile.ConfigValu... FILE: modules/caddyhttp/reverseproxy/fastcgi/client.go constant FCGIListenSockFileno (line 49) | FCGIListenSockFileno uint8 = 0 constant FCGIHeaderLen (line 52) | FCGIHeaderLen uint8 = 8 constant Version1 (line 55) | Version1 uint8 = 1 constant FCGINullRequestID (line 58) | FCGINullRequestID uint8 = 0 constant FCGIKeepConn (line 61) | FCGIKeepConn uint8 = 1 constant BeginRequest (line 65) | BeginRequest uint8 = iota + 1 constant AbortRequest (line 67) | AbortRequest constant EndRequest (line 69) | EndRequest constant Params (line 71) | Params constant Stdin (line 73) | Stdin constant Stdout (line 75) | Stdout constant Stderr (line 77) | Stderr constant Data (line 79) | Data constant GetValues (line 81) | GetValues constant GetValuesResult (line 83) | GetValuesResult constant UnknownType (line 85) | UnknownType constant MaxType (line 87) | MaxType = UnknownType constant Responder (line 92) | Responder uint8 = iota + 1 constant Authorizer (line 94) | Authorizer constant Filter (line 96) | Filter constant RequestComplete (line 101) | RequestComplete uint8 = iota constant CantMultiplexConns (line 103) | CantMultiplexConns constant Overloaded (line 105) | Overloaded constant UnknownRole (line 107) | UnknownRole constant MaxConns (line 112) | MaxConns string = "MAX_CONNS" constant MaxRequests (line 114) | MaxRequests string = "MAX_REQS" constant MultiplexConns (line 116) | MultiplexConns string = "MPXS_CONNS" constant maxWrite (line 120) | maxWrite = 65500 constant maxPad (line 121) | maxPad = 255 type client (line 130) | type client struct method Do (line 140) | func (c *client) Do(p map[string]string, req io.Reader) (r io.Reader, ... method Request (line 213) | func (c *client) Request(p map[string]string, req io.Reader) (resp *ht... method Get (line 267) | func (c *client) Get(p map[string]string, body io.Reader, l int64) (re... method Head (line 275) | func (c *client) Head(p map[string]string) (resp *http.Response, err e... method Options (line 283) | func (c *client) Options(p map[string]string) (resp *http.Response, er... method Post (line 292) | func (c *client) Post(p map[string]string, method string, bodyType str... method PostForm (line 315) | func (c *client) PostForm(p map[string]string, data url.Values) (resp ... method PostFile (line 323) | func (c *client) PostFile(p map[string]string, data url.Values, file m... method SetReadTimeout (line 364) | func (c *client) SetReadTimeout(t time.Duration) error { method SetWriteTimeout (line 373) | func (c *client) SetWriteTimeout(t time.Duration) error { type clientCloser (line 184) | type clientCloser struct method Close (line 193) | func (f clientCloser) Close() error { function chunked (line 381) | func chunked(te []string) bool { return len(te) > 0 && te[0] == "chunked" } FILE: modules/caddyhttp/reverseproxy/fastcgi/client_test.go constant scriptFile (line 50) | scriptFile = "/tank/www/fcgic_test.php" constant ipPort (line 52) | ipPort = "127.0.0.1:59000" type FastCGIServer (line 57) | type FastCGIServer struct method ServeHTTP (line 59) | func (s FastCGIServer) ServeHTTP(resp http.ResponseWriter, req *http.R... function sendFcgi (line 119) | func sendFcgi(reqType int, fcgiParams map[string]string, data []byte, po... function generateRandFile (line 182) | func generateRandFile(size int) (p string, m string) { function DisabledTest (line 212) | func DisabledTest(t *testing.T) { FILE: modules/caddyhttp/reverseproxy/fastcgi/fastcgi.go function init (line 46) | func init() { type Transport (line 51) | type Transport struct method CaddyModule (line 99) | func (Transport) CaddyModule() caddy.ModuleInfo { method Provision (line 107) | func (t *Transport) Provision(ctx caddy.Context) error { method DefaultBufferSizes (line 158) | func (t Transport) DefaultBufferSizes() (int64, int64) { method RoundTrip (line 163) | func (t Transport) RoundTrip(r *http.Request) (*http.Response, error) { method buildEnv (line 259) | func (t Transport) buildEnv(r *http.Request) (envVars, error) { method splitPos (line 430) | func (t Transport) splitPos(path string) int { type envVars (line 490) | type envVars type loggableEnv (line 493) | type loggableEnv struct method MarshalLogObject (line 498) | func (env loggableEnv) MarshalLogObject(enc zapcore.ObjectEncoder) err... FILE: modules/caddyhttp/reverseproxy/fastcgi/fastcgi_test.go function TestProvisionSplitPath (line 13) | func TestProvisionSplitPath(t *testing.T) { function TestSplitPos (line 73) | func TestSplitPos(t *testing.T) { function TestSplitPosUnicodeSecurityRegression (line 226) | func TestSplitPosUnicodeSecurityRegression(t *testing.T) { FILE: modules/caddyhttp/reverseproxy/fastcgi/header.go type header (line 17) | type header struct method init (line 26) | func (h *header) init(recType uint8, reqID uint16, contentLength int) { FILE: modules/caddyhttp/reverseproxy/fastcgi/reader.go type streamReader (line 22) | type streamReader struct method Read (line 28) | func (w *streamReader) Read(p []byte) (n int, err error) { FILE: modules/caddyhttp/reverseproxy/fastcgi/record.go type record (line 23) | type record struct method fill (line 29) | func (rec *record) fill(r io.Reader) (err error) { method Read (line 52) | func (rec *record) Read(p []byte) (n int, err error) { method hasMore (line 56) | func (rec *record) hasMore() bool { FILE: modules/caddyhttp/reverseproxy/fastcgi/writer.go type streamWriter (line 24) | type streamWriter struct method writeRecord (line 31) | func (w *streamWriter) writeRecord(recType uint8, content []byte) (err... method writeBeginRequest (line 41) | func (w *streamWriter) writeBeginRequest(role uint16, flags uint8) err... method Write (line 46) | func (w *streamWriter) Write(p []byte) (int, error) { method endStream (line 73) | func (w *streamWriter) endStream() error { method writePairs (line 78) | func (w *streamWriter) writePairs(pairs map[string]string) error { method writeHeader (line 120) | func (w *streamWriter) writeHeader() { method Flush (line 131) | func (w *streamWriter) Flush() error { method FlushStream (line 140) | func (w *streamWriter) FlushStream() error { function encodeSize (line 109) | func encodeSize(b []byte, size uint32) int { FILE: modules/caddyhttp/reverseproxy/forwardauth/caddyfile.go function init (line 32) | func init() { function parseCaddyfile (line 64) | func parseCaddyfile(h httpcaddyfile.Helper) ([]httpcaddyfile.ConfigValue... FILE: modules/caddyhttp/reverseproxy/headers_test.go function TestAddForwardedHeadersNonIP (line 11) | func TestAddForwardedHeadersNonIP(t *testing.T) { function TestAddForwardedHeaders_UnixSocketTrusted (line 36) | func TestAddForwardedHeaders_UnixSocketTrusted(t *testing.T) { function TestAddForwardedHeaders_UnixSocketUntrusted (line 68) | func TestAddForwardedHeaders_UnixSocketUntrusted(t *testing.T) { function TestAddForwardedHeaders_UnixSocketTrustedNoExistingHeaders (line 100) | func TestAddForwardedHeaders_UnixSocketTrustedNoExistingHeaders(t *testi... FILE: modules/caddyhttp/reverseproxy/healthchecks.go type HealthChecks (line 38) | type HealthChecks struct type ActiveHealthChecks (line 73) | type ActiveHealthChecks struct method Provision (line 137) | func (a *ActiveHealthChecks) Provision(ctx caddy.Context, h *Handler) ... method IsEnabled (line 226) | func (a *ActiveHealthChecks) IsEnabled() bool { type PassiveHealthChecks (line 233) | type PassiveHealthChecks struct type CircuitBreaker (line 263) | type CircuitBreaker interface method activeHealthChecker (line 271) | func (h *Handler) activeHealthChecker() { method doActiveHealthCheckForAllHosts (line 297) | func (h *Handler) doActiveHealthCheckForAllHosts() { method doActiveHealthCheck (line 391) | func (h *Handler) doActiveHealthCheck(dialInfo DialInfo, hostAddr string... method countFailure (line 587) | func (h *Handler) countFailure(upstream *Upstream) { FILE: modules/caddyhttp/reverseproxy/hosts.go type UpstreamPool (line 31) | type UpstreamPool type Upstream (line 36) | type Upstream struct method String (line 71) | func (u *Upstream) String() string { return u.Dial } method Available (line 78) | func (u *Upstream) Available() bool { method Healthy (line 85) | func (u *Upstream) Healthy() bool { method Full (line 98) | func (u *Upstream) Full() bool { method fillDialInfo (line 104) | func (u *Upstream) fillDialInfo(repl *caddy.Replacer) (DialInfo, error) { method fillHost (line 128) | func (u *Upstream) fillHost() { method fillDynamicHost (line 143) | func (u *Upstream) fillDynamicHost() { method healthy (line 251) | func (u *Upstream) healthy() bool { method setHealthy (line 258) | func (u *Upstream) setHealthy(healthy bool) bool { type Host (line 176) | type Host struct method NumRequests (line 184) | func (h *Host) NumRequests() int { method Fails (line 189) | func (h *Host) Fails() int { method activeHealthPasses (line 194) | func (h *Host) activeHealthPasses() int { method activeHealthFails (line 199) | func (h *Host) activeHealthFails() int { method countRequest (line 205) | func (h *Host) countRequest(delta int) error { method countFail (line 215) | func (h *Host) countFail(delta int) error { method countHealthPass (line 225) | func (h *Host) countHealthPass(delta int) error { method countHealthFail (line 235) | func (h *Host) countHealthFail(delta int) error { method resetHealth (line 244) | func (h *Host) resetHealth() { type DialInfo (line 272) | type DialInfo struct method String (line 293) | func (di DialInfo) String() string { function GetDialInfo (line 299) | func GetDialInfo(ctx context.Context) (DialInfo, bool) { type dynamicHostEntry (line 327) | type dynamicHostEntry struct constant dialInfoVarKey (line 334) | dialInfoVarKey = "reverse_proxy.dial_info" constant proxyProtocolInfoVarKey (line 338) | proxyProtocolInfoVarKey = "reverse_proxy.proxy_protocol_info" type ProxyProtocolInfo (line 342) | type ProxyProtocolInfo struct constant tlsH1OnlyVarKey (line 348) | tlsH1OnlyVarKey = "reverse_proxy.tls_h1_only" constant proxyVarKey (line 351) | proxyVarKey = "reverse_proxy.proxy" FILE: modules/caddyhttp/reverseproxy/httptransport.go function init (line 48) | func init() { type HTTPTransport (line 55) | type HTTPTransport struct method CaddyModule (line 168) | func (HTTPTransport) CaddyModule() caddy.ModuleInfo { method Provision (line 182) | func (h *HTTPTransport) Provision(ctx caddy.Context) error { method NewTransport (line 205) | func (h *HTTPTransport) NewTransport(caddyCtx caddy.Context) (*http.Tr... method RequestHeaderOps (line 537) | func (h *HTTPTransport) RequestHeaderOps() *headers.HeaderOps { method RoundTrip (line 551) | func (h *HTTPTransport) RoundTrip(req *http.Request) (*http.Response, ... method SetScheme (line 568) | func (h *HTTPTransport) SetScheme(req *http.Request) { method shouldUseTLS (line 580) | func (h *HTTPTransport) shouldUseTLS(req *http.Request) bool { method TLSEnabled (line 590) | func (h HTTPTransport) TLSEnabled() bool { method EnableTLS (line 595) | func (h *HTTPTransport) EnableTLS(base *TLSConfig) error { method EnableH2C (line 601) | func (h *HTTPTransport) EnableH2C() error { method OverrideHealthCheckScheme (line 608) | func (h HTTPTransport) OverrideHealthCheckScheme(base *url.URL, port s... method ProxyProtocolEnabled (line 616) | func (h HTTPTransport) ProxyProtocolEnabled() bool { method Cleanup (line 621) | func (h HTTPTransport) Cleanup() error { type TLSConfig (line 631) | type TLSConfig struct method MakeTLSClientConfig (line 694) | func (t *TLSConfig) MakeTLSClientConfig(ctx caddy.Context) (*tls.Confi... type KeepAlive (line 811) | type KeepAlive struct type tcpRWTimeoutConn (line 832) | type tcpRWTimeoutConn struct method Read (line 838) | func (c *tcpRWTimeoutConn) Read(b []byte) (int, error) { method Write (line 850) | func (c *tcpRWTimeoutConn) Write(b []byte) (int, error) { function decodeBase64DERCert (line 863) | func decodeBase64DERCert(certStr string) (*x509.Certificate, error) { FILE: modules/caddyhttp/reverseproxy/httptransport_test.go function TestHTTPTransportUnmarshalCaddyFileWithCaPools (line 14) | func TestHTTPTransportUnmarshalCaddyFileWithCaPools(t *testing.T) { function TestHTTPTransport_RequestHeaderOps_TLS (line 100) | func TestHTTPTransport_RequestHeaderOps_TLS(t *testing.T) { function TestHTTPTransport_DialTLSContext_ProxyProtocol (line 127) | func TestHTTPTransport_DialTLSContext_ProxyProtocol(t *testing.T) { FILE: modules/caddyhttp/reverseproxy/metrics.go function initReverseProxyMetrics (line 22) | func initReverseProxyMetrics(handler *Handler, registry *prometheus.Regi... type metricsUpstreamsHealthyUpdater (line 49) | type metricsUpstreamsHealthyUpdater struct method init (line 60) | func (m *metricsUpstreamsHealthyUpdater) init() { method update (line 88) | func (m *metricsUpstreamsHealthyUpdater) update() { function newMetricsUpstreamsHealthyUpdater (line 53) | func newMetricsUpstreamsHealthyUpdater(handler *Handler, ctx caddy.Conte... FILE: modules/caddyhttp/reverseproxy/passive_health_test.go function newPassiveHandler (line 28) | func newPassiveHandler(t *testing.T, maxFails int, failDuration time.Dur... function provisionedStaticUpstream (line 45) | func provisionedStaticUpstream(t *testing.T, h *Handler, addr string) (*... function provisionedDynamicUpstream (line 54) | func provisionedDynamicUpstream(t *testing.T, h *Handler, addr string) (... function TestCountFailureNoopWhenNoHealthChecks (line 69) | func TestCountFailureNoopWhenNoHealthChecks(t *testing.T) { function TestCountFailureNoopWhenZeroDuration (line 83) | func TestCountFailureNoopWhenZeroDuration(t *testing.T) { function TestCountFailureIncrementsCount (line 104) | func TestCountFailureIncrementsCount(t *testing.T) { function TestCountFailureDecrementsAfterDuration (line 119) | func TestCountFailureDecrementsAfterDuration(t *testing.T) { function TestCountFailureCancelledContextForgets (line 142) | func TestCountFailureCancelledContextForgets(t *testing.T) { function TestStaticUpstreamHealthyWithNoFailures (line 166) | func TestStaticUpstreamHealthyWithNoFailures(t *testing.T) { function TestStaticUpstreamUnhealthyAtMaxFails (line 181) | func TestStaticUpstreamUnhealthyAtMaxFails(t *testing.T) { function TestStaticUpstreamRecoversAfterFailDuration (line 202) | func TestStaticUpstreamRecoversAfterFailDuration(t *testing.T) { function TestStaticUpstreamHealthPersistedAcrossReprovisioning (line 226) | func TestStaticUpstreamHealthPersistedAcrossReprovisioning(t *testing.T) { function TestDynamicUpstreamHealthyWithNoFailures (line 254) | func TestDynamicUpstreamHealthyWithNoFailures(t *testing.T) { function TestDynamicUpstreamUnhealthyAtMaxFails (line 269) | func TestDynamicUpstreamUnhealthyAtMaxFails(t *testing.T) { function TestDynamicUpstreamFailCountPersistedBetweenRequests (line 292) | func TestDynamicUpstreamFailCountPersistedBetweenRequests(t *testing.T) { function TestDynamicUpstreamRecoveryAfterFailDuration (line 334) | func TestDynamicUpstreamRecoveryAfterFailDuration(t *testing.T) { function TestDynamicUpstreamMaxRequestsFromUnhealthyRequestCount (line 361) | func TestDynamicUpstreamMaxRequestsFromUnhealthyRequestCount(t *testing.... FILE: modules/caddyhttp/reverseproxy/retries_test.go function prepareTestRequest (line 25) | func prepareTestRequest(req *http.Request) *http.Request { type closeOnCloseReader (line 34) | type closeOnCloseReader struct method Read (line 44) | func (c *closeOnCloseReader) Read(p []byte) (int, error) { method Close (line 53) | func (c *closeOnCloseReader) Close() error { function newCloseOnCloseReader (line 40) | func newCloseOnCloseReader(s string) *closeOnCloseReader { function deadUpstreamAddr (line 63) | func deadUpstreamAddr(t *testing.T) string { type testTransport (line 82) | type testTransport struct method RoundTrip (line 84) | func (t testTransport) RoundTrip(req *http.Request) (*http.Response, e... function minimalHandler (line 106) | func minimalHandler(retries int, upstreams ...*Upstream) *Handler { function TestDialErrorBodyRetry (line 137) | func TestDialErrorBodyRetry(t *testing.T) { FILE: modules/caddyhttp/reverseproxy/reverseproxy.go function incInFlightRequest (line 53) | func incInFlightRequest(address string) { function decInFlightRequest (line 58) | func decInFlightRequest(address string) { function getInFlightRequests (line 66) | func getInFlightRequests() map[string]int64 { function init (line 75) | func init() { type Handler (line 100) | type Handler struct method CaddyModule (line 248) | func (Handler) CaddyModule() caddy.ModuleInfo { method Provision (line 256) | func (h *Handler) Provision(ctx caddy.Context) error { method Cleanup (line 435) | func (h *Handler) Cleanup() error { method ServeHTTP (line 446) | func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request, ne... method proxyLoopIteration (line 565) | func (h *Handler) proxyLoopIteration(r *http.Request, origReq *http.Re... method prepareRequest (line 709) | func (h Handler) prepareRequest(req *http.Request, repl *caddy.Replace... method addForwardedHeaders (line 835) | func (h Handler) addForwardedHeaders(req *http.Request) error { method reverseProxy (line 937) | func (h *Handler) reverseProxy(rw http.ResponseWriter, req *http.Reque... method finalizeResponse (line 1126) | func (h *Handler) finalizeResponse( method directRequest (line 1307) | func (h *Handler) directRequest(req *http.Request, di DialInfo) { method provisionUpstream (line 1333) | func (h Handler) provisionUpstream(upstream *Upstream, dynamic bool) { method bufferedBody (line 1376) | func (h Handler) bufferedBody(originalBody io.ReadCloser, limit int64)... function normalizeWebsocketHeaders (line 693) | func normalizeWebsocketHeaders(header http.Header) { function cloneRequest (line 1410) | func cloneRequest(origReq *http.Request) *http.Request { function copyHeader (line 1439) | func copyHeader(dst, src http.Header) { function allHeaderValues (line 1454) | func allHeaderValues(h http.Header, field string) (value string, ok bool... function lastHeaderValue (line 1472) | func lastHeaderValue(h http.Header, field string) (value string, ok bool... function upgradeType (line 1483) | func upgradeType(h http.Header) string { function removeConnectionHeaders (line 1492) | func removeConnectionHeaders(h http.Header) { function statusError (line 1503) | func statusError(err error) error { type LoadBalancing (line 1529) | type LoadBalancing struct method tryAgain (line 1240) | func (lb LoadBalancing) tryAgain(ctx caddy.Context, start time.Time, r... type Selector (line 1569) | type Selector interface type UpstreamSource (line 1583) | type UpstreamSource interface type DialError (line 1607) | type DialError struct type TLSTransport (line 1611) | type TLSTransport interface type H2CTransport (line 1624) | type H2CTransport interface type ProxyProtocolTransport (line 1630) | type ProxyProtocolTransport interface type HealthCheckSchemeOverriderTransport (line 1636) | type HealthCheckSchemeOverriderTransport interface type BufferedTransport (line 1642) | type BufferedTransport interface type RequestHeaderOpsTransport (line 1651) | type RequestHeaderOpsTransport interface type roundtripSucceededError (line 1661) | type roundtripSucceededError struct type bodyReadCloser (line 1665) | type bodyReadCloser struct method Close (line 1671) | func (brc bodyReadCloser) Close() error { type handleResponseContext (line 1693) | type handleResponseContext struct constant proxyHandleResponseContextCtxKey (line 1721) | proxyHandleResponseContextCtxKey caddy.CtxKey = "reverse_proxy_handle_re... FILE: modules/caddyhttp/reverseproxy/selectionpolicies.go function init (line 39) | func init() { type RandomSelection (line 56) | type RandomSelection struct method CaddyModule (line 59) | func (RandomSelection) CaddyModule() caddy.ModuleInfo { method Select (line 67) | func (r RandomSelection) Select(pool UpstreamPool, request *http.Reque... method UnmarshalCaddyfile (line 72) | func (r *RandomSelection) UnmarshalCaddyfile(d *caddyfile.Dispenser) e... type WeightedRoundRobinSelection (line 82) | type WeightedRoundRobinSelection struct method CaddyModule (line 91) | func (WeightedRoundRobinSelection) CaddyModule() caddy.ModuleInfo { method UnmarshalCaddyfile (line 101) | func (r *WeightedRoundRobinSelection) UnmarshalCaddyfile(d *caddyfile.... method Provision (line 123) | func (r *WeightedRoundRobinSelection) Provision(ctx caddy.Context) err... method Select (line 131) | func (r *WeightedRoundRobinSelection) Select(pool UpstreamPool, _ *htt... type RandomChoiceSelection (line 174) | type RandomChoiceSelection struct method CaddyModule (line 181) | func (RandomChoiceSelection) CaddyModule() caddy.ModuleInfo { method UnmarshalCaddyfile (line 189) | func (r *RandomChoiceSelection) UnmarshalCaddyfile(d *caddyfile.Dispen... method Provision (line 205) | func (r *RandomChoiceSelection) Provision(ctx caddy.Context) error { method Validate (line 213) | func (r RandomChoiceSelection) Validate() error { method Select (line 221) | func (r RandomChoiceSelection) Select(pool UpstreamPool, _ *http.Reque... type LeastConnSelection (line 245) | type LeastConnSelection struct method CaddyModule (line 248) | func (LeastConnSelection) CaddyModule() caddy.ModuleInfo { method Select (line 258) | func (LeastConnSelection) Select(pool UpstreamPool, _ *http.Request, _... method UnmarshalCaddyfile (line 287) | func (r *LeastConnSelection) UnmarshalCaddyfile(d *caddyfile.Dispenser... type RoundRobinSelection (line 297) | type RoundRobinSelection struct method CaddyModule (line 302) | func (RoundRobinSelection) CaddyModule() caddy.ModuleInfo { method Select (line 310) | func (r *RoundRobinSelection) Select(pool UpstreamPool, _ *http.Reques... method UnmarshalCaddyfile (line 326) | func (r *RoundRobinSelection) UnmarshalCaddyfile(d *caddyfile.Dispense... type FirstSelection (line 336) | type FirstSelection struct method CaddyModule (line 339) | func (FirstSelection) CaddyModule() caddy.ModuleInfo { method Select (line 347) | func (FirstSelection) Select(pool UpstreamPool, _ *http.Request, _ htt... method UnmarshalCaddyfile (line 357) | func (r *FirstSelection) UnmarshalCaddyfile(d *caddyfile.Dispenser) er... type IPHashSelection (line 367) | type IPHashSelection struct method CaddyModule (line 370) | func (IPHashSelection) CaddyModule() caddy.ModuleInfo { method Select (line 378) | func (IPHashSelection) Select(pool UpstreamPool, req *http.Request, _ ... method UnmarshalCaddyfile (line 387) | func (r *IPHashSelection) UnmarshalCaddyfile(d *caddyfile.Dispenser) e... type ClientIPHashSelection (line 398) | type ClientIPHashSelection struct method CaddyModule (line 401) | func (ClientIPHashSelection) CaddyModule() caddy.ModuleInfo { method Select (line 409) | func (ClientIPHashSelection) Select(pool UpstreamPool, req *http.Reque... method UnmarshalCaddyfile (line 419) | func (r *ClientIPHashSelection) UnmarshalCaddyfile(d *caddyfile.Dispen... type URIHashSelection (line 429) | type URIHashSelection struct method CaddyModule (line 432) | func (URIHashSelection) CaddyModule() caddy.ModuleInfo { method Select (line 440) | func (URIHashSelection) Select(pool UpstreamPool, req *http.Request, _... method UnmarshalCaddyfile (line 445) | func (r *URIHashSelection) UnmarshalCaddyfile(d *caddyfile.Dispenser) ... type QueryHashSelection (line 455) | type QueryHashSelection struct method CaddyModule (line 465) | func (QueryHashSelection) CaddyModule() caddy.ModuleInfo { method Provision (line 473) | func (s *QueryHashSelection) Provision(ctx caddy.Context) error { method Select (line 489) | func (s QueryHashSelection) Select(pool UpstreamPool, req *http.Reques... method UnmarshalCaddyfile (line 505) | func (s *QueryHashSelection) UnmarshalCaddyfile(d *caddyfile.Dispenser... type HeaderHashSelection (line 536) | type HeaderHashSelection struct method CaddyModule (line 546) | func (HeaderHashSelection) CaddyModule() caddy.ModuleInfo { method Provision (line 554) | func (s *HeaderHashSelection) Provision(ctx caddy.Context) error { method Select (line 570) | func (s HeaderHashSelection) Select(pool UpstreamPool, req *http.Reque... method UnmarshalCaddyfile (line 585) | func (s *HeaderHashSelection) UnmarshalCaddyfile(d *caddyfile.Dispense... type CookieHashSelection (line 616) | type CookieHashSelection struct method CaddyModule (line 630) | func (CookieHashSelection) CaddyModule() caddy.ModuleInfo { method Provision (line 638) | func (s *CookieHashSelection) Provision(ctx caddy.Context) error { method Select (line 654) | func (s CookieHashSelection) Select(pool UpstreamPool, req *http.Reque... method UnmarshalCaddyfile (line 716) | func (s *CookieHashSelection) UnmarshalCaddyfile(d *caddyfile.Dispense... function hashCookie (line 768) | func hashCookie(secret string, data string) (string, error) { function selectRandomHost (line 778) | func selectRandomHost(pool []*Upstream) *Upstream { function leastRequests (line 803) | func leastRequests(upstreams []*Upstream) *Upstream { function hostByHashing (line 834) | func hostByHashing(pool []*Upstream, s string) *Upstream { function hash (line 856) | func hash(s string) uint64 { function loadFallbackPolicy (line 862) | func loadFallbackPolicy(d *caddyfile.Dispenser) (json.RawMessage, error) { FILE: modules/caddyhttp/reverseproxy/selectionpolicies_test.go function testPool (line 28) | func testPool() UpstreamPool { function TestRoundRobinPolicy (line 36) | func TestRoundRobinPolicy(t *testing.T) { function TestWeightedRoundRobinPolicy (line 77) | func TestWeightedRoundRobinPolicy(t *testing.T) { function TestWeightedRoundRobinPolicyWithZeroWeight (line 134) | func TestWeightedRoundRobinPolicyWithZeroWeight(t *testing.T) { function TestLeastConnPolicy (line 186) | func TestLeastConnPolicy(t *testing.T) { function TestIPHashPolicy (line 204) | func TestIPHashPolicy(t *testing.T) { function TestClientIPHashPolicy (line 346) | func TestClientIPHashPolicy(t *testing.T) { function TestFirstPolicy (line 489) | func TestFirstPolicy(t *testing.T) { function TestQueryHashPolicy (line 506) | func TestQueryHashPolicy(t *testing.T) { function TestURIHashPolicy (line 582) | func TestURIHashPolicy(t *testing.T) { function TestLeastRequests (line 637) | func TestLeastRequests(t *testing.T) { function TestRandomChoicePolicy (line 660) | func TestRandomChoicePolicy(t *testing.T) { function TestCookieHashPolicy (line 686) | func TestCookieHashPolicy(t *testing.T) { function TestCookieHashPolicyWithSecureRequest (line 745) | func TestCookieHashPolicyWithSecureRequest(t *testing.T) { function TestCookieHashPolicyWithFirstFallback (line 796) | func TestCookieHashPolicyWithFirstFallback(t *testing.T) { FILE: modules/caddyhttp/reverseproxy/streaming.go type h2ReadWriteCloser (line 41) | type h2ReadWriteCloser struct method Write (line 46) | func (rwc h2ReadWriteCloser) Write(p []byte) (n int, err error) { method handleUpgradeResponse (line 60) | func (h *Handler) handleUpgradeResponse(logger *zap.Logger, wg *sync.Wai... method flushInterval (line 238) | func (h Handler) flushInterval(req *http.Request, res *http.Response) ti... method isBidirectionalStream (line 264) | func (h Handler) isBidirectionalStream(req *http.Request, res *http.Resp... method copyResponse (line 278) | func (h Handler) copyResponse(dst http.ResponseWriter, src io.Reader, fl... method copyBuffer (line 320) | func (h Handler) copyBuffer(dst io.Writer, src io.Reader, buf []byte, lo... method registerConnection (line 378) | func (h *Handler) registerConnection(conn io.ReadWriteCloser, gracefulCl... method closeConnections (line 398) | func (h *Handler) closeConnections() error { method cleanupConnections (line 424) | func (h *Handler) cleanupConnections() error { function writeCloseControl (line 458) | func writeCloseControl(conn io.Writer, isClient bool) error { function maskBytes (line 509) | func maskBytes(key [4]byte, pos int, b []byte) int { function newMaskKey (line 553) | func newMaskKey() [4]byte { function isWebsocket (line 560) | func isWebsocket(r *http.Request) bool { type openConnection (line 567) | type openConnection struct type maxLatencyWriter (line 572) | type maxLatencyWriter struct method Write (line 583) | func (m *maxLatencyWriter) Write(p []byte) (n int, err error) { method delayedFlush (line 612) | func (m *maxLatencyWriter) delayedFlush() { method stop (line 625) | func (m *maxLatencyWriter) stop() { type switchProtocolCopier (line 636) | type switchProtocolCopier struct method copyFromBackend (line 641) | func (c switchProtocolCopier) copyFromBackend(errc chan<- error) { method copyToBackend (line 647) | func (c switchProtocolCopier) copyToBackend(errc chan<- error) { constant defaultBufferSize (line 665) | defaultBufferSize = 32 * 1024 constant wordSize (line 666) | wordSize = int(unsafe.Sizeof(uintptr(0))) FILE: modules/caddyhttp/reverseproxy/streaming_test.go function TestHandlerCopyResponse (line 12) | func TestHandlerCopyResponse(t *testing.T) { FILE: modules/caddyhttp/reverseproxy/upstreams.go function init (line 20) | func init() { type SRVUpstreams (line 38) | type SRVUpstreams struct method CaddyModule (line 84) | func (SRVUpstreams) CaddyModule() caddy.ModuleInfo { method Provision (line 91) | func (su *SRVUpstreams) Provision(ctx caddy.Context) error { method GetUpstreams (line 122) | func (su SRVUpstreams) GetUpstreams(r *http.Request) ([]*Upstream, err... method String (line 208) | func (su SRVUpstreams) String() string { method expandedAddr (line 219) | func (su SRVUpstreams) expandedAddr(r *http.Request) (addr, service, p... method formattedAddr (line 234) | func (SRVUpstreams) formattedAddr(service, proto, name string) string { type srvLookup (line 238) | type srvLookup struct method isFresh (line 244) | func (sl srvLookup) isFresh() bool { type IPVersions (line 248) | type IPVersions struct function resolveIpVersion (line 253) | func resolveIpVersion(versions *IPVersions) string { type AUpstreams (line 269) | type AUpstreams struct method CaddyModule (line 304) | func (AUpstreams) CaddyModule() caddy.ModuleInfo { method Provision (line 311) | func (au *AUpstreams) Provision(ctx caddy.Context) error { method GetUpstreams (line 345) | func (au AUpstreams) GetUpstreams(r *http.Request) ([]*Upstream, error) { method String (line 423) | func (au AUpstreams) String() string { return net.JoinHostPort(au.Name... type aLookup (line 425) | type aLookup struct method isFresh (line 431) | func (al aLookup) isFresh() bool { type MultiUpstreams (line 447) | type MultiUpstreams struct method CaddyModule (line 458) | func (MultiUpstreams) CaddyModule() caddy.ModuleInfo { method Provision (line 465) | func (mu *MultiUpstreams) Provision(ctx caddy.Context) error { method GetUpstreams (line 481) | func (mu MultiUpstreams) GetUpstreams(r *http.Request) ([]*Upstream, e... type UpstreamResolver (line 513) | type UpstreamResolver struct method ParseAddresses (line 525) | func (u *UpstreamResolver) ParseAddresses() error { function allNew (line 539) | func allNew(upstreams []Upstream) []*Upstream { FILE: modules/caddyhttp/reverseproxy/upstreams_test.go function TestResolveIpVersion (line 5) | func TestResolveIpVersion(t *testing.T) { FILE: modules/caddyhttp/rewrite/caddyfile.go function init (line 28) | func init() { function parseCaddyfileRewrite (line 41) | func parseCaddyfileRewrite(h httpcaddyfile.Helper) ([]httpcaddyfile.Conf... function parseCaddyfileMethod (line 75) | func parseCaddyfileMethod(h httpcaddyfile.Helper) (caddyhttp.MiddlewareH... function parseCaddyfileURI (line 97) | func parseCaddyfileURI(h httpcaddyfile.Helper) (caddyhttp.MiddlewareHand... function applyQueryOps (line 191) | func applyQueryOps(h httpcaddyfile.Helper, qo *queryOps, args []string) ... function parseCaddyfileHandlePath (line 234) | func parseCaddyfileHandlePath(h httpcaddyfile.Helper) ([]httpcaddyfile.C... FILE: modules/caddyhttp/rewrite/rewrite.go function init (line 31) | func init() { type Rewrite (line 54) | type Rewrite struct method CaddyModule (line 99) | func (Rewrite) CaddyModule() caddy.ModuleInfo { method Provision (line 107) | func (rewr *Rewrite) Provision(ctx caddy.Context) error { method ServeHTTP (line 132) | func (rewr Rewrite) ServeHTTP(w http.ResponseWriter, r *http.Request, ... method Rewrite (line 158) | func (rewr Rewrite) Rewrite(r *http.Request, repl *caddy.Replacer) bool { function buildQueryString (line 307) | func buildQueryString(qs string, repl *caddy.Replacer) string { function trimPathPrefix (line 379) | func trimPathPrefix(escapedPath, prefix string) string { function reverse (line 414) | func reverse(s string) string { type substrReplacer (line 423) | type substrReplacer struct method do (line 436) | func (rep substrReplacer) do(r *http.Request, repl *caddy.Replacer) { type regexReplacer (line 459) | type regexReplacer struct method do (line 470) | func (rep regexReplacer) do(r *http.Request, repl *caddy.Replacer) { function changePath (line 480) | func changePath(req *http.Request, newVal func(pathOrRawPath string) str... type queryOps (line 494) | type queryOps struct method do (line 524) | func (q *queryOps) do(r *http.Request, repl *caddy.Replacer) { type queryOpsArguments (line 595) | type queryOpsArguments struct type queryOpsReplacement (line 605) | type queryOpsReplacement struct method Provision (line 513) | func (replacement *queryOpsReplacement) Provision(_ caddy.Context) err... FILE: modules/caddyhttp/rewrite/rewrite_test.go function TestRewrite (line 25) | func TestRewrite(t *testing.T) { function newRequest (line 400) | func newRequest(t *testing.T, method, uri string) *http.Request { function reqEqual (line 410) | func reqEqual(r1, r2 *http.Request) bool { FILE: modules/caddyhttp/routes.go type Route (line 30) | type Route struct method Empty (line 107) | func (r Route) Empty() bool { method String (line 116) | func (r Route) String() string { method Provision (line 130) | func (r *Route) Provision(ctx caddy.Context, metrics *Metrics) error { method ProvisionMatchers (line 142) | func (r *Route) ProvisionMatchers(ctx caddy.Context) error { method ProvisionHandlers (line 159) | func (r *Route) ProvisionHandlers(ctx caddy.Context, metrics *Metrics)... method Compile (line 189) | func (r Route) Compile(next Handler) Handler { type RouteList (line 195) | type RouteList method Provision (line 198) | func (routes RouteList) Provision(ctx caddy.Context) error { method ProvisionMatchers (line 210) | func (routes RouteList) ProvisionMatchers(ctx caddy.Context) error { method ProvisionHandlers (line 224) | func (routes RouteList) ProvisionHandlers(ctx caddy.Context, metrics *... method Compile (line 238) | func (routes RouteList) Compile(next Handler) Handler { function wrapRoute (line 255) | func wrapRoute(route Route) Middleware { function wrapMiddleware (line 330) | func wrapMiddleware(ctx caddy.Context, mh MiddlewareHandler) Middleware { type MatcherSet (line 345) | type MatcherSet method Match (line 349) | func (mset MatcherSet) Match(r *http.Request) bool { method MatchWithError (line 370) | func (mset MatcherSet) MatchWithError(r *http.Request) (bool, error) { type RawMatcherSets (line 399) | type RawMatcherSets type MatcherSets (line 404) | type MatcherSets method AnyMatch (line 411) | func (ms MatcherSets) AnyMatch(req *http.Request) bool { method AnyMatchWithError (line 429) | func (ms MatcherSets) AnyMatchWithError(req *http.Request) (bool, erro... method FromInterface (line 440) | func (ms *MatcherSets) FromInterface(matcherSets any) error { method String (line 460) | func (ms MatcherSets) String() string { FILE: modules/caddyhttp/server.go type Server (line 47) | type Server struct method ServeHTTP (line 310) | func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) { method serveHTTP (line 471) | func (s *Server) serveHTTP(w http.ResponseWriter, r *http.Request) err... method wrapPrimaryRoute (line 502) | func (s *Server) wrapPrimaryRoute(stack Handler) Handler { method enforcementHandler (line 510) | func (s *Server) enforcementHandler(w http.ResponseWriter, r *http.Req... method listenersUseAnyPortOtherThan (line 533) | func (s *Server) listenersUseAnyPortOtherThan(otherPort int) bool { method hasListenerAddress (line 550) | func (s *Server) hasListenerAddress(fullAddr string) bool { method hasTLSClientAuth (line 606) | func (s *Server) hasTLSClientAuth() bool { method findLastRouteWithHostMatcher (line 617) | func (s *Server) findLastRouteWithHostMatcher() int { method serveHTTP3 (line 657) | func (s *Server) serveHTTP3(addr caddy.NetworkAddress, tlsCfg *tls.Con... method configureServer (line 691) | func (s *Server) configureServer(server *http.Server) { method RegisterConnState (line 721) | func (s *Server) RegisterConnState(f func(net.Conn, http.ConnState)) { method RegisterConnContext (line 726) | func (s *Server) RegisterConnContext(f func(ctx context.Context, c net... method RegisterOnShutdown (line 731) | func (s *Server) RegisterOnShutdown(f func()) { method RegisterOnStop (line 738) | func (s *Server) RegisterOnStop(f func(context.Context) error) { method shouldLogRequest (line 789) | func (s *Server) shouldLogRequest(r *http.Request) bool { method logTrace (line 819) | func (s *Server) logTrace(mh MiddlewareHandler) { method logRequest (line 829) | func (s *Server) logRequest( method protocol (line 901) | func (s *Server) protocol(proto string) bool { method Listeners (line 925) | func (s *Server) Listeners() []net.Listener { return s.listeners } method Name (line 928) | func (s *Server) Name() string { return s.name } type HTTPErrorConfig (line 744) | type HTTPErrorConfig struct method WithError (line 764) | func (*HTTPErrorConfig) WithError(r *http.Request, err error) *http.Re... function PrepareRequest (line 932) | func PrepareRequest(r *http.Request, repl *caddy.Replacer, w http.Respon... function originalRequest (line 965) | func originalRequest(req *http.Request, urlCopy *url.URL) http.Request { function determineTrustedProxy (line 979) | func determineTrustedProxy(r *http.Request, s *Server) (bool, string) { function isTrustedClientIP (line 1031) | func isTrustedClientIP(ipAddr netip.Addr, trusted []netip.Prefix) bool { function trustedRealClientIP (line 1041) | func trustedRealClientIP(r *http.Request, headers []string, clientIP str... function strictUntrustedClientIp (line 1085) | func strictUntrustedClientIp(r *http.Request, headers []string, trusted ... function cloneURL (line 1115) | func cloneURL(from, to *url.URL) { type lengthReader (line 1126) | type lengthReader struct method Read (line 1131) | func (r *lengthReader) Read(b []byte) (int, error) { method Close (line 1137) | func (r *lengthReader) Close() error { constant ServerCtxKey (line 1144) | ServerCtxKey caddy.CtxKey = "server" constant VarsCtxKey (line 1147) | VarsCtxKey caddy.CtxKey = "vars" constant OriginalRequestCtxKey (line 1151) | OriginalRequestCtxKey caddy.CtxKey = "original_request" constant ConnCtxKey (line 1156) | ConnCtxKey caddy.CtxKey = "conn" constant tlsConnectionStateFuncCtxKey (line 1159) | tlsConnectionStateFuncCtxKey caddy.CtxKey = "tls_connection_state_func" constant TrustedProxyVarKey (line 1162) | TrustedProxyVarKey string = "trusted_proxy" constant ClientIPVarKey (line 1165) | ClientIPVarKey string = "client_ip" function RegisterNetworkHTTP3 (line 1184) | func RegisterNetworkHTTP3(originalNetwork, h3Network string) { function getHTTP3Network (line 1191) | func getHTTP3Network(originalNetwork string) (string, error) { FILE: modules/caddyhttp/server_test.go type writeFunc (line 18) | type writeFunc type nopSyncer (line 20) | type nopSyncer method Write (line 22) | func (n nopSyncer) Write(p []byte) (int, error) { method Sync (line 26) | func (n nopSyncer) Sync() error { function testLogger (line 32) | func testLogger(wf writeFunc) *zap.Logger { function TestServer_LogRequest (line 47) | func TestServer_LogRequest(t *testing.T) { function TestServer_LogRequest_WithTrace (line 72) | func TestServer_LogRequest_WithTrace(t *testing.T) { function BenchmarkServer_LogRequest (line 102) | func BenchmarkServer_LogRequest(b *testing.B) { function BenchmarkServer_LogRequest_NopLogger (line 124) | func BenchmarkServer_LogRequest_NopLogger(b *testing.B) { function BenchmarkServer_LogRequest_WithTrace (line 145) | func BenchmarkServer_LogRequest_WithTrace(b *testing.B) { function TestServer_TrustedRealClientIP_NoTrustedHeaders (line 169) | func TestServer_TrustedRealClientIP_NoTrustedHeaders(t *testing.T) { function TestServer_TrustedRealClientIP_OneTrustedHeaderEmpty (line 177) | func TestServer_TrustedRealClientIP_OneTrustedHeaderEmpty(t *testing.T) { function TestServer_TrustedRealClientIP_OneTrustedHeaderInvalid (line 185) | func TestServer_TrustedRealClientIP_OneTrustedHeaderInvalid(t *testing.T) { function TestServer_TrustedRealClientIP_OneTrustedHeaderValid (line 194) | func TestServer_TrustedRealClientIP_OneTrustedHeaderValid(t *testing.T) { function TestServer_TrustedRealClientIP_OneTrustedHeaderValidArray (line 203) | func TestServer_TrustedRealClientIP_OneTrustedHeaderValidArray(t *testin... function TestServer_TrustedRealClientIP_IncludesPort (line 212) | func TestServer_TrustedRealClientIP_IncludesPort(t *testing.T) { function TestServer_TrustedRealClientIP_SkipsInvalidIps (line 221) | func TestServer_TrustedRealClientIP_SkipsInvalidIps(t *testing.T) { function TestServer_TrustedRealClientIP_MultipleTrustedHeaderValidArray (line 230) | func TestServer_TrustedRealClientIP_MultipleTrustedHeaderValidArray(t *t... function TestServer_DetermineTrustedProxy_NoConfig (line 244) | func TestServer_DetermineTrustedProxy_NoConfig(t *testing.T) { function TestServer_DetermineTrustedProxy_NoConfigIpv6 (line 256) | func TestServer_DetermineTrustedProxy_NoConfigIpv6(t *testing.T) { function TestServer_DetermineTrustedProxy_NoConfigIpv6Zones (line 268) | func TestServer_DetermineTrustedProxy_NoConfigIpv6Zones(t *testing.T) { function TestServer_DetermineTrustedProxy_TrustedLoopback (line 280) | func TestServer_DetermineTrustedProxy_TrustedLoopback(t *testing.T) { function TestServer_DetermineTrustedProxy_UnixSocket (line 300) | func TestServer_DetermineTrustedProxy_UnixSocket(t *testing.T) { function TestServer_DetermineTrustedProxy_UnixSocketStrict (line 316) | func TestServer_DetermineTrustedProxy_UnixSocketStrict(t *testing.T) { function TestServer_DetermineTrustedProxy_UntrustedPrefix (line 333) | func TestServer_DetermineTrustedProxy_UntrustedPrefix(t *testing.T) { function TestServer_DetermineTrustedProxy_MultipleTrustedPrefixes (line 353) | func TestServer_DetermineTrustedProxy_MultipleTrustedPrefixes(t *testing... function TestServer_DetermineTrustedProxy_MultipleTrustedClientHeaders (line 374) | func TestServer_DetermineTrustedProxy_MultipleTrustedClientHeaders(t *te... function TestServer_DetermineTrustedProxy_MatchLeftMostValidIp (line 396) | func TestServer_DetermineTrustedProxy_MatchLeftMostValidIp(t *testing.T) { function TestServer_DetermineTrustedProxy_MatchRightMostUntrusted (line 416) | func TestServer_DetermineTrustedProxy_MatchRightMostUntrusted(t *testing... function TestServer_DetermineTrustedProxy_MatchRightMostUntrustedSkippingEmpty (line 437) | func TestServer_DetermineTrustedProxy_MatchRightMostUntrustedSkippingEmp... function TestServer_DetermineTrustedProxy_MatchRightMostUntrustedSkippingTrusted (line 459) | func TestServer_DetermineTrustedProxy_MatchRightMostUntrustedSkippingTru... function TestServer_DetermineTrustedProxy_MatchRightMostUntrustedFirst (line 481) | func TestServer_DetermineTrustedProxy_MatchRightMostUntrustedFirst(t *te... FILE: modules/caddyhttp/staticerror.go function init (line 26) | func init() { type StaticError (line 37) | type StaticError struct method CaddyModule (line 47) | func (StaticError) CaddyModule() caddy.ModuleInfo { method UnmarshalCaddyfile (line 62) | func (e *StaticError) UnmarshalCaddyfile(d *caddyfile.Dispenser) error { method ServeHTTP (line 97) | func (e StaticError) ServeHTTP(w http.ResponseWriter, r *http.Request,... FILE: modules/caddyhttp/staticresp.go function init (line 41) | func init() { type StaticResponse (line 89) | type StaticResponse struct method CaddyModule (line 125) | func (StaticResponse) CaddyModule() caddy.ModuleInfo { method UnmarshalCaddyfile (line 141) | func (s *StaticResponse) UnmarshalCaddyfile(d *caddyfile.Dispenser) er... method ServeHTTP (line 181) | func (s StaticResponse) ServeHTTP(w http.ResponseWriter, r *http.Reque... function buildHTTPServer (line 260) | func buildHTTPServer( function cmdRespond (line 316) | func cmdRespond(fl caddycmd.Flags) (int, error) { FILE: modules/caddyhttp/staticresp_test.go function TestStaticResponseHandler (line 28) | func TestStaticResponseHandler(t *testing.T) { function fakeRequest (line 60) | func fakeRequest() *http.Request { FILE: modules/caddyhttp/subroute.go function init (line 24) | func init() { type Subroute (line 38) | type Subroute struct method CaddyModule (line 48) | func (Subroute) CaddyModule() caddy.ModuleInfo { method Provision (line 56) | func (sr *Subroute) Provision(ctx caddy.Context) error { method ServeHTTP (line 72) | func (sr *Subroute) ServeHTTP(w http.ResponseWriter, r *http.Request, ... FILE: modules/caddyhttp/templates/caddyfile.go function init (line 25) | func init() { function parseCaddyfile (line 36) | func parseCaddyfile(h httpcaddyfile.Helper) (caddyhttp.MiddlewareHandler... FILE: modules/caddyhttp/templates/frontmatter.go function extractFrontMatter (line 13) | func extractFrontMatter(input string) (map[string]any, string, error) { function yamlFrontMatter (line 81) | func yamlFrontMatter(input []byte) (map[string]any, error) { function tomlFrontMatter (line 87) | func tomlFrontMatter(input []byte) (map[string]any, error) { function jsonFrontMatter (line 93) | func jsonFrontMatter(input []byte) (map[string]any, error) { type parsedMarkdownDoc (line 101) | type parsedMarkdownDoc struct type frontMatterType (line 106) | type frontMatterType struct FILE: modules/caddyhttp/templates/frontmatter_fuzz.go function FuzzExtractFrontMatter (line 19) | func FuzzExtractFrontMatter(data []byte) int { FILE: modules/caddyhttp/templates/templates.go function init (line 32) | func init() { type Templates (line 345) | type Templates struct method CaddyModule (line 375) | func (Templates) CaddyModule() caddy.ModuleInfo { method Provision (line 383) | func (t *Templates) Provision(ctx caddy.Context) error { method Validate (line 403) | func (t *Templates) Validate() error { method ServeHTTP (line 410) | func (t *Templates) ServeHTTP(w http.ResponseWriter, r *http.Request, ... method executeTemplate (line 455) | func (t *Templates) executeTemplate(rr caddyhttp.ResponseRecorder, r *... type CustomFunctions (line 369) | type CustomFunctions interface type virtualResponseWriter (line 486) | type virtualResponseWriter struct method Header (line 492) | func (vrw *virtualResponseWriter) Header() http.Header { method WriteHeader (line 496) | func (vrw *virtualResponseWriter) WriteHeader(statusCode int) { method Write (line 500) | func (vrw *virtualResponseWriter) Write(data []byte) (int, error) { FILE: modules/caddyhttp/templates/tplcontext.go type TemplateContext (line 49) | type TemplateContext struct method NewTemplate (line 62) | func (c *TemplateContext) NewTemplate(tplName string) *template.Templa... method OriginalReq (line 103) | func (c TemplateContext) OriginalReq() http.Request { method funcInclude (line 112) | func (c TemplateContext) funcInclude(filename string, args ...any) (st... method funcReadFile (line 136) | func (c TemplateContext) funcReadFile(filename string) (string, error) { method readFileToBuffer (line 150) | func (c TemplateContext) readFileToBuffer(filename string, bodyBuf *by... method funcHTTPInclude (line 173) | func (c TemplateContext) funcHTTPInclude(uri string) (string, error) { method funcImport (line 223) | func (c *TemplateContext) funcImport(filename string) (string, error) { method executeTemplateInBuffer (line 240) | func (c *TemplateContext) executeTemplateInBuffer(tplName string, buf ... method funcPlaceholder (line 253) | func (c TemplateContext) funcPlaceholder(name string) string { method funcEnv (line 265) | func (TemplateContext) funcEnv(varName string) string { method Cookie (line 270) | func (c TemplateContext) Cookie(name string) string { method RemoteIP (line 281) | func (c TemplateContext) RemoteIP() string { method ClientIP (line 292) | func (c TemplateContext) ClientIP() string { method Host (line 303) | func (c TemplateContext) Host() (string, error) { method funcStripHTML (line 317) | func (TemplateContext) funcStripHTML(s string) string { method funcMarkdown (line 350) | func (TemplateContext) funcMarkdown(input any) (string, error) { method funcSplitFrontMatter (line 386) | func (TemplateContext) funcSplitFrontMatter(input any) (parsedMarkdown... method funcListFiles (line 396) | func (c TemplateContext) funcListFiles(name string) ([]string, error) { method funcFileExists (line 429) | func (c TemplateContext) funcFileExists(filename string) (bool, error) { method funcFileStat (line 442) | func (c TemplateContext) funcFileStat(filename string) (fs.FileInfo, e... method funcHTTPError (line 458) | func (c TemplateContext) funcHTTPError(statusCode int) (bool, error) { method funcHumanize (line 478) | func (c TemplateContext) funcHumanize(formatType, data string) (string... method funcMaybe (line 520) | func (c TemplateContext) funcMaybe(functionName string, args ...any) (... type WrappedHeader (line 555) | type WrappedHeader struct method Add (line 560) | func (h WrappedHeader) Add(field, val string) string { method Set (line 568) | func (h WrappedHeader) Set(field, val string) string { method Del (line 574) | func (h WrappedHeader) Del(field string) string { constant recursionPreventionHeader (line 589) | recursionPreventionHeader = "Caddy-Templates-Include" FILE: modules/caddyhttp/templates/tplcontext_test.go type handle (line 35) | type handle struct method ServeHTTP (line 37) | func (h *handle) ServeHTTP(w http.ResponseWriter, r *http.Request) { function TestHTTPInclude (line 45) | func TestHTTPInclude(t *testing.T) { function TestMarkdown (line 71) | func TestMarkdown(t *testing.T) { function TestCookie (line 93) | func TestCookie(t *testing.T) { function TestImport (line 134) | func TestImport(t *testing.T) { function TestNestedInclude (line 190) | func TestNestedInclude(t *testing.T) { function TestInclude (line 278) | func TestInclude(t *testing.T) { function TestCookieMultipleCookies (line 354) | func TestCookieMultipleCookies(t *testing.T) { function TestIP (line 375) | func TestIP(t *testing.T) { function TestStripHTML (line 394) | func TestStripHTML(t *testing.T) { function TestFileListing (line 439) | func TestFileListing(t *testing.T) { function TestSplitFrontMatter (line 533) | func TestSplitFrontMatter(t *testing.T) { function TestHumanize (line 605) | func TestHumanize(t *testing.T) { function getContextOrFail (line 654) | func getContextOrFail(t *testing.T) TemplateContext { function initTestContext (line 665) | func initTestContext() (TemplateContext, error) { FILE: modules/caddyhttp/tracing/module.go function init (line 15) | func init() { type Tracing (line 25) | type Tracing struct method CaddyModule (line 40) | func (Tracing) CaddyModule() caddy.ModuleInfo { method Provision (line 48) | func (ot *Tracing) Provision(ctx caddy.Context) error { method Cleanup (line 59) | func (ot *Tracing) Cleanup() error { method ServeHTTP (line 67) | func (ot *Tracing) ServeHTTP(w http.ResponseWriter, r *http.Request, n... method UnmarshalCaddyfile (line 80) | func (ot *Tracing) UnmarshalCaddyfile(d *caddyfile.Dispenser) error { function parseCaddyfile (line 133) | func parseCaddyfile(h httpcaddyfile.Helper) (caddyhttp.MiddlewareHandler... FILE: modules/caddyhttp/tracing/module_test.go function TestTracing_UnmarshalCaddyfile (line 20) | func TestTracing_UnmarshalCaddyfile(t *testing.T) { function TestTracing_UnmarshalCaddyfile_Error (line 105) | func TestTracing_UnmarshalCaddyfile_Error(t *testing.T) { function TestTracing_ServeHTTP_Propagation_Without_Initial_Headers (line 158) | func TestTracing_ServeHTTP_Propagation_Without_Initial_Headers(t *testin... function TestTracing_ServeHTTP_Propagation_With_Initial_Headers (line 188) | func TestTracing_ServeHTTP_Propagation_With_Initial_Headers(t *testing.T) { function TestTracing_ServeHTTP_Next_Error (line 219) | func TestTracing_ServeHTTP_Next_Error(t *testing.T) { function TestTracing_JSON_Configuration (line 246) | func TestTracing_JSON_Configuration(t *testing.T) { function TestTracing_OpenTelemetry_Span_Attributes (line 286) | func TestTracing_OpenTelemetry_Span_Attributes(t *testing.T) { function createRequestWithContext (line 400) | func createRequestWithContext(method string, url string) *http.Request { FILE: modules/caddyhttp/tracing/tracer.go constant webEngineName (line 24) | webEngineName = "Caddy" constant defaultSpanName (line 25) | defaultSpanName = "handler" constant nextCallCtxKey (line 26) | nextCallCtxKey caddy.CtxKey = "nextCall" type nextCall (line 30) | type nextCall struct type openTelemetryWrapper (line 36) | type openTelemetryWrapper struct method serveHTTP (line 89) | func (ot *openTelemetryWrapper) serveHTTP(w http.ResponseWriter, r *ht... method ServeHTTP (line 125) | func (ot *openTelemetryWrapper) ServeHTTP(w http.ResponseWriter, r *ht... method cleanup (line 136) | func (ot *openTelemetryWrapper) cleanup(logger *zap.Logger) error { method newResource (line 141) | func (ot *openTelemetryWrapper) newResource( method spanNameFormatter (line 152) | func (ot *openTelemetryWrapper) spanNameFormatter(operation string, r ... function newOpenTelemetryWrapper (line 46) | func newOpenTelemetryWrapper( FILE: modules/caddyhttp/tracing/tracer_test.go function TestOpenTelemetryWrapper_newOpenTelemetryWrapper (line 10) | func TestOpenTelemetryWrapper_newOpenTelemetryWrapper(t *testing.T) { FILE: modules/caddyhttp/tracing/tracerprovider.go type tracerProvider (line 16) | type tracerProvider struct method getTracerProvider (line 23) | func (t *tracerProvider) getTracerProvider(opts ...sdktrace.TracerProv... method cleanupTracerProvider (line 39) | func (t *tracerProvider) cleanupTracerProvider(logger *zap.Logger) err... FILE: modules/caddyhttp/tracing/tracerprovider_test.go function Test_tracersProvider_getTracerProvider (line 9) | func Test_tracersProvider_getTracerProvider(t *testing.T) { function Test_tracersProvider_cleanupTracerProvider (line 24) | func Test_tracersProvider_cleanupTracerProvider(t *testing.T) { FILE: modules/caddyhttp/vars.go function init (line 33) | func init() { type VarsMiddleware (line 47) | type VarsMiddleware method CaddyModule (line 50) | func (VarsMiddleware) CaddyModule() caddy.ModuleInfo { method ServeHTTP (line 57) | func (m VarsMiddleware) ServeHTTP(w http.ResponseWriter, r *http.Reque... method UnmarshalCaddyfile (line 82) | func (m *VarsMiddleware) UnmarshalCaddyfile(d *caddyfile.Dispenser) er... type VarsMatcher (line 135) | type VarsMatcher method CaddyModule (line 138) | func (VarsMatcher) CaddyModule() caddy.ModuleInfo { method UnmarshalCaddyfile (line 146) | func (m *VarsMatcher) UnmarshalCaddyfile(d *caddyfile.Dispenser) error { method Match (line 170) | func (m VarsMatcher) Match(r *http.Request) bool { method MatchWithError (line 176) | func (m VarsMatcher) MatchWithError(r *http.Request) (bool, error) { method CELLibrary (line 238) | func (VarsMatcher) CELLibrary(_ caddy.Context) (cel.Library, error) { type MatchVarsRE (line 260) | type MatchVarsRE method CaddyModule (line 263) | func (MatchVarsRE) CaddyModule() caddy.ModuleInfo { method UnmarshalCaddyfile (line 271) | func (m *MatchVarsRE) UnmarshalCaddyfile(d *caddyfile.Dispenser) error { method Provision (line 306) | func (m MatchVarsRE) Provision(ctx caddy.Context) error { method Match (line 317) | func (m MatchVarsRE) Match(r *http.Request) bool { method MatchWithError (line 323) | func (m MatchVarsRE) MatchWithError(r *http.Request) (bool, error) { method CELLibrary (line 376) | func (MatchVarsRE) CELLibrary(ctx caddy.Context) (cel.Library, error) { method Validate (line 433) | func (m MatchVarsRE) Validate() error { function GetVar (line 445) | func GetVar(ctx context.Context, key string) any { function SetVar (line 460) | func SetVar(ctx context.Context, key string, value any) { FILE: modules/caddypki/acmeserver/acmeserver.go function init (line 46) | func init() { type Handler (line 51) | type Handler struct method CaddyModule (line 116) | func (Handler) CaddyModule() caddy.ModuleInfo { method Provision (line 124) | func (ash *Handler) Provision(ctx caddy.Context) error { method warnIfPolicyAllowsAll (line 220) | func (ash *Handler) warnIfPolicyAllowsAll() { method ServeHTTP (line 235) | func (ash Handler) ServeHTTP(w http.ResponseWriter, r *http.Request, n... method getDatabaseKey (line 253) | func (ash Handler) getDatabaseKey() string { method Cleanup (line 261) | func (ash Handler) Cleanup() error { method openDatabase (line 277) | func (ash Handler) openDatabase() (*db.AuthDB, error) { method makeClient (line 307) | func (ash Handler) makeClient() (acme.Client, error) { type resolverClient (line 355) | type resolverClient struct method LookupTxt (line 362) | func (c resolverClient) LookupTxt(name string) ([]string, error) { constant defaultPathPrefix (line 366) | defaultPathPrefix = "/acme/" type databaseCloser (line 373) | type databaseCloser struct method Destruct (line 377) | func (closer databaseCloser) Destruct() error { FILE: modules/caddypki/acmeserver/acmeserver_test.go function TestHandler_warnIfPolicyAllowsAll (line 11) | func TestHandler_warnIfPolicyAllowsAll(t *testing.T) { FILE: modules/caddypki/acmeserver/caddyfile.go function init (line 23) | func init() { function parseACMEServer (line 45) | func parseACMEServer(h httpcaddyfile.Helper) ([]httpcaddyfile.ConfigValu... FILE: modules/caddypki/acmeserver/challenges.go type ACMEChallenge (line 12) | type ACMEChallenge method validate (line 21) | func (c ACMEChallenge) validate() error { method UnmarshalJSON (line 33) | func (c *ACMEChallenge) UnmarshalJSON(b []byte) error { method String (line 43) | func (c ACMEChallenge) String() string { constant HTTP_01 (line 15) | HTTP_01 ACMEChallenge = "http-01" constant DNS_01 (line 16) | DNS_01 ACMEChallenge = "dns-01" constant TLS_ALPN_01 (line 17) | TLS_ALPN_01 ACMEChallenge = "tls-alpn-01" type ACMEChallenges (line 48) | type ACMEChallenges method validate (line 51) | func (c ACMEChallenges) validate() error { method toSmallstepType (line 60) | func (c ACMEChallenges) toSmallstepType() []provisioner.ACMEChallenge { function stringToChallenges (line 71) | func stringToChallenges(chs []string) ACMEChallenges { FILE: modules/caddypki/acmeserver/policy.go type Policy (line 12) | type Policy struct method normalizeAllowRules (line 43) | func (p *Policy) normalizeAllowRules() *policy.X509NameOptions { method normalizeDenyRules (line 56) | func (p *Policy) normalizeDenyRules() *policy.X509NameOptions { method normalizeRules (line 67) | func (p *Policy) normalizeRules() *provisioner.X509Options { type RuleSet (line 27) | type RuleSet struct FILE: modules/caddypki/acmeserver/policy_test.go function TestPolicyNormalizeAllowRules (line 11) | func TestPolicyNormalizeAllowRules(t *testing.T) { function TestPolicy_normalizeDenyRules (line 74) | func TestPolicy_normalizeDenyRules(t *testing.T) { function TestPolicy_normalizeRules (line 137) | func TestPolicy_normalizeRules(t *testing.T) { FILE: modules/caddypki/adminapi.go function init (line 28) | func init() { type adminAPI (line 34) | type adminAPI struct method CaddyModule (line 41) | func (adminAPI) CaddyModule() caddy.ModuleInfo { method Provision (line 49) | func (a *adminAPI) Provision(ctx caddy.Context) error { method Routes (line 65) | func (a *adminAPI) Routes() []caddy.AdminRoute { method handleAPIEndpoints (line 75) | func (a *adminAPI) handleAPIEndpoints(w http.ResponseWriter, r *http.R... method handleCAInfo (line 94) | func (a *adminAPI) handleCAInfo(w http.ResponseWriter, r *http.Request... method handleCACerts (line 144) | func (a *adminAPI) handleCACerts(w http.ResponseWriter, r *http.Reques... method getCAFromAPIRequestPath (line 174) | func (a *adminAPI) getCAFromAPIRequestPath(r *http.Request) (*CA, erro... function rootAndIntermediatePEM (line 220) | func rootAndIntermediatePEM(ca *CA) (root, inter []byte, err error) { type caInfo (line 238) | type caInfo struct constant adminPKIEndpointBase (line 248) | adminPKIEndpointBase = "/pki/" FILE: modules/caddypki/ca.go type CA (line 40) | type CA struct method Provision (line 99) | func (ca *CA) Provision(ctx caddy.Context, id string, log *zap.Logger)... method RootCertificate (line 186) | func (ca CA) RootCertificate() *x509.Certificate { method RootKey (line 195) | func (ca CA) RootKey() (crypto.Signer, error) { method IntermediateCertificateChain (line 202) | func (ca CA) IntermediateCertificateChain() []*x509.Certificate { method IntermediateKey (line 209) | func (ca CA) IntermediateKey() crypto.Signer { method NewAuthority (line 219) | func (ca *CA) NewAuthority(authorityConfig AuthorityConfig) (*authorit... method loadOrGenRoot (line 274) | func (ca CA) loadOrGenRoot() (rootCert *x509.Certificate, rootKey cryp... method genRoot (line 315) | func (ca CA) genRoot() (rootCert *x509.Certificate, rootKey crypto.Sig... method loadOrGenIntermediate (line 342) | func (ca CA) loadOrGenIntermediate(rootCert *x509.Certificate, rootKey... method genIntermediate (line 380) | func (ca CA) genIntermediate(rootCert *x509.Certificate, rootKey crypt... method storageKeyCAPrefix (line 407) | func (ca CA) storageKeyCAPrefix() string { method storageKeyRootCert (line 411) | func (ca CA) storageKeyRootCert() string { method storageKeyRootKey (line 415) | func (ca CA) storageKeyRootKey() string { method storageKeyIntermediateCert (line 419) | func (ca CA) storageKeyIntermediateCert() string { method storageKeyIntermediateKey (line 423) | func (ca CA) storageKeyIntermediateKey() string { method newReplacer (line 427) | func (ca CA) newReplacer() *caddy.Replacer { method installRoot (line 436) | func (ca CA) installRoot() error { type AuthorityConfig (line 456) | type AuthorityConfig struct constant DefaultCAID (line 466) | DefaultCAID = "local" constant defaultCAName (line 468) | defaultCAName = "Caddy Local Authority" constant defaultRootCommonName (line 469) | defaultRootCommonName = "{pki.ca.name} - {time.now.year} ECC Root" constant defaultIntermediateCommonName (line 470) | defaultIntermediateCommonName = "{pki.ca.name} - ECC Intermediate" constant defaultRootLifetime (line 472) | defaultRootLifetime = 24 * time.Hour * 30 * 12 * 10 constant defaultIntermediateLifetime (line 473) | defaultIntermediateLifetime = 24 * time.Hour * 7 constant defaultMaintenanceInterval (line 474) | defaultMaintenanceInterval = 10 * time.Minute constant defaultRenewalWindowRatio (line 475) | defaultRenewalWindowRatio = 0.2 FILE: modules/caddypki/certificates.go function generateRoot (line 26) | func generateRoot(commonName string) (*x509.Certificate, crypto.Signer, ... function generateIntermediate (line 38) | func generateIntermediate(commonName string, rootCrt *x509.Certificate, ... function newCert (line 50) | func newCert(commonName, templateName string, lifetime time.Duration) (c... FILE: modules/caddypki/command.go function init (line 34) | func init() { function cmdTrust (line 102) | func cmdTrust(fl caddycmd.Flags) (int, error) { function cmdUntrust (line 146) | func cmdUntrust(fl caddycmd.Flags) (int, error) { function rootCertFromAdmin (line 207) | func rootCertFromAdmin(adminAddr string, caID string) (*x509.Certificate... FILE: modules/caddypki/crypto.go function pemDecodeCertificate (line 33) | func pemDecodeCertificate(pemDER []byte) (*x509.Certificate, error) { function pemDecodeCertificateChain (line 47) | func pemDecodeCertificateChain(pemDER []byte) ([]*x509.Certificate, erro... function pemEncodeCert (line 56) | func pemEncodeCert(der []byte) ([]byte, error) { function pemEncode (line 60) | func pemEncode(blockType string, b []byte) ([]byte, error) { function trusted (line 66) | func trusted(cert *x509.Certificate) bool { type KeyPair (line 73) | type KeyPair struct method Load (line 91) | func (kp KeyPair) Load() ([]*x509.Certificate, crypto.Signer, error) { function verifyKeysMatch (line 127) | func verifyKeysMatch(crt *x509.Certificate, signer crypto.Signer) error { FILE: modules/caddypki/crypto_test.go function TestKeyPair_Load (line 31) | func TestKeyPair_Load(t *testing.T) { function Test_pemDecodeCertificate (line 172) | func Test_pemDecodeCertificate(t *testing.T) { function Test_pemDecodeCertificateChain (line 244) | func Test_pemDecodeCertificateChain(t *testing.T) { FILE: modules/caddypki/maintain.go method maintenanceForCA (line 27) | func (p *PKI) maintenanceForCA(ca *CA) { method renewCerts (line 51) | func (p *PKI) renewCerts() { method renewCertsForCA (line 62) | func (p *PKI) renewCertsForCA(ca *CA) error { method needsRenewal (line 106) | func (ca *CA) needsRenewal(cert *x509.Certificate) bool { FILE: modules/caddypki/maintain_test.go function TestCA_needsRenewal (line 23) | func TestCA_needsRenewal(t *testing.T) { FILE: modules/caddypki/pki.go function init (line 25) | func init() { type PKI (line 35) | type PKI struct method CaddyModule (line 48) | func (PKI) CaddyModule() caddy.ModuleInfo { method Provision (line 56) | func (p *PKI) Provision(ctx caddy.Context) error { method ProvisionDefaultCA (line 81) | func (p *PKI) ProvisionDefaultCA(ctx caddy.Context) error { method Start (line 91) | func (p *PKI) Start() error { method Stop (line 121) | func (p *PKI) Stop() error { method GetCA (line 128) | func (p *PKI) GetCA(ctx caddy.Context, id string) (*CA, error) { FILE: modules/caddytls/acmeissuer.go function init (line 40) | func init() { type ACMEIssuer (line 45) | type ACMEIssuer struct method CaddyModule (line 121) | func (ACMEIssuer) CaddyModule() caddy.ModuleInfo { method Provision (line 129) | func (iss *ACMEIssuer) Provision(ctx caddy.Context) error { method makeIssuerTemplate (line 209) | func (iss *ACMEIssuer) makeIssuerTemplate(ctx caddy.Context) (certmagi... method SetConfig (line 280) | func (iss *ACMEIssuer) SetConfig(cfg *certmagic.Config) { method PreCheck (line 286) | func (iss *ACMEIssuer) PreCheck(ctx context.Context, names []string, i... method Issue (line 291) | func (iss *ACMEIssuer) Issue(ctx context.Context, csr *x509.Certificat... method IssuerKey (line 296) | func (iss *ACMEIssuer) IssuerKey() string { method Revoke (line 301) | func (iss *ACMEIssuer) Revoke(ctx context.Context, cert certmagic.Cert... method GetACMEIssuer (line 309) | func (iss *ACMEIssuer) GetACMEIssuer() *ACMEIssuer { return iss } method GetRenewalInfo (line 313) | func (iss *ACMEIssuer) GetRenewalInfo(ctx context.Context, cert certma... method generateZeroSSLEABCredentials (line 319) | func (iss *ACMEIssuer) generateZeroSSLEABCredentials(ctx context.Conte... method UnmarshalCaddyfile (line 403) | func (iss *ACMEIssuer) UnmarshalCaddyfile(d *caddyfile.Dispenser) error { function ParseCaddyfilePreferredChainsOptions (line 654) | func ParseCaddyfilePreferredChainsOptions(d *caddyfile.Dispenser) (*Chai... type ChainPreference (line 708) | type ChainPreference struct FILE: modules/caddytls/automation.go type AutomationConfig (line 37) | type AutomationConfig struct type AutomationPolicy (line 91) | type AutomationPolicy struct method Provision (line 182) | func (ap *AutomationPolicy) Provision(tlsApp *TLS) error { method makeCertMagicConfig (line 272) | func (ap *AutomationPolicy) makeCertMagicConfig(tlsApp *TLS, issuers [... method IsProvisioned (line 386) | func (ap *AutomationPolicy) IsProvisioned() bool { return ap.magic != ... method RebuildCertMagic (line 397) | func (ap *AutomationPolicy) RebuildCertMagic(tlsApp *TLS) error { method Subjects (line 421) | func (ap *AutomationPolicy) Subjects() []string { method AllInternalSubjects (line 426) | func (ap *AutomationPolicy) AllInternalSubjects() bool { method onlyInternalIssuer (line 432) | func (ap *AutomationPolicy) onlyInternalIssuer() bool { method isWildcardOrDefault (line 442) | func (ap *AutomationPolicy) isWildcardOrDefault() bool { function DefaultIssuers (line 456) | func DefaultIssuers(userEmail string) []certmagic.Issuer { function DefaultIssuersProvisioned (line 469) | func DefaultIssuersProvisioned(ctx caddy.Context) ([]certmagic.Issuer, e... type ChallengesConfig (line 483) | type ChallengesConfig struct type HTTPChallengeConfig (line 528) | type HTTPChallengeConfig struct type TLSALPNChallengeConfig (line 541) | type TLSALPNChallengeConfig struct type DNSChallengeConfig (line 556) | type DNSChallengeConfig struct type ConfigSetter (line 591) | type ConfigSetter interface FILE: modules/caddytls/capools.go function init (line 23) | func init() { type CA (line 34) | type CA interface type InlineCAPool (line 40) | type InlineCAPool struct method CaddyModule (line 51) | func (icp InlineCAPool) CaddyModule() caddy.ModuleInfo { method Provision (line 61) | func (icp *InlineCAPool) Provision(ctx caddy.Context) error { method UnmarshalCaddyfile (line 82) | func (icp *InlineCAPool) UnmarshalCaddyfile(d *caddyfile.Dispenser) er... method CertPool (line 102) | func (icp InlineCAPool) CertPool() *x509.CertPool { type FileCAPool (line 107) | type FileCAPool struct method CaddyModule (line 118) | func (FileCAPool) CaddyModule() caddy.ModuleInfo { method Provision (line 128) | func (f *FileCAPool) Provision(ctx caddy.Context) error { method UnmarshalCaddyfile (line 148) | func (fcap *FileCAPool) UnmarshalCaddyfile(d *caddyfile.Dispenser) err... method CertPool (line 165) | func (f FileCAPool) CertPool() *x509.CertPool { type PKIRootCAPool (line 170) | type PKIRootCAPool struct method CaddyModule (line 179) | func (PKIRootCAPool) CaddyModule() caddy.ModuleInfo { method Provision (line 189) | func (p *PKIRootCAPool) Provision(ctx caddy.Context) error { method UnmarshalCaddyfile (line 219) | func (pkir *PKIRootCAPool) UnmarshalCaddyfile(d *caddyfile.Dispenser) ... method CertPool (line 237) | func (p PKIRootCAPool) CertPool() *x509.CertPool { type PKIIntermediateCAPool (line 242) | type PKIIntermediateCAPool struct method CaddyModule (line 251) | func (PKIIntermediateCAPool) CaddyModule() caddy.ModuleInfo { method Provision (line 261) | func (p *PKIIntermediateCAPool) Provision(ctx caddy.Context) error { method UnmarshalCaddyfile (line 292) | func (pic *PKIIntermediateCAPool) UnmarshalCaddyfile(d *caddyfile.Disp... method CertPool (line 310) | func (p PKIIntermediateCAPool) CertPool() *x509.CertPool { type StoragePool (line 315) | type StoragePool struct method CaddyModule (line 328) | func (StoragePool) CaddyModule() caddy.ModuleInfo { method Provision (line 338) | func (ca *StoragePool) Provision(ctx caddy.Context) error { method UnmarshalCaddyfile (line 380) | func (sp *StoragePool) UnmarshalCaddyfile(d *caddyfile.Dispenser) error { method CertPool (line 412) | func (p StoragePool) CertPool() *x509.CertPool { type TLSConfig (line 419) | type TLSConfig struct method unmarshalCaddyfile (line 450) | func (t *TLSConfig) unmarshalCaddyfile(d *caddyfile.Dispenser) error { method makeTLSClientConfig (line 504) | func (t *TLSConfig) makeTLSClientConfig(ctx caddy.Context) (*tls.Confi... type HTTPCertPool (line 550) | type HTTPCertPool struct method CaddyModule (line 561) | func (HTTPCertPool) CaddyModule() caddy.ModuleInfo { method Provision (line 571) | func (hcp *HTTPCertPool) Provision(ctx caddy.Context) error { method UnmarshalCaddyfile (line 626) | func (hcp *HTTPCertPool) UnmarshalCaddyfile(d *caddyfile.Dispenser) er... method Validate (line 653) | func (hcp HTTPCertPool) Validate() (err error) { method CertPool (line 664) | func (hcp HTTPCertPool) CertPool() *x509.CertPool { FILE: modules/caddytls/capools_test.go constant test_der_1 (line 16) | test_der_1 = `MIIDSzCCAjOgAwIBAgIUfIRObjWNUA4jxQ/0x8BOCvE2Vw4wDQYJ... constant test_cert_file_1 (line 17) | test_cert_file_1 = "../../caddytest/caddy.ca.cer" function TestInlineCAPoolUnmarshalCaddyfile (line 20) | func TestInlineCAPoolUnmarshalCaddyfile(t *testing.T) { function TestFileCAPoolUnmarshalCaddyfile (line 105) | func TestFileCAPoolUnmarshalCaddyfile(t *testing.T) { function TestPKIRootCAPoolUnmarshalCaddyfile (line 206) | func TestPKIRootCAPoolUnmarshalCaddyfile(t *testing.T) { function TestPKIIntermediateCAPoolUnmarshalCaddyfile (line 300) | func TestPKIIntermediateCAPoolUnmarshalCaddyfile(t *testing.T) { function TestStoragePoolUnmarshalCaddyfile (line 389) | func TestStoragePoolUnmarshalCaddyfile(t *testing.T) { function TestTLSConfig_unmarshalCaddyfile (line 480) | func TestTLSConfig_unmarshalCaddyfile(t *testing.T) { function TestHTTPCertPoolUnmarshalCaddyfile (line 657) | func TestHTTPCertPoolUnmarshalCaddyfile(t *testing.T) { FILE: modules/caddytls/certmanagers.go function init (line 22) | func init() { type Tailscale (line 28) | type Tailscale struct method CaddyModule (line 33) | func (Tailscale) CaddyModule() caddy.ModuleInfo { method Provision (line 40) | func (ts *Tailscale) Provision(ctx caddy.Context) error { method GetCertificate (line 45) | func (ts Tailscale) GetCertificate(ctx context.Context, hello *tls.Cli... method canHazCertificate (line 59) | func (ts Tailscale) canHazCertificate(ctx context.Context, hello *tls.... method UnmarshalCaddyfile (line 78) | func (Tailscale) UnmarshalCaddyfile(d *caddyfile.Dispenser) error { constant tailscaleDomainAliasEnding (line 87) | tailscaleDomainAliasEnding = ".ts.net" type HTTPCertGetter (line 90) | type HTTPCertGetter struct method CaddyModule (line 114) | func (hcg HTTPCertGetter) CaddyModule() caddy.ModuleInfo { method Provision (line 121) | func (hcg *HTTPCertGetter) Provision(ctx caddy.Context) error { method GetCertificate (line 129) | func (hcg HTTPCertGetter) GetCertificate(ctx context.Context, hello *t... method UnmarshalCaddyfile (line 187) | func (hcg *HTTPCertGetter) UnmarshalCaddyfile(d *caddyfile.Dispenser) ... FILE: modules/caddytls/certselection.go type CustomCertSelectionPolicy (line 34) | type CustomCertSelectionPolicy struct method SelectCertificate (line 56) | func (p CustomCertSelectionPolicy) SelectCertificate(hello *tls.Client... method UnmarshalCaddyfile (line 125) | func (p *CustomCertSelectionPolicy) UnmarshalCaddyfile(d *caddyfile.Di... type bigInt (line 190) | type bigInt struct method MarshalJSON (line 192) | func (bi bigInt) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 196) | func (bi *bigInt) UnmarshalJSON(p []byte) error { FILE: modules/caddytls/connpolicy.go function init (line 40) | func init() { type ConnectionPolicies (line 47) | type ConnectionPolicies method Provision (line 52) | func (cp ConnectionPolicies) Provision(ctx caddy.Context) error { method TLSConfig (line 98) | func (cp ConnectionPolicies) TLSConfig(ctx caddy.Context) *tls.Config { type ConnectionPolicy (line 184) | type ConnectionPolicy struct method buildStandardTLSConfig (line 268) | func (p *ConnectionPolicy) buildStandardTLSConfig(ctx caddy.Context) e... method SettingsEmpty (line 437) | func (p ConnectionPolicy) SettingsEmpty() bool { method SettingsEqual (line 452) | func (p ConnectionPolicy) SettingsEqual(q ConnectionPolicy) bool { method UnmarshalCaddyfile (line 480) | func (cp *ConnectionPolicy) UnmarshalCaddyfile(d *caddyfile.Dispenser)... type HandshakeContext (line 259) | type HandshakeContext interface type ClientAuthentication (line 589) | type ClientAuthentication struct method UnmarshalCaddyfile (line 653) | func (ca *ClientAuthentication) UnmarshalCaddyfile(d *caddyfile.Dispen... method provision (line 777) | func (clientauth *ClientAuthentication) provision(ctx caddy.Context) e... method Active (line 823) | func (clientauth ClientAuthentication) Active() bool { method ConfigureTLSConfig (line 833) | func (clientauth *ClientAuthentication) ConfigureTLSConfig(cfg *tls.Co... method verifyConnection (line 898) | func (clientauth *ClientAuthentication) verifyConnection(cs tls.Connec... function convertPEMFilesToDER (line 754) | func convertPEMFilesToDER(filename string) ([]string, error) { function decodeBase64DERCert (line 918) | func decodeBase64DERCert(certStr string) (*x509.Certificate, error) { function setDefaultTLSParams (line 929) | func setDefaultTLSParams(cfg *tls.Config) { type LeafCertClientAuth (line 950) | type LeafCertClientAuth struct method CaddyModule (line 956) | func (LeafCertClientAuth) CaddyModule() caddy.ModuleInfo { method Provision (line 963) | func (l *LeafCertClientAuth) Provision(ctx caddy.Context) error { method UnmarshalCaddyfile (line 988) | func (l *LeafCertClientAuth) UnmarshalCaddyfile(d *caddyfile.Dispenser... method VerifyClientCertificate (line 1029) | func (l LeafCertClientAuth) VerifyClientCertificate(rawCerts [][]byte,... type PublicKeyAlgorithm (line 1047) | type PublicKeyAlgorithm method UnmarshalJSON (line 1050) | func (a *PublicKeyAlgorithm) UnmarshalJSON(b []byte) error { type ConnectionMatcher (line 1062) | type ConnectionMatcher interface type LeafCertificateLoader (line 1068) | type LeafCertificateLoader interface type ClientCertificateVerifier (line 1074) | type ClientCertificateVerifier interface type destructableWriter (line 1080) | type destructableWriter struct method Destruct (line 1082) | func (d destructableWriter) Destruct() error { return d.Close() } function ParseCaddyfileNestedMatcherSet (line 1095) | func ParseCaddyfileNestedMatcherSet(d *caddyfile.Dispenser) (caddy.Modul... FILE: modules/caddytls/connpolicy_test.go function TestClientAuthenticationUnmarshalCaddyfileWithDirectiveName (line 27) | func TestClientAuthenticationUnmarshalCaddyfileWithDirectiveName(t *test... function TestClientAuthenticationProvision (line 283) | func TestClientAuthenticationProvision(t *testing.T) { FILE: modules/caddytls/distributedstek/distributedstek.go function init (line 42) | func init() { type Provider (line 50) | type Provider struct method CaddyModule (line 63) | func (Provider) CaddyModule() caddy.ModuleInfo { method Provision (line 71) | func (s *Provider) Provision(ctx caddy.Context) error { method Initialize (line 96) | func (s *Provider) Initialize(config *caddytls.SessionTicketService) (... method Next (line 113) | func (s *Provider) Next(doneChan <-chan struct{}) <-chan [][32]byte { method loadSTEK (line 119) | func (s *Provider) loadSTEK() (distributedSTEK, error) { method storeSTEK (line 133) | func (s *Provider) storeSTEK(dstek distributedSTEK) error { method getSTEK (line 150) | func (s *Provider) getSTEK() (distributedSTEK, error) { method rotateKeys (line 184) | func (s *Provider) rotateKeys(oldSTEK distributedSTEK) (distributedSTE... method rotate (line 207) | func (s *Provider) rotate(doneChan <-chan struct{}, keysChan chan<- []... type distributedSTEK (line 239) | type distributedSTEK struct constant stekLockName (line 245) | stekLockName = "stek_check" constant stekFileName (line 246) | stekFileName = "stek/stek.bin" FILE: modules/caddytls/ech.go function init (line 28) | func init() { type ECH (line 54) | type ECH struct method Provision (line 80) | func (ech *ECH) Provision(ctx caddy.Context) ([]string, error) { method setConfigsFromStorage (line 148) | func (ech *ECH) setConfigsFromStorage(ctx caddy.Context, logger *zap.L... method rotateECHKeys (line 190) | func (ech *ECH) rotateECHKeys(ctx caddy.Context, logger *zap.Logger, s... method rotationNeeded (line 285) | func (ech *ECH) rotationNeeded(rotationInterval, deleteAfter time.Dura... method updateKeyList (line 300) | func (ech *ECH) updateKeyList() { method publishECHConfigs (line 314) | func (t *TLS) publishECHConfigs(logger *zap.Logger) error { function loadECHConfig (line 525) | func loadECHConfig(ctx caddy.Context, configID string) (echConfig, error) { function generateAndStoreECHConfig (line 608) | func generateAndStoreECHConfig(ctx caddy.Context, publicName string) (ec... type ECHConfiguration (line 697) | type ECHConfiguration struct type ECHPublication (line 720) | type ECHPublication struct type ECHDNSProvider (line 765) | type ECHDNSProvider interface type ECHDNSPublisher (line 774) | type ECHDNSPublisher struct method CaddyModule (line 783) | func (ECHDNSPublisher) CaddyModule() caddy.ModuleInfo { method Provision (line 790) | func (dnsPub *ECHDNSPublisher) Provision(ctx caddy.Context) error { method PublisherKey (line 809) | func (dnsPub ECHDNSPublisher) PublisherKey() string { method PublishECHConfigList (line 816) | func (dnsPub *ECHDNSPublisher) PublishECHConfigList(ctx context.Contex... type echConfig (line 908) | type echConfig struct method MarshalBinary (line 937) | func (echCfg echConfig) MarshalBinary() ([]byte, error) { method UnmarshalBinary (line 949) | func (echCfg *echConfig) UnmarshalBinary(data []byte) error { method marshalBinary (line 1023) | func (echCfg echConfig) marshalBinary(b *cryptobyte.Builder) error { type hpkeSymmetricCipherSuite (line 1057) | type hpkeSymmetricCipherSuite struct type echConfigList (line 1062) | type echConfigList method MarshalBinary (line 1064) | func (cl echConfigList) MarshalBinary() ([]byte, error) { function newECHConfigID (line 1083) | func newECHConfigID(ctx caddy.Context) (uint8, error) { type ECHPublisher (line 1129) | type ECHPublisher interface type PublishECHConfigListErrors (line 1150) | type PublishECHConfigListErrors method Error (line 1152) | func (p PublishECHConfigListErrors) Error() string { type echConfigMeta (line 1165) | type echConfigMeta struct function echMetaKey (line 1171) | func echMetaKey(configID uint8) string { type publicationHistory (line 1177) | type publicationHistory constant echStorageLockName (line 1180) | echStorageLockName = "ech_rotation" constant echConfigsKey (line 1184) | echConfigsKey = "ech/configs" constant draftTLSESNI25 (line 1187) | draftTLSESNI25 = 0xfe0d FILE: modules/caddytls/fileloader.go function init (line 26) | func init() { type FileLoader (line 31) | type FileLoader method Provision (line 34) | func (fl FileLoader) Provision(ctx caddy.Context) error { method CaddyModule (line 54) | func (FileLoader) CaddyModule() caddy.ModuleInfo { method LoadCertificates (line 80) | func (fl FileLoader) LoadCertificates() ([]Certificate, error) { type CertKeyFilePair (line 63) | type CertKeyFilePair struct FILE: modules/caddytls/folderloader.go function init (line 30) | func init() { type FolderLoader (line 37) | type FolderLoader method CaddyModule (line 40) | func (FolderLoader) CaddyModule() caddy.ModuleInfo { method Provision (line 48) | func (fl FolderLoader) Provision(ctx caddy.Context) error { method LoadCertificates (line 63) | func (fl FolderLoader) LoadCertificates() ([]Certificate, error) { function tlsCertFromCertAndKeyPEMBundle (line 106) | func tlsCertFromCertAndKeyPEMBundle(bundle []byte) (tls.Certificate, err... FILE: modules/caddytls/internalissuer.go function init (line 33) | func init() { type InternalIssuer (line 40) | type InternalIssuer struct method CaddyModule (line 60) | func (InternalIssuer) CaddyModule() caddy.ModuleInfo { method Provision (line 68) | func (iss *InternalIssuer) Provision(ctx caddy.Context) error { method IssuerKey (line 98) | func (iss InternalIssuer) IssuerKey() string { method Issue (line 103) | func (iss InternalIssuer) Issue(ctx context.Context, csr *x509.Certifi... method UnmarshalCaddyfile (line 158) | func (iss *InternalIssuer) UnmarshalCaddyfile(d *caddyfile.Dispenser) ... type customCertLifetime (line 192) | type customCertLifetime method Modify (line 194) | func (d customCertLifetime) Modify(cert *x509.Certificate, _ provision... constant defaultInternalCertLifetime (line 200) | defaultInternalCertLifetime = 12 * time.Hour FILE: modules/caddytls/internalissuer_test.go function TestInternalIssuer_Issue (line 36) | func TestInternalIssuer_Issue(t *testing.T) { FILE: modules/caddytls/leaffileloader.go function init (line 27) | func init() { type LeafFileLoader (line 32) | type LeafFileLoader struct method CaddyModule (line 37) | func (LeafFileLoader) CaddyModule() caddy.ModuleInfo { method Provision (line 45) | func (fl *LeafFileLoader) Provision(ctx caddy.Context) error { method UnmarshalCaddyfile (line 57) | func (fl *LeafFileLoader) UnmarshalCaddyfile(d *caddyfile.Dispenser) e... method LoadLeafCertificates (line 64) | func (fl LeafFileLoader) LoadLeafCertificates() ([]*x509.Certificate, ... function convertPEMFilesToDERBytes (line 80) | func convertPEMFilesToDERBytes(filename string) ([]byte, error) { FILE: modules/caddytls/leaffileloader_test.go function TestLeafFileLoader (line 13) | func TestLeafFileLoader(t *testing.T) { FILE: modules/caddytls/leaffolderloader.go function init (line 28) | func init() { type LeafFolderLoader (line 35) | type LeafFolderLoader struct method CaddyModule (line 40) | func (LeafFolderLoader) CaddyModule() caddy.ModuleInfo { method Provision (line 48) | func (fl *LeafFolderLoader) Provision(ctx caddy.Context) error { method UnmarshalCaddyfile (line 60) | func (fl *LeafFolderLoader) UnmarshalCaddyfile(d *caddyfile.Dispenser)... method LoadLeafCertificates (line 68) | func (fl LeafFolderLoader) LoadLeafCertificates() ([]*x509.Certificate... FILE: modules/caddytls/leaffolderloader_test.go function TestLeafFolderLoader (line 13) | func TestLeafFolderLoader(t *testing.T) { FILE: modules/caddytls/leafpemloader.go function init (line 25) | func init() { type LeafPEMLoader (line 32) | type LeafPEMLoader struct method Provision (line 37) | func (pl *LeafPEMLoader) Provision(ctx caddy.Context) error { method CaddyModule (line 49) | func (LeafPEMLoader) CaddyModule() caddy.ModuleInfo { method UnmarshalCaddyfile (line 57) | func (fl *LeafPEMLoader) UnmarshalCaddyfile(d *caddyfile.Dispenser) er... method LoadLeafCertificates (line 64) | func (pl LeafPEMLoader) LoadLeafCertificates() ([]*x509.Certificate, e... FILE: modules/caddytls/leafpemloader_test.go function TestLeafPEMLoader (line 13) | func TestLeafPEMLoader(t *testing.T) { FILE: modules/caddytls/leafstorageloader.go function init (line 28) | func init() { type LeafStorageLoader (line 34) | type LeafStorageLoader struct method CaddyModule (line 49) | func (LeafStorageLoader) CaddyModule() caddy.ModuleInfo { method Provision (line 57) | func (sl *LeafStorageLoader) Provision(ctx caddy.Context) error { method LoadLeafCertificates (line 85) | func (sl LeafStorageLoader) LoadLeafCertificates() ([]*x509.Certificat... function convertPEMToDER (line 106) | func convertPEMToDER(pemData []byte) ([]byte, error) { FILE: modules/caddytls/matchers.go function init (line 37) | func init() { type MatchServerName (line 47) | type MatchServerName method CaddyModule (line 50) | func (MatchServerName) CaddyModule() caddy.ModuleInfo { method Match (line 58) | func (m MatchServerName) Match(hello *tls.ClientHelloInfo) bool { method UnmarshalCaddyfile (line 84) | func (m *MatchServerName) UnmarshalCaddyfile(d *caddyfile.Dispenser) e... type MatchRegexp (line 109) | type MatchRegexp struct method Provision (line 129) | func (mre *MatchRegexp) Provision(caddy.Context) error { method Validate (line 140) | func (mre *MatchRegexp) Validate() error { method Match (line 151) | func (mre *MatchRegexp) Match(input string, repl *caddy.Replacer) bool { method UnmarshalCaddyfile (line 184) | func (mre *MatchRegexp) UnmarshalCaddyfile(d *caddyfile.Dispenser) err... type MatchServerNameRE (line 220) | type MatchServerNameRE struct method CaddyModule (line 223) | func (MatchServerNameRE) CaddyModule() caddy.ModuleInfo { method Match (line 231) | func (m MatchServerNameRE) Match(hello *tls.ClientHelloInfo) bool { type MatchRemoteIP (line 262) | type MatchRemoteIP struct method CaddyModule (line 275) | func (MatchRemoteIP) CaddyModule() caddy.ModuleInfo { method Provision (line 283) | func (m *MatchRemoteIP) Provision(ctx caddy.Context) error { method Match (line 306) | func (m MatchRemoteIP) Match(hello *tls.ClientHelloInfo) bool { method parseIPRange (line 323) | func (MatchRemoteIP) parseIPRange(str string) ([]netip.Prefix, error) { method matches (line 342) | func (MatchRemoteIP) matches(ip netip.Addr, ranges []netip.Prefix) bool { method UnmarshalCaddyfile (line 353) | func (m *MatchRemoteIP) UnmarshalCaddyfile(d *caddyfile.Dispenser) err... type MatchLocalIP (line 390) | type MatchLocalIP struct method CaddyModule (line 399) | func (MatchLocalIP) CaddyModule() caddy.ModuleInfo { method Provision (line 407) | func (m *MatchLocalIP) Provision(ctx caddy.Context) error { method Match (line 422) | func (m MatchLocalIP) Match(hello *tls.ClientHelloInfo) bool { method parseIPRange (line 438) | func (MatchLocalIP) parseIPRange(str string) ([]netip.Prefix, error) { method matches (line 457) | func (MatchLocalIP) matches(ip netip.Addr, ranges []netip.Prefix) bool { method UnmarshalCaddyfile (line 466) | func (m *MatchLocalIP) UnmarshalCaddyfile(d *caddyfile.Dispenser) error { constant regexpPlaceholderPrefix (line 512) | regexpPlaceholderPrefix = "tls.regexp" FILE: modules/caddytls/matchers_test.go function TestServerNameMatcher (line 26) | func TestServerNameMatcher(t *testing.T) { function TestServerNameREMatcher (line 92) | func TestServerNameREMatcher(t *testing.T) { function TestRemoteIPMatcher (line 138) | func TestRemoteIPMatcher(t *testing.T) { function TestLocalIPMatcher (line 214) | func TestLocalIPMatcher(t *testing.T) { type testConn (line 285) | type testConn struct method RemoteAddr (line 290) | func (tc testConn) RemoteAddr() net.Addr { return tc.addr } method LocalAddr (line 291) | func (tc testConn) LocalAddr() net.Addr { return tc.addr } type testAddr (line 293) | type testAddr method Network (line 295) | func (testAddr) Network() string { return "tcp" } method String (line 296) | func (ta testAddr) String() string { return string(ta) } FILE: modules/caddytls/ondemand.go function init (line 35) | func init() { type OnDemandConfig (line 44) | type OnDemandConfig struct type OnDemandPermission (line 59) | type OnDemandPermission interface type PermissionByHTTP (line 77) | type PermissionByHTTP struct method CaddyModule (line 95) | func (PermissionByHTTP) CaddyModule() caddy.ModuleInfo { method UnmarshalCaddyfile (line 103) | func (p *PermissionByHTTP) UnmarshalCaddyfile(d *caddyfile.Dispenser) ... method Provision (line 113) | func (p *PermissionByHTTP) Provision(ctx caddy.Context) error { method CertificateAllowed (line 119) | func (p PermissionByHTTP) CertificateAllowed(ctx context.Context, name... FILE: modules/caddytls/pemloader.go function init (line 24) | func init() { type PEMLoader (line 31) | type PEMLoader method Provision (line 34) | func (pl PEMLoader) Provision(ctx caddy.Context) error { method CaddyModule (line 53) | func (PEMLoader) CaddyModule() caddy.ModuleInfo { method LoadCertificates (line 75) | func (pl PEMLoader) LoadCertificates() ([]Certificate, error) { type CertKeyPEMPair (line 61) | type CertKeyPEMPair struct FILE: modules/caddytls/sessiontickets.go type SessionTicketService (line 32) | type SessionTicketService struct method provision (line 57) | func (s *SessionTicketService) provision(ctx caddy.Context) error { method start (line 94) | func (s *SessionTicketService) start() error { method stayUpdated (line 122) | func (s *SessionTicketService) stayUpdated() { method stop (line 152) | func (s *SessionTicketService) stop() { method register (line 165) | func (s *SessionTicketService) register(cfg *tls.Config) { method unregister (line 179) | func (s *SessionTicketService) unregister(cfg *tls.Config) { method RotateSTEKs (line 190) | func (s SessionTicketService) RotateSTEKs(keys [][32]byte) ([][32]byte... method generateSTEK (line 219) | func (s *SessionTicketService) generateSTEK() ([32]byte, error) { type STEKProvider (line 227) | type STEKProvider interface constant defaultSTEKRotationInterval (line 244) | defaultSTEKRotationInterval = 12 * time.Hour constant defaultMaxSTEKs (line 245) | defaultMaxSTEKs = 4 FILE: modules/caddytls/standardstek/stek.go function init (line 27) | func init() { type standardSTEKProvider (line 31) | type standardSTEKProvider struct method CaddyModule (line 37) | func (standardSTEKProvider) CaddyModule() caddy.ModuleInfo { method Initialize (line 45) | func (s *standardSTEKProvider) Initialize(config *caddytls.SessionTick... method Next (line 76) | func (s *standardSTEKProvider) Next(doneChan <-chan struct{}) <-chan [... method rotate (line 84) | func (s *standardSTEKProvider) rotate(doneChan <-chan struct{}, keysCh... FILE: modules/caddytls/storageloader.go function init (line 27) | func init() { type StorageLoader (line 33) | type StorageLoader struct method CaddyModule (line 45) | func (StorageLoader) CaddyModule() caddy.ModuleInfo { method Provision (line 53) | func (sl *StorageLoader) Provision(ctx caddy.Context) error { method LoadCertificates (line 76) | func (sl StorageLoader) LoadCertificates() ([]Certificate, error) { FILE: modules/caddytls/tls.go function init (line 40) | func init() { type TLS (line 52) | type TLS struct method CaddyModule (line 153) | func (TLS) CaddyModule() caddy.ModuleInfo { method Provision (line 161) | func (t *TLS) Provision(ctx caddy.Context) error { method Validate (line 368) | func (t *TLS) Validate() error { method Start (line 400) | func (t *TLS) Start() error { method Stop (line 465) | func (t *TLS) Stop() error { method Cleanup (line 477) | func (t *TLS) Cleanup() error { method Manage (line 560) | func (t *TLS) Manage(subjects map[string]struct{}) error { method managingWildcardFor (line 618) | func (t *TLS) managingWildcardFor(subj string, otherSubjsToManage map[... method RegisterServerNames (line 660) | func (t *TLS) RegisterServerNames(dnsNames []string) { method HandleHTTPChallenge (line 678) | func (t *TLS) HandleHTTPChallenge(w http.ResponseWriter, r *http.Reque... method AddAutomationPolicy (line 727) | func (t *TLS) AddAutomationPolicy(ap *AutomationPolicy) error { method getConfigForName (line 765) | func (t *TLS) getConfigForName(name string) *certmagic.Config { method getAutomationPolicyForName (line 774) | func (t *TLS) getAutomationPolicyForName(name string) *AutomationPolicy { method HasCertificateForSubject (line 797) | func (t *TLS) HasCertificateForSubject(subject string) bool { method keepStorageClean (line 819) | func (t *TLS) keepStorageClean() { method cleanStorageUnits (line 840) | func (t *TLS) cleanStorageUnits() { method storageCleanInterval (line 905) | func (t *TLS) storageCleanInterval() time.Duration { method onEvent (line 913) | func (t *TLS) onEvent(ctx context.Context, eventName string, data map[... function AllMatchingCertificates (line 793) | func AllMatchingCertificates(san string) []certmagic.Certificate { type CertificateLoader (line 920) | type CertificateLoader interface type Certificate (line 926) | type Certificate struct type AutomateLoader (line 941) | type AutomateLoader method CaddyModule (line 944) | func (AutomateLoader) CaddyModule() caddy.ModuleInfo { type CertCacheOptions (line 952) | type CertCacheOptions struct FILE: modules/caddytls/values.go function CipherSuiteNameSupported (line 28) | func CipherSuiteNameSupported(name string) bool { function CipherSuiteID (line 34) | func CipherSuiteID(name string) uint16 { function SupportedCipherSuites (line 45) | func SupportedCipherSuites() []*tls.CipherSuite { function getOptimalDefaultCipherSuites (line 77) | func getOptimalDefaultCipherSuites() []uint16 { function ProtocolName (line 144) | func ProtocolName(id uint16) string { FILE: modules/caddytls/zerosslissuer.go function init (line 32) | func init() { type ZeroSSLIssuer (line 40) | type ZeroSSLIssuer struct method CaddyModule (line 69) | func (*ZeroSSLIssuer) CaddyModule() caddy.ModuleInfo { method Provision (line 77) | func (iss *ZeroSSLIssuer) Provision(ctx caddy.Context) error { method Issue (line 113) | func (iss *ZeroSSLIssuer) Issue(ctx context.Context, csr *x509.Certifi... method IssuerKey (line 118) | func (iss *ZeroSSLIssuer) IssuerKey() string { method Revoke (line 123) | func (iss *ZeroSSLIssuer) Revoke(ctx context.Context, cert certmagic.C... method UnmarshalCaddyfile (line 138) | func (iss *ZeroSSLIssuer) UnmarshalCaddyfile(d *caddyfile.Dispenser) e... FILE: modules/filestorage/filestorage.go function init (line 24) | func init() { type FileStorage (line 29) | type FileStorage struct method CaddyModule (line 35) | func (FileStorage) CaddyModule() caddy.ModuleInfo { method CertMagicStorage (line 43) | func (s FileStorage) CertMagicStorage() (certmagic.Storage, error) { method UnmarshalCaddyfile (line 48) | func (s *FileStorage) UnmarshalCaddyfile(d *caddyfile.Dispenser) error { FILE: modules/internal/network/networkproxy.go function init (line 15) | func init() { type ProxyFromURL (line 21) | type ProxyFromURL struct method CaddyModule (line 29) | func (p ProxyFromURL) CaddyModule() caddy.ModuleInfo { method Provision (line 38) | func (p *ProxyFromURL) Provision(ctx caddy.Context) error { method Validate (line 45) | func (p ProxyFromURL) Validate() error { method ProxyFunc (line 53) | func (p ProxyFromURL) ProxyFunc() func(*http.Request) (*url.URL, error) { method UnmarshalCaddyfile (line 105) | func (p *ProxyFromURL) UnmarshalCaddyfile(d *caddyfile.Dispenser) error { type ProxyFromNone (line 113) | type ProxyFromNone struct method CaddyModule (line 115) | func (p ProxyFromNone) CaddyModule() caddy.ModuleInfo { method UnmarshalCaddyfile (line 125) | func (p ProxyFromNone) UnmarshalCaddyfile(d *caddyfile.Dispenser) error { method ProxyFunc (line 130) | func (p ProxyFromNone) ProxyFunc() func(*http.Request) (*url.URL, erro... FILE: modules/logging/appendencoder.go function init (line 34) | func init() { type AppendEncoder (line 44) | type AppendEncoder struct method CaddyModule (line 65) | func (AppendEncoder) CaddyModule() caddy.ModuleInfo { method Provision (line 73) | func (fe *AppendEncoder) Provision(ctx caddy.Context) error { method ConfigureDefaultFormat (line 102) | func (fe *AppendEncoder) ConfigureDefaultFormat(wo caddy.WriterOpener)... method UnmarshalCaddyfile (line 130) | func (fe *AppendEncoder) UnmarshalCaddyfile(d *caddyfile.Dispenser) er... method AddArray (line 188) | func (fe AppendEncoder) AddArray(key string, marshaler zapcore.ArrayMa... method AddObject (line 193) | func (fe AppendEncoder) AddObject(key string, marshaler zapcore.Object... method AddBinary (line 198) | func (fe AppendEncoder) AddBinary(key string, value []byte) { method AddByteString (line 203) | func (fe AppendEncoder) AddByteString(key string, value []byte) { method AddBool (line 208) | func (fe AppendEncoder) AddBool(key string, value bool) { method AddComplex128 (line 213) | func (fe AppendEncoder) AddComplex128(key string, value complex128) { method AddComplex64 (line 218) | func (fe AppendEncoder) AddComplex64(key string, value complex64) { method AddDuration (line 223) | func (fe AppendEncoder) AddDuration(key string, value time.Duration) { method AddFloat64 (line 228) | func (fe AppendEncoder) AddFloat64(key string, value float64) { method AddFloat32 (line 233) | func (fe AppendEncoder) AddFloat32(key string, value float32) { method AddInt (line 238) | func (fe AppendEncoder) AddInt(key string, value int) { method AddInt64 (line 243) | func (fe AppendEncoder) AddInt64(key string, value int64) { method AddInt32 (line 248) | func (fe AppendEncoder) AddInt32(key string, value int32) { method AddInt16 (line 253) | func (fe AppendEncoder) AddInt16(key string, value int16) { method AddInt8 (line 258) | func (fe AppendEncoder) AddInt8(key string, value int8) { method AddString (line 263) | func (fe AppendEncoder) AddString(key, value string) { method AddTime (line 268) | func (fe AppendEncoder) AddTime(key string, value time.Time) { method AddUint (line 273) | func (fe AppendEncoder) AddUint(key string, value uint) { method AddUint64 (line 278) | func (fe AppendEncoder) AddUint64(key string, value uint64) { method AddUint32 (line 283) | func (fe AppendEncoder) AddUint32(key string, value uint32) { method AddUint16 (line 288) | func (fe AppendEncoder) AddUint16(key string, value uint16) { method AddUint8 (line 293) | func (fe AppendEncoder) AddUint8(key string, value uint8) { method AddUintptr (line 298) | func (fe AppendEncoder) AddUintptr(key string, value uintptr) { method AddReflected (line 303) | func (fe AppendEncoder) AddReflected(key string, value any) error { method OpenNamespace (line 308) | func (fe AppendEncoder) OpenNamespace(key string) { method Clone (line 313) | func (fe AppendEncoder) Clone() zapcore.Encoder { method EncodeEntry (line 322) | func (fe AppendEncoder) EncodeEntry(ent zapcore.Entry, fields []zapcor... FILE: modules/logging/cores.go function init (line 10) | func init() { type MockCore (line 15) | type MockCore struct method CaddyModule (line 20) | func (MockCore) CaddyModule() caddy.ModuleInfo { method UnmarshalCaddyfile (line 27) | func (lec *MockCore) UnmarshalCaddyfile(d *caddyfile.Dispenser) error { FILE: modules/logging/encoders.go function init (line 28) | func init() { type ConsoleEncoder (line 34) | type ConsoleEncoder struct method CaddyModule (line 40) | func (ConsoleEncoder) CaddyModule() caddy.ModuleInfo { method Provision (line 48) | func (ce *ConsoleEncoder) Provision(_ caddy.Context) error { method UnmarshalCaddyfile (line 67) | func (ce *ConsoleEncoder) UnmarshalCaddyfile(d *caddyfile.Dispenser) e... type JSONEncoder (line 80) | type JSONEncoder struct method CaddyModule (line 86) | func (JSONEncoder) CaddyModule() caddy.ModuleInfo { method Provision (line 94) | func (je *JSONEncoder) Provision(_ caddy.Context) error { method UnmarshalCaddyfile (line 107) | func (je *JSONEncoder) UnmarshalCaddyfile(d *caddyfile.Dispenser) error { type LogEncoderConfig (line 120) | type LogEncoderConfig struct method UnmarshalCaddyfile (line 158) | func (lec *LogEncoderConfig) UnmarshalCaddyfile(d *caddyfile.Dispenser... method ZapcoreEncoderConfig (line 203) | func (lec *LogEncoderConfig) ZapcoreEncoderConfig() zapcore.EncoderCon... FILE: modules/logging/filewriter.go function init (line 35) | func init() { type fileMode (line 42) | type fileMode method UnmarshalJSON (line 45) | func (m *fileMode) UnmarshalJSON(b []byte) error { method MarshalJSON (line 65) | func (m *fileMode) MarshalJSON() ([]byte, error) { function parseFileMode (line 72) | func parseFileMode(s string) (os.FileMode, error) { type FileWriter (line 85) | type FileWriter struct method CaddyModule (line 153) | func (FileWriter) CaddyModule() caddy.ModuleInfo { method Provision (line 161) | func (fw *FileWriter) Provision(ctx caddy.Context) error { method String (line 173) | func (fw FileWriter) String() string { method WriterKey (line 182) | func (fw FileWriter) WriterKey() string { method OpenWriter (line 187) | func (fw FileWriter) OpenWriter() (io.WriteCloser, error) { method UnmarshalCaddyfile (line 379) | func (fw *FileWriter) UnmarshalCaddyfile(d *caddyfile.Dispenser) error { function normalizeDirPerm (line 299) | func normalizeDirPerm(p os.FileMode) os.FileMode { function mkdirAllInherit (line 314) | func mkdirAllInherit(dir string) error { function mkdirAllFromFile (line 345) | func mkdirAllFromFile(dir string, fileMode os.FileMode) error { FILE: modules/logging/filewriter_test.go function TestFileCreationMode (line 30) | func TestFileCreationMode(t *testing.T) { function TestFileRotationPreserveMode (line 102) | func TestFileRotationPreserveMode(t *testing.T) { function TestFileModeConfig (line 177) | func TestFileModeConfig(t *testing.T) { function TestFileModeJSON (line 257) | func TestFileModeJSON(t *testing.T) { function TestFileModeToJSON (line 311) | func TestFileModeToJSON(t *testing.T) { function TestFileModeModification (line 350) | func TestFileModeModification(t *testing.T) { function TestDirMode_Inherit (line 389) | func TestDirMode_Inherit(t *testing.T) { function TestDirMode_FromFile (line 420) | func TestDirMode_FromFile(t *testing.T) { function TestDirMode_ExplicitOctal (line 469) | func TestDirMode_ExplicitOctal(t *testing.T) { function TestDirMode_Default0700 (line 496) | func TestDirMode_Default0700(t *testing.T) { function TestDirMode_UmaskInteraction (line 522) | func TestDirMode_UmaskInteraction(t *testing.T) { function TestCaddyfile_DirMode_Inherit (line 550) | func TestCaddyfile_DirMode_Inherit(t *testing.T) { function TestCaddyfile_DirMode_FromFile (line 568) | func TestCaddyfile_DirMode_FromFile(t *testing.T) { function TestCaddyfile_DirMode_Octal (line 586) | func TestCaddyfile_DirMode_Octal(t *testing.T) { function TestCaddyfile_DirMode_Invalid (line 600) | func TestCaddyfile_DirMode_Invalid(t *testing.T) { FILE: modules/logging/filewriter_test_windows.go function TestFileCreationMode (line 30) | func TestFileCreationMode(t *testing.T) { function TestDirMode_Windows_CreateSucceeds (line 57) | func TestDirMode_Windows_CreateSucceeds(t *testing.T) { FILE: modules/logging/filterencoder.go function init (line 33) | func init() { type FilterEncoder (line 40) | type FilterEncoder struct method CaddyModule (line 72) | func (FilterEncoder) CaddyModule() caddy.ModuleInfo { method Provision (line 80) | func (fe *FilterEncoder) Provision(ctx caddy.Context) error { method ConfigureDefaultFormat (line 120) | func (fe *FilterEncoder) ConfigureDefaultFormat(wo caddy.WriterOpener)... method UnmarshalCaddyfile (line 152) | func (fe *FilterEncoder) UnmarshalCaddyfile(d *caddyfile.Dispenser) er... method AddArray (line 257) | func (fe FilterEncoder) AddArray(key string, marshaler zapcore.ArrayMa... method AddObject (line 266) | func (fe FilterEncoder) AddObject(key string, marshaler zapcore.Object... method AddBinary (line 278) | func (fe FilterEncoder) AddBinary(key string, value []byte) { method AddByteString (line 285) | func (fe FilterEncoder) AddByteString(key string, value []byte) { method AddBool (line 292) | func (fe FilterEncoder) AddBool(key string, value bool) { method AddComplex128 (line 299) | func (fe FilterEncoder) AddComplex128(key string, value complex128) { method AddComplex64 (line 306) | func (fe FilterEncoder) AddComplex64(key string, value complex64) { method AddDuration (line 313) | func (fe FilterEncoder) AddDuration(key string, value time.Duration) { method AddFloat64 (line 320) | func (fe FilterEncoder) AddFloat64(key string, value float64) { method AddFloat32 (line 327) | func (fe FilterEncoder) AddFloat32(key string, value float32) { method AddInt (line 334) | func (fe FilterEncoder) AddInt(key string, value int) { method AddInt64 (line 341) | func (fe FilterEncoder) AddInt64(key string, value int64) { method AddInt32 (line 348) | func (fe FilterEncoder) AddInt32(key string, value int32) { method AddInt16 (line 355) | func (fe FilterEncoder) AddInt16(key string, value int16) { method AddInt8 (line 362) | func (fe FilterEncoder) AddInt8(key string, value int8) { method AddString (line 369) | func (fe FilterEncoder) AddString(key, value string) { method AddTime (line 376) | func (fe FilterEncoder) AddTime(key string, value time.Time) { method AddUint (line 383) | func (fe FilterEncoder) AddUint(key string, value uint) { method AddUint64 (line 390) | func (fe FilterEncoder) AddUint64(key string, value uint64) { method AddUint32 (line 397) | func (fe FilterEncoder) AddUint32(key string, value uint32) { method AddUint16 (line 404) | func (fe FilterEncoder) AddUint16(key string, value uint16) { method AddUint8 (line 411) | func (fe FilterEncoder) AddUint8(key string, value uint8) { method AddUintptr (line 418) | func (fe FilterEncoder) AddUintptr(key string, value uintptr) { method AddReflected (line 425) | func (fe FilterEncoder) AddReflected(key string, value any) error { method OpenNamespace (line 433) | func (fe FilterEncoder) OpenNamespace(key string) { method Clone (line 440) | func (fe FilterEncoder) Clone() zapcore.Encoder { method EncodeEntry (line 449) | func (fe FilterEncoder) EncodeEntry(ent zapcore.Entry, fields []zapcor... method filtered (line 466) | func (fe FilterEncoder) filtered(key string, value any) bool { type logObjectMarshalerWrapper (line 477) | type logObjectMarshalerWrapper struct method MarshalLogObject (line 483) | func (mom logObjectMarshalerWrapper) MarshalLogObject(_ zapcore.Object... FILE: modules/logging/filters.go function init (line 35) | func init() { type LogFieldFilter (line 49) | type LogFieldFilter interface type DeleteFilter (line 55) | type DeleteFilter struct method CaddyModule (line 58) | func (DeleteFilter) CaddyModule() caddy.ModuleInfo { method UnmarshalCaddyfile (line 66) | func (DeleteFilter) UnmarshalCaddyfile(d *caddyfile.Dispenser) error { method Filter (line 71) | func (DeleteFilter) Filter(in zapcore.Field) zapcore.Field { function hash (line 77) | func hash(s string) string { type HashFilter (line 86) | type HashFilter struct method CaddyModule (line 89) | func (HashFilter) CaddyModule() caddy.ModuleInfo { method UnmarshalCaddyfile (line 97) | func (f *HashFilter) UnmarshalCaddyfile(d *caddyfile.Dispenser) error { method Filter (line 102) | func (f *HashFilter) Filter(in zapcore.Field) zapcore.Field { type ReplaceFilter (line 118) | type ReplaceFilter struct method CaddyModule (line 123) | func (ReplaceFilter) CaddyModule() caddy.ModuleInfo { method UnmarshalCaddyfile (line 131) | func (f *ReplaceFilter) UnmarshalCaddyfile(d *caddyfile.Dispenser) err... method Filter (line 140) | func (f *ReplaceFilter) Filter(in zapcore.Field) zapcore.Field { type IPMaskFilter (line 151) | type IPMaskFilter struct method CaddyModule (line 163) | func (IPMaskFilter) CaddyModule() caddy.ModuleInfo { method UnmarshalCaddyfile (line 171) | func (m *IPMaskFilter) UnmarshalCaddyfile(d *caddyfile.Dispenser) error { method Provision (line 224) | func (m *IPMaskFilter) Provision(ctx caddy.Context) error { method Filter (line 243) | func (m IPMaskFilter) Filter(in zapcore.Field) zapcore.Field { method mask (line 257) | func (m IPMaskFilter) mask(s string) string { type filterAction (line 285) | type filterAction method IsValid (line 298) | func (a filterAction) IsValid() error { constant replaceAction (line 289) | replaceAction filterAction = "replace" constant hashAction (line 292) | hashAction filterAction = "hash" constant deleteAction (line 295) | deleteAction filterAction = "delete" type queryFilterAction (line 307) | type queryFilterAction struct type QueryFilter (line 325) | type QueryFilter struct method Validate (line 331) | func (f *QueryFilter) Validate() error { method CaddyModule (line 342) | func (QueryFilter) CaddyModule() caddy.ModuleInfo { method UnmarshalCaddyfile (line 350) | func (m *QueryFilter) UnmarshalCaddyfile(d *caddyfile.Dispenser) error { method Filter (line 394) | func (m QueryFilter) Filter(in zapcore.Field) zapcore.Field { method processQueryString (line 408) | func (m QueryFilter) processQueryString(s string) string { type cookieFilterAction (line 436) | type cookieFilterAction struct type CookieFilter (line 456) | type CookieFilter struct method Validate (line 462) | func (f *CookieFilter) Validate() error { method CaddyModule (line 473) | func (CookieFilter) CaddyModule() caddy.ModuleInfo { method UnmarshalCaddyfile (line 481) | func (m *CookieFilter) UnmarshalCaddyfile(d *caddyfile.Dispenser) error { method Filter (line 525) | func (m CookieFilter) Filter(in zapcore.Field) zapcore.Field { type RegexpFilter (line 572) | type RegexpFilter struct method CaddyModule (line 583) | func (RegexpFilter) CaddyModule() caddy.ModuleInfo { method UnmarshalCaddyfile (line 591) | func (f *RegexpFilter) UnmarshalCaddyfile(d *caddyfile.Dispenser) error { method Provision (line 603) | func (m *RegexpFilter) Provision(ctx caddy.Context) error { method Filter (line 615) | func (f *RegexpFilter) Filter(in zapcore.Field) zapcore.Field { type regexpFilterOperation (line 631) | type regexpFilterOperation struct type MultiRegexpFilter (line 655) | type MultiRegexpFilter struct method CaddyModule (line 668) | func (MultiRegexpFilter) CaddyModule() caddy.ModuleInfo { method UnmarshalCaddyfile (line 683) | func (f *MultiRegexpFilter) UnmarshalCaddyfile(d *caddyfile.Dispenser)... method Provision (line 728) | func (f *MultiRegexpFilter) Provision(ctx caddy.Context) error { method Validate (line 760) | func (f *MultiRegexpFilter) Validate() error { method Filter (line 785) | func (f *MultiRegexpFilter) Filter(in zapcore.Field) zapcore.Field { method processString (line 800) | func (f *MultiRegexpFilter) processString(s string) string { method AddOperation (line 824) | func (f *MultiRegexpFilter) AddOperation(rawRegexp, value string) error { constant maxRegexpOperations (line 663) | maxRegexpOperations = 50 constant maxPatternLength (line 664) | maxPatternLength = 1000 type RenameFilter (line 847) | type RenameFilter struct method CaddyModule (line 852) | func (RenameFilter) CaddyModule() caddy.ModuleInfo { method UnmarshalCaddyfile (line 860) | func (f *RenameFilter) UnmarshalCaddyfile(d *caddyfile.Dispenser) error { method Filter (line 869) | func (f *RenameFilter) Filter(in zapcore.Field) zapcore.Field { FILE: modules/logging/filters_test.go function TestIPMaskSingleValue (line 14) | func TestIPMaskSingleValue(t *testing.T) { function TestIPMaskCommaValue (line 34) | func TestIPMaskCommaValue(t *testing.T) { function TestIPMaskMultiValue (line 54) | func TestIPMaskMultiValue(t *testing.T) { function TestQueryFilterSingleValue (line 89) | func TestQueryFilterSingleValue(t *testing.T) { function TestQueryFilterMultiValue (line 108) | func TestQueryFilterMultiValue(t *testing.T) { function TestValidateQueryFilter (line 142) | func TestValidateQueryFilter(t *testing.T) { function TestCookieFilter (line 158) | func TestCookieFilter(t *testing.T) { function TestValidateCookieFilter (line 177) | func TestValidateCookieFilter(t *testing.T) { function TestRegexpFilterSingleValue (line 193) | func TestRegexpFilterSingleValue(t *testing.T) { function TestRegexpFilterMultiValue (line 203) | func TestRegexpFilterMultiValue(t *testing.T) { function TestHashFilterSingleValue (line 220) | func TestHashFilterSingleValue(t *testing.T) { function TestHashFilterMultiValue (line 229) | func TestHashFilterMultiValue(t *testing.T) { function TestMultiRegexpFilterSingleOperation (line 245) | func TestMultiRegexpFilterSingleOperation(t *testing.T) { function TestMultiRegexpFilterMultipleOperations (line 262) | func TestMultiRegexpFilterMultipleOperations(t *testing.T) { function TestMultiRegexpFilterMultiValue (line 283) | func TestMultiRegexpFilterMultiValue(t *testing.T) { function TestMultiRegexpFilterAddOperation (line 311) | func TestMultiRegexpFilterAddOperation(t *testing.T) { function TestMultiRegexpFilterSecurityLimits (line 337) | func TestMultiRegexpFilterSecurityLimits(t *testing.T) { function TestMultiRegexpFilterValidation (line 370) | func TestMultiRegexpFilterValidation(t *testing.T) { function TestMultiRegexpFilterInputSizeLimit (line 393) | func TestMultiRegexpFilterInputSizeLimit(t *testing.T) { function TestMultiRegexpFilterOverlappingPatterns (line 419) | func TestMultiRegexpFilterOverlappingPatterns(t *testing.T) { FILE: modules/logging/netwriter.go function init (line 29) | func init() { type NetWriter (line 36) | type NetWriter struct method CaddyModule (line 52) | func (NetWriter) CaddyModule() caddy.ModuleInfo { method Provision (line 60) | func (nw *NetWriter) Provision(ctx caddy.Context) error { method String (line 83) | func (nw NetWriter) String() string { method WriterKey (line 88) | func (nw NetWriter) WriterKey() string { method OpenWriter (line 93) | func (nw NetWriter) OpenWriter() (io.WriteCloser, error) { method UnmarshalCaddyfile (line 119) | func (nw *NetWriter) UnmarshalCaddyfile(d *caddyfile.Dispenser) error { type redialerConn (line 159) | type redialerConn struct method Write (line 169) | func (reconn *redialerConn) Write(b []byte) (n int, err error) { method dial (line 217) | func (reconn *redialerConn) dial() (net.Conn, error) { FILE: modules/logging/nopencoder.go type nopEncoder (line 25) | type nopEncoder struct method AddArray (line 29) | func (nopEncoder) AddArray(key string, marshaler zapcore.ArrayMarshale... method AddObject (line 32) | func (nopEncoder) AddObject(key string, marshaler zapcore.ObjectMarsha... method AddBinary (line 35) | func (nopEncoder) AddBinary(key string, value []byte) {} method AddByteString (line 38) | func (nopEncoder) AddByteString(key string, value []byte) {} method AddBool (line 41) | func (nopEncoder) AddBool(key string, value bool) {} method AddComplex128 (line 44) | func (nopEncoder) AddComplex128(key string, value complex128) {} method AddComplex64 (line 47) | func (nopEncoder) AddComplex64(key string, value complex64) {} method AddDuration (line 50) | func (nopEncoder) AddDuration(key string, value time.Duration) {} method AddFloat64 (line 53) | func (nopEncoder) AddFloat64(key string, value float64) {} method AddFloat32 (line 56) | func (nopEncoder) AddFloat32(key string, value float32) {} method AddInt (line 59) | func (nopEncoder) AddInt(key string, value int) {} method AddInt64 (line 62) | func (nopEncoder) AddInt64(key string, value int64) {} method AddInt32 (line 65) | func (nopEncoder) AddInt32(key string, value int32) {} method AddInt16 (line 68) | func (nopEncoder) AddInt16(key string, value int16) {} method AddInt8 (line 71) | func (nopEncoder) AddInt8(key string, value int8) {} method AddString (line 74) | func (nopEncoder) AddString(key, value string) {} method AddTime (line 77) | func (nopEncoder) AddTime(key string, value time.Time) {} method AddUint (line 80) | func (nopEncoder) AddUint(key string, value uint) {} method AddUint64 (line 83) | func (nopEncoder) AddUint64(key string, value uint64) {} method AddUint32 (line 86) | func (nopEncoder) AddUint32(key string, value uint32) {} method AddUint16 (line 89) | func (nopEncoder) AddUint16(key string, value uint16) {} method AddUint8 (line 92) | func (nopEncoder) AddUint8(key string, value uint8) {} method AddUintptr (line 95) | func (nopEncoder) AddUintptr(key string, value uintptr) {} method AddReflected (line 98) | func (nopEncoder) AddReflected(key string, value any) error { return n... method OpenNamespace (line 101) | func (nopEncoder) OpenNamespace(key string) {} method Clone (line 106) | func (ne nopEncoder) Clone() zapcore.Encoder { return ne } method EncodeEntry (line 109) | func (nopEncoder) EncodeEntry(ent zapcore.Entry, fields []zapcore.Fiel... FILE: modules/metrics/adminmetrics.go function init (line 26) | func init() { type AdminMetrics (line 35) | type AdminMetrics struct method CaddyModule (line 42) | func (AdminMetrics) CaddyModule() caddy.ModuleInfo { method Provision (line 50) | func (m *AdminMetrics) Provision(ctx caddy.Context) error { method Routes (line 60) | func (m *AdminMetrics) Routes() []caddy.AdminRoute { method serveHTTP (line 64) | func (m *AdminMetrics) serveHTTP(w http.ResponseWriter, r *http.Reques... FILE: modules/metrics/metrics.go function init (line 31) | func init() { type Metrics (line 39) | type Metrics struct method CaddyModule (line 48) | func (Metrics) CaddyModule() caddy.ModuleInfo { method Provision (line 64) | func (m *Metrics) Provision(ctx caddy.Context) error { method UnmarshalCaddyfile (line 85) | func (m *Metrics) UnmarshalCaddyfile(d *caddyfile.Dispenser) error { method ServeHTTP (line 103) | func (m Metrics) ServeHTTP(w http.ResponseWriter, r *http.Request, nex... type zapLogger (line 55) | type zapLogger struct method Println (line 59) | func (l *zapLogger) Println(v ...any) { function parseCaddyfile (line 74) | func parseCaddyfile(h httpcaddyfile.Helper) (caddyhttp.MiddlewareHandler... function createMetricsHandler (line 115) | func createMetricsHandler(logger promhttp.Logger, enableOpenMetrics bool... FILE: modules/metrics/metrics_test.go function TestMetricsUnmarshalCaddyfile (line 9) | func TestMetricsUnmarshalCaddyfile(t *testing.T) { FILE: modules_test.go function TestGetModules (line 22) | func TestGetModules(t *testing.T) { function TestModuleID (line 87) | func TestModuleID(t *testing.T) { FILE: notify/notify_linux.go function sdNotify (line 29) | func sdNotify(payload string) error { function Ready (line 51) | func Ready() error { function Reloading (line 56) | func Reloading() error { function Stopping (line 61) | func Stopping() error { function Status (line 66) | func Status(msg string) error { function Error (line 72) | func Error(err error, errno int) error { FILE: notify/notify_other.go function Ready (line 19) | func Ready() error { return nil } function Reloading (line 20) | func Reloading() error { return nil } function Stopping (line 21) | func Stopping() error { return nil } function Status (line 22) | func Status(_ string) error { return nil } function Error (line 23) | func Error(_ error, _ int) error { return nil } FILE: notify/notify_windows.go function SetGlobalStatus (line 31) | func SetGlobalStatus(status chan<- svc.Status) { function Ready (line 37) | func Ready() error { function Reloading (line 49) | func Reloading() error { function Stopping (line 58) | func Stopping() error { function Status (line 68) | func Status(name string) error { function Error (line 105) | func Error(err error, code int) error { FILE: replacer.go function NewReplacer (line 34) | func NewReplacer() *Replacer { function NewEmptyReplacer (line 49) | func NewEmptyReplacer() *Replacer { type Replacer (line 63) | type Replacer struct method WithoutFile (line 74) | func (r *Replacer) WithoutFile() *Replacer { method Map (line 87) | func (r *Replacer) Map(mapFunc ReplacerFunc) { method Set (line 92) | func (r *Replacer) Set(variable string, value any) { method Get (line 100) | func (r *Replacer) Get(variable string) (any, bool) { method GetString (line 111) | func (r *Replacer) GetString(variable string) (string, bool) { method Delete (line 118) | func (r *Replacer) Delete(variable string) { method fromStatic (line 125) | func (r *Replacer) fromStatic(key string) (any, bool) { method ReplaceOrErr (line 135) | func (r *Replacer) ReplaceOrErr(input string, errOnEmpty, errOnUnknown... method ReplaceKnown (line 142) | func (r *Replacer) ReplaceKnown(input, empty string) string { method ReplaceAll (line 151) | func (r *Replacer) ReplaceAll(input, empty string) string { method ReplaceFunc (line 159) | func (r *Replacer) ReplaceFunc(input string, f ReplacementFunc) (strin... method replace (line 163) | func (r *Replacer) replace(input, empty string, function ToString (line 279) | func ToString(val any) string { type ReplacerFunc (line 325) | type ReplacerFunc method replace (line 327) | func (f ReplacerFunc) replace(key string) (any, bool) { type replacementProvider (line 334) | type replacementProvider interface type fileReplacementProvider (line 340) | type fileReplacementProvider struct method replace (line 342) | func (f fileReplacementProvider) replace(key string) (any, bool) { type globalDefaultReplacementProvider (line 366) | type globalDefaultReplacementProvider struct method replace (line 368) | func (f globalDefaultReplacementProvider) replace(key string) (any, bo... function readFileIntoBuffer (line 411) | func readFileIntoBuffer(filename string, size int) ([]byte, error) { type ReplacementFunc (line 434) | type ReplacementFunc constant ReplacerCtxKey (line 441) | ReplacerCtxKey CtxKey = "replacer" constant phOpen (line 443) | phOpen, phClose, phEscape = '{', '}', '\\' constant filePrefix (line 445) | filePrefix = "file." FILE: replacer_fuzz.go function FuzzReplacer (line 19) | func FuzzReplacer(data []byte) (score int) { FILE: replacer_test.go function TestReplacer (line 26) | func TestReplacer(t *testing.T) { function TestReplacerSet (line 181) | func TestReplacerSet(t *testing.T) { function TestReplacerReplaceKnown (line 240) | func TestReplacerReplaceKnown(t *testing.T) { function TestReplacerDelete (line 313) | func TestReplacerDelete(t *testing.T) { function TestReplacerMap (line 347) | func TestReplacerMap(t *testing.T) { function TestReplacerNew (line 374) | func TestReplacerNew(t *testing.T) { function getEOL (line 453) | func getEOL() string { function TestReplacerNewWithoutFile (line 460) | func TestReplacerNewWithoutFile(t *testing.T) { function BenchmarkReplacer (line 487) | func BenchmarkReplacer(b *testing.B) { function testReplacer (line 526) | func testReplacer() Replacer { FILE: service_windows.go function init (line 26) | func init() { type runner (line 44) | type runner struct method Execute (line 46) | func (runner) Execute(args []string, request <-chan svc.ChangeRequest,... FILE: sigtrap.go function TrapSignals (line 29) | func TrapSignals() { function trapSignalsCrossPlatform (line 37) | func trapSignalsCrossPlatform() { function exitProcessFromSignal (line 57) | func exitProcessFromSignal(sigName string) { constant ExitCodeSuccess (line 66) | ExitCodeSuccess = iota constant ExitCodeFailedStartup (line 67) | ExitCodeFailedStartup constant ExitCodeForceQuit (line 68) | ExitCodeForceQuit constant ExitCodeFailedQuit (line 69) | ExitCodeFailedQuit FILE: sigtrap_nonposix.go function trapSignalsPosix (line 19) | func trapSignalsPosix() {} FILE: sigtrap_posix.go function trapSignalsPosix (line 31) | func trapSignalsPosix() { FILE: storage.go type StorageConverter (line 31) | type StorageConverter interface function HomeDir (line 39) | func HomeDir() string { function homeDirUnsafe (line 56) | func homeDirUnsafe() string { function AppConfigDir (line 86) | func AppConfigDir() string { function AppDataDir (line 122) | func AppDataDir() string { FILE: usagepool.go type UsagePool (line 58) | type UsagePool struct method LoadOrNew (line 77) | func (up *UsagePool) LoadOrNew(key any, construct Constructor) (value ... method LoadOrStore (line 116) | func (up *UsagePool) LoadOrStore(key, val any) (value any, loaded bool) { method Range (line 147) | func (up *UsagePool) Range(f func(key, value any) bool) { method Delete (line 169) | func (up *UsagePool) Delete(key any) (deleted bool, err error) { method References (line 199) | func (up *UsagePool) References(key any) (int, bool) { function NewUsagePool (line 64) | func NewUsagePool() *UsagePool { type Constructor (line 214) | type Constructor type Destructor (line 218) | type Destructor interface type usagePoolVal (line 222) | type usagePoolVal struct