@ -34,26 +34,26 @@ const (
)
type Hooks struct {
Dir string ` mapstructure:"dir" `
PreValidate HookArray ` mapstructure:"prevalidate,omitempty" `
Before HookArray ` mapstructure:"before,omitempty" `
After HookArray ` mapstructure:"after,omitempty" `
Success HookArray ` mapstructure:"success,omitempty" `
Failure HookArray ` mapstructure:"failure,omitempty" `
Dir string ` mapstructure:"dir" yaml:"dir" `
PreValidate HookArray ` mapstructure:"prevalidate,omitempty" yaml:"prevalidate,omitempty" `
Before HookArray ` mapstructure:"before,omitempty" yaml:"before,omitempty" `
After HookArray ` mapstructure:"after,omitempty" yaml:"after,omitempty" `
Success HookArray ` mapstructure:"success,omitempty" yaml:"success,omitempty" `
Failure HookArray ` mapstructure:"failure,omitempty" yaml:"failure,omitempty" `
}
type LocationCopy = map [ string ] [ ] string
type Location struct {
name string ` mapstructure:",omitempty" `
From [ ] string ` mapstructure:"from,omitempty" `
Type string ` mapstructure:"type,omitempty" `
To [ ] string ` mapstructure:"to,omitempty" `
Hooks Hooks ` mapstructure:"hooks,omitempty" `
Cron string ` mapstructure:"cron,omitempty" `
Options Options ` mapstructure:"options,omitempty" `
ForgetOption LocationForgetOption ` mapstructure:"forget,omitempty" `
CopyOption LocationCopy ` mapstructure:"copy,omitempty" `
name string ` mapstructure:",omitempty" yaml:",omitempty" `
From [ ] string ` mapstructure:"from,omitempty" yaml:"from,omitempty" `
Type string ` mapstructure:"type,omitempty" yaml:"type,omitempty" `
To [ ] string ` mapstructure:"to,omitempty" yaml:"to,omitempty" `
Hooks Hooks ` mapstructure:"hooks,omitempty" yaml:"hooks,omitempty" `
Cron string ` mapstructure:"cron,omitempty" yaml:"cron,omitempty" `
Options Options ` mapstructure:"options,omitempty" yaml:"options,omitempty" `
ForgetOption LocationForgetOption ` mapstructure:"forget,omitempty" yaml:"forget,omitempty" `
CopyOption LocationCopy ` mapstructure:"copy,omitempty" yaml:"copy,omitempty" `
}
func GetLocation ( name string ) ( Location , bool ) {