()
| 88 | } |
| 89 | |
| 90 | func init() { |
| 91 | registry.Register(&plugin.Registration{ |
| 92 | Type: plugins.ServicePlugin, |
| 93 | ID: services.TasksService, |
| 94 | Requires: tasksServiceRequires, |
| 95 | Config: &Config{}, |
| 96 | InitFn: initFunc, |
| 97 | }) |
| 98 | |
| 99 | timeout.Set(stateTimeout, 2*time.Second) |
| 100 | } |
| 101 | |
| 102 | func initFunc(ic *plugin.InitContext) (any, error) { |
| 103 | config := ic.Config.(*Config) |