feat: 增加nginx config 格式化工具
This commit is contained in:

committed by
zhengkunwang223

parent
7dad47464d
commit
a1ac689a5e
24
backend/utils/nginx/components/directive.go
Normal file
24
backend/utils/nginx/components/directive.go
Normal file
@@ -0,0 +1,24 @@
|
||||
package components
|
||||
|
||||
type Directive struct {
|
||||
Block IBlock
|
||||
Name string
|
||||
Comment string
|
||||
Parameters []string
|
||||
}
|
||||
|
||||
func (d *Directive) GetComment() string {
|
||||
return d.Comment
|
||||
}
|
||||
|
||||
func (d *Directive) GetName() string {
|
||||
return d.Name
|
||||
}
|
||||
|
||||
func (d *Directive) GetParameters() []string {
|
||||
return d.Parameters
|
||||
}
|
||||
|
||||
func (d *Directive) GetBlock() IBlock {
|
||||
return d.Block
|
||||
}
|
Reference in New Issue
Block a user