notify readiness when registered plugins are ready

Signed-off-by: Henry Wang <henwang@amazon.com>
This commit is contained in:
Henry Wang
2023-05-26 03:07:40 +00:00
parent ed7c0ebe28
commit 4bfcac85fa
6 changed files with 42 additions and 16 deletions

View File

@@ -28,12 +28,13 @@ import (
// InitContext is used for plugin initialization
type InitContext struct {
Context context.Context
Root string
State string
Config interface{}
Address string
TTRPCAddress string
Context context.Context
Root string
State string
Config interface{}
Address string
TTRPCAddress string
RegisterReadiness func() func()
// deprecated: will be removed in 2.0, use plugin.EventType
Events *exchange.Exchange