Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
plugin
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
plugin
Commits
5d430bfe
Commit
5d430bfe
authored
Nov 08, 2018
by
linj
Committed by
linj
Nov 26, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init unfreeze/rpc
parent
5e7a38f5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
1 deletion
+28
-1
plugin.go
plugin.go
+2
-1
types.go
rpc/types.go
+26
-0
No files found.
plugin.go
View file @
5d430bfe
...
...
@@ -3,6 +3,7 @@ package unfreeze
import
(
"gitlab.33.cn/chain33/chain33/plugin/dapp/unfreeze/commands"
"gitlab.33.cn/chain33/chain33/plugin/dapp/unfreeze/executor"
"gitlab.33.cn/chain33/chain33/plugin/dapp/unfreeze/rpc"
uf
"gitlab.33.cn/chain33/chain33/plugin/dapp/unfreeze/types"
"gitlab.33.cn/chain33/chain33/pluginmgr"
)
...
...
@@ -13,6 +14,6 @@ func init() {
ExecName
:
executor
.
GetName
(),
Exec
:
executor
.
Init
,
Cmd
:
commands
.
Cmd
,
RPC
:
nil
,
RPC
:
rpc
.
Init
,
})
}
rpc/types.go
0 → 100644
View file @
5d430bfe
package
rpc
import
(
"github.com/inconshreveable/log15"
"gitlab.33.cn/chain33/chain33/rpc/types"
)
var
log
=
log15
.
New
(
"module"
,
"unfreeze.rpc"
)
type
Jrpc
struct
{
cli
*
channelClient
}
type
Grpc
struct
{
*
channelClient
}
type
channelClient
struct
{
types
.
ChannelClient
}
func
Init
(
name
string
,
s
types
.
RPCServer
)
{
cli
:=
&
channelClient
{}
grpc
:=
&
Grpc
{
channelClient
:
cli
}
cli
.
Init
(
name
,
s
,
&
Jrpc
{
cli
:
cli
},
grpc
)
}
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