1Panel/backend/utils/nginx/components/statement.go
2022-12-04 18:20:57 +08:00

19 lines
387 B
Go

package components
type IBlock interface {
GetDirectives() []IDirective
FindDirectives(directiveName string) []IDirective
RemoveDirective(name string, params []string)
UpdateDirective(name string, params []string)
GetComment() string
GetLine() int
}
type IDirective interface {
GetName() string
GetParameters() []string
GetBlock() IBlock
GetComment() string
GetLine() int
}