add hook for handler
change map to cmap for Trigger.hashs
This commit is contained in:
Yuzuki616
2024-10-30 01:07:17 +09:00
parent 3ff99d4fd1
commit ffcbec4ede
8 changed files with 75 additions and 10 deletions

View File

@@ -25,6 +25,7 @@ type Options struct {
Panel string `json:"Panel"`
Acme string `json:"Acme"`
Cert Cert `json:"Cert"`
Hook Hook `json:"Hook"`
Expand map[string]interface{} `json:"Other"`
}
@@ -41,6 +42,13 @@ type Cert struct {
KeyPath string `json:"Key"`
}
type Hook struct {
BeforeAddNode string `json:"BeforeAddNode"`
AfterAddNode string `json:"AfterAddNode"`
BeforeDelNode string `json:"BeforeDelNode"`
AfterDelNode string `json:"AfterDelNode"`
}
type Node struct {
Name string `json:"Name"`
Remote Remote `json:"-"`