Introduce a new type Api in the rpc package:
// Api describes the set of methods offered over the RPC interface
type Api struct {
Namespace string // namespace under which the rpc methods of Service are exposed
Version string // api version for DApp's
Service interface{} // receiver instance which holds the methods
Public bool // indication if the methods must be considered safe for public use
}