mirror of
https://github.com/krau/SaveAny-Bot.git
synced 2026-08-19 11:23:57 +08:00
14 lines
564 B
Go
14 lines
564 B
Go
package config
|
|
|
|
type hookConfig struct {
|
|
Exec hookExecConfig `toml:"exec" mapstructure:"exec" json:"exec"`
|
|
}
|
|
|
|
type hookExecConfig struct {
|
|
// command to execute, for all task types
|
|
TaskBeforeStart string `toml:"task_before_start" mapstructure:"task_before_start" json:"task_before_start"`
|
|
TaskSuccess string `toml:"task_success" mapstructure:"task_success" json:"task_success"`
|
|
TaskFail string `toml:"task_fail" mapstructure:"task_fail" json:"task_fail"`
|
|
TaskCancel string `toml:"task_cancel" mapstructure:"task_cancel" json:"task_cancel"`
|
|
}
|