diff options
author | Chris <ccbrown112@gmail.com> | 2017-08-28 11:27:18 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-28 11:27:18 -0500 |
commit | 6215c9159acb85033616d2937edf3d87ef7ca79b (patch) | |
tree | 54e53392804bda3a30aa9615fef0cd01ca189152 /plugin/rpcplugin/api.go | |
parent | 510b1a18f5282981a70503c0cde474e121c9e651 (diff) | |
download | chat-6215c9159acb85033616d2937edf3d87ef7ca79b.tar.gz chat-6215c9159acb85033616d2937edf3d87ef7ca79b.tar.bz2 chat-6215c9159acb85033616d2937edf3d87ef7ca79b.zip |
add plugin http handler (#7289)
Diffstat (limited to 'plugin/rpcplugin/api.go')
-rw-r--r-- | plugin/rpcplugin/api.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugin/rpcplugin/api.go b/plugin/rpcplugin/api.go index a807d0837..84eb3baae 100644 --- a/plugin/rpcplugin/api.go +++ b/plugin/rpcplugin/api.go @@ -26,11 +26,6 @@ func (h *LocalAPI) LoadPluginConfiguration(args struct{}, reply *[]byte) error { return nil } -type RemoteAPI struct { - client *rpc.Client - muxer *Muxer -} - func ServeAPI(api plugin.API, conn io.ReadWriteCloser, muxer *Muxer) { server := rpc.NewServer() server.Register(&LocalAPI{ @@ -40,6 +35,11 @@ func ServeAPI(api plugin.API, conn io.ReadWriteCloser, muxer *Muxer) { server.ServeConn(conn) } +type RemoteAPI struct { + client *rpc.Client + muxer *Muxer +} + var _ plugin.API = (*RemoteAPI)(nil) func (h *RemoteAPI) LoadPluginConfiguration(dest interface{}) error { |