Stub is the interface the stub provides for the plugin implementation.
| 50 | |
| 51 | // Stub is the interface the stub provides for the plugin implementation. |
| 52 | type Stub interface { |
| 53 | // Run starts the plugin then waits for the plugin service to exit, either due to a |
| 54 | // critical error or by cancelling the context. Calling Run() while the plugin is running, |
| 55 | // will result in an error. After the plugin service exits, Run() can safely be called again. |
| 56 | Run(context.Context) error |
| 57 | |
| 58 | // RegistrationTimeout returns the registration timeout for the stub. |
| 59 | // This is the default timeout if the plugin has not been started or |
| 60 | // the timeout received in the Configure request otherwise. |
| 61 | RegistrationTimeout() time.Duration |
| 62 | |
| 63 | // RequestTimeout returns the request timeout for the stub. |
| 64 | // This is the default timeout if the plugin has not been started or |
| 65 | // the timeout received in the Configure request otherwise. |
| 66 | RequestTimeout() time.Duration |
| 67 | } |
| 68 | |
| 69 | type Config struct { |
| 70 | // Version of the plugin in semver format. |
no outgoing calls
no test coverage detected