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

Method GetDirectives

agent/utils/nginx/components/server.go:83–90  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

81}
82
83func (s *Server) GetDirectives() []IDirective {
84 directives := make([]IDirective, 0)
85 for _, ls := range s.Listens {
86 directives = append(directives, ls)
87 }
88 directives = append(directives, s.Directives...)
89 return directives
90}
91
92func (s *Server) FindDirectives(directiveName string) []IDirective {
93 directives := make([]IDirective, 0)

Callers 1

AddCorsOptionMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected