(val string)
| 66 | } |
| 67 | |
| 68 | func (f *NotifyEventType) Set(val string) error { |
| 69 | for key, value := range allNotifyType { |
| 70 | if val == string(value) { |
| 71 | *f = key |
| 72 | return nil |
| 73 | } |
| 74 | } |
| 75 | return cfgcore.MakeError("not supported type[%s], required list: [%v]", val, allNotifyType) |
| 76 | } |
| 77 | |
| 78 | func (f *NotifyEventType) String() string { |
| 79 | reloadType, ok := allNotifyType[*f] |
no outgoing calls