Commit 1bfbe86e authored by harrylee's avatar harrylee

expose launcher interface

parent b0d3bccb
package internal
type Launcher interface {
Start() error
Stop() error
}
//type Launcher interface {
// Start() error
// Stop() error
//}
......@@ -89,7 +89,7 @@ func TestSyncHeader001(t *testing.T) {
ch <- w6
ch <- w7
// for normal handling
ch <- w2
ch <- litew2
ch <- w3
}
close(ch)
......
package plugins
import (
"gitlab.33.cn/link33/sidecar/internal"
"gitlab.33.cn/link33/sidecar/model/pb"
)
......@@ -11,10 +10,14 @@ type Kernel interface {
Exited() bool
}
type Launcher interface {
Start() error
Stop() error
}
// Client defines the interface that interacts with appchain
//go:generate mockgen -destination mock_client/mock_client.go -package mock_client -source interface.go
type Client interface { // 业务实现委托接口。
internal.Launcher
Launcher
Kernel
Bind(kern Kernel)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment