MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / GetDirectives

Method GetDirectives

agent/utils/nginx/components/http.go:51–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

49}
50
51func (h *Http) GetDirectives() []IDirective {
52 directives := make([]IDirective, 0)
53 directives = append(directives, h.Directives...)
54 for _, directive := range h.Servers {
55 directives = append(directives, directive)
56 }
57 return directives
58}
59
60func (h *Http) FindDirectives(directiveName string) []IDirective {
61 directives := make([]IDirective, 0)

Callers 3

FindDirectivesMethod · 0.95
UpdateDirectiveMethod · 0.95
RemoveDirectiveMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected