Commit 5d430bfe authored by linj's avatar linj Committed by linj

init unfreeze/rpc

parent 5e7a38f5
......@@ -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,
})
}
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)
}
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