You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1Panel/backend/utils/nginx/components/statement.go

26 lines
499 B

package components
type IBlock interface {
GetDirectives() []IDirective
FindDirectives(directiveName string) []IDirective
UpdateDirectives(directiveName string, directive Directive)
AddDirectives(directive Directive)
RemoveDirectives(names []string)
GetComment() string
}
type IDirective interface {
GetName() string
GetParameters() []string
GetBlock() IBlock
GetComment() string
}
type FileDirective interface {
isFileDirective()
}
type IncludeDirective interface {
FileDirective
}