MCPcopy
hub / github.com/caddyserver/caddy / GetKeysText

Method GetKeysText

caddyconfig/caddyfile/parse.go:784–790  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

782}
783
784func (sb ServerBlock) GetKeysText() []string {
785 res := make([]string, 0, len(sb.Keys))
786 for _, k := range sb.Keys {
787 res = append(res, k.Text)
788 }
789 return res
790}
791
792// DispenseDirective returns a dispenser that contains
793// all the tokens in the server block.

Callers 9

TestParseOneAndImportFunction · 0.80
TestRecursiveImportFunction · 0.80
TestDirectiveImportFunction · 0.80
TestParseAllFunction · 0.80
TestSnippetsFunction · 0.80
extractNamedRoutesMethod · 0.80
serversFromPairingsMethod · 0.80

Calls

no outgoing calls

Tested by 7

TestParseOneAndImportFunction · 0.64
TestRecursiveImportFunction · 0.64
TestDirectiveImportFunction · 0.64
TestParseAllFunction · 0.64
TestSnippetsFunction · 0.64