mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2024-12-21 04:47:48 +08:00
20 lines
410 B
Go
20 lines
410 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
|
|
GetCodeBlock() string
|
|
}
|
|
|
|
type IDirective interface {
|
|
GetName() string
|
|
GetParameters() []string
|
|
GetBlock() IBlock
|
|
GetComment() string
|
|
GetLine() int
|
|
}
|