Skip to content

rpc: allow aliasing methods #3615

@gopherbot

Description

@gopherbot

by damoxc:

I'm currently attempting to implement an existing API using the built-in go rpc package
and stumbled at not being able to keep the same method names as before they were in the
form:

core.hello_world

and as far as I can tell it's only possible to have with the the go rpc package:

core.HelloWorld

The attached patch adds support to method aliasing to the rpc server in a very naive and
simple way. Feel free to ignore this completely!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions