IsEnabled returns true if the hook is enabled (default: true).
()
| 69 | |
| 70 | // IsEnabled returns true if the hook is enabled (default: true). |
| 71 | func (h HookConfig) IsEnabled() bool { |
| 72 | if h.Enabled == nil { |
| 73 | return true |
| 74 | } |
| 75 | return *h.Enabled |
| 76 | } |
| 77 | |
| 78 | // GetTimeout returns the timeout in milliseconds (default: 10000). |
| 79 | func (h HookConfig) GetTimeout() int { |
no outgoing calls