Skip to content

Commit c40610e

Browse files
committed
notify readiness when registered plugins are ready
Signed-off-by: Henry Wang <henwang@amazon.com>
1 parent 7d373e2 commit c40610e

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

context.go

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,13 @@ import (
2828

2929
// InitContext is used for plugin initialization
3030
type InitContext struct {
31-
Context context.Context
32-
Root string
33-
State string
34-
Config interface{}
35-
Address string
36-
TTRPCAddress string
31+
Context context.Context
32+
Root string
33+
State string
34+
Config interface{}
35+
Address string
36+
TTRPCAddress string
37+
RegisterReadiness func() func()
3738

3839
// deprecated: will be removed in 2.0, use plugin.EventType
3940
Events *exchange.Exchange

0 commit comments

Comments
 (0)