shim: change ttrpcService and ttrpcServerOptioner to exported interfaces

Signed-off-by: Iceber Gu <wei.cai-nat@daocloud.io>
This commit is contained in:
Iceber Gu
2023-06-27 18:13:16 +08:00
parent d5ec7286ae
commit 00e5ae2118
5 changed files with 21 additions and 10 deletions

View File

@@ -77,6 +77,10 @@ func newTaskService(ctx context.Context, publisher shim.Publisher, sd shutdown.S
return &exampleTaskService{}, nil
}
var (
_ = shim.TTRPCService(&exampleTaskService{})
)
type exampleTaskService struct {
}