I want to be able to connect to any available node on my private Ethereum network.
I think the requirement is similar to the service offered by Infura. I want to be able to replicate similar behavior on a private, locally hosted Ethereum network.
I currently use the following code to connect to a node on my Ethereum network:
client, err := ethclient.Dial("http://localhost:8545")
// do stuff
The end result expected is to basically improve the availability of the network. So, for arguments sake, if the node at 8545
isn't available, it will use the node at 8546
and so on...
I hope the question is clear enough. Thanks!