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

Struct Server

agent/utils/nginx/components/server.go:9–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7)
8
9type Server struct {
10 Comment string
11 Listens []*ServerListen
12 Directives []IDirective
13 Line int
14 Cors bool
15 AllowMethods string
16 AllowHeaders string
17 AllowOrigins string
18 AllowCredentials bool
19 Preflight bool
20}
21
22func (s *Server) GetCodeBlock() string {
23 return ""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected