Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sidecar
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
link33
sidecar
Commits
2d6398d3
Commit
2d6398d3
authored
Nov 05, 2021
by
suyanlong
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://gitlab.33.cn/link33/sidecar
parents
3708a25d
f9e9df1e
Pipeline
#8212
failed with stages
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
7 deletions
+10
-7
launcher.go
internal/launcher.go
+4
-4
syncer_test.go
internal/syncer/syncer_test.go
+1
-1
interface.go
pkg/plugins/interface.go
+5
-2
No files found.
internal/launcher.go
View file @
2d6398d3
package
internal
type
Launcher
interface
{
Start
()
error
Stop
()
error
}
//
type Launcher interface {
//
Start() error
//
Stop() error
//
}
internal/syncer/syncer_test.go
View file @
2d6398d3
...
...
@@ -89,7 +89,7 @@ func TestSyncHeader001(t *testing.T) {
ch
<-
w6
ch
<-
w7
// for normal handling
ch
<-
w2
ch
<-
lite
w2
ch
<-
w3
}
close
(
ch
)
...
...
pkg/plugins/interface.go
View file @
2d6398d3
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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment