utils.go 566 B

12345678910111213141516171819202122232425262728
  1. package shared
  2. import "strings"
  3. const (
  4. AdminApiName = "admin"
  5. EthApiName = "eth"
  6. DbApiName = "db"
  7. DebugApiName = "debug"
  8. MergedApiName = "merged"
  9. MinerApiName = "miner"
  10. NetApiName = "net"
  11. ShhApiName = "shh"
  12. TxPoolApiName = "txpool"
  13. PersonalApiName = "personal"
  14. Web3ApiName = "web3"
  15. JsonRpcVersion = "2.0"
  16. )
  17. var (
  18. // All API's
  19. AllApis = strings.Join([]string{
  20. AdminApiName, DbApiName, EthApiName, DebugApiName, MinerApiName, NetApiName,
  21. ShhApiName, TxPoolApiName, PersonalApiName, Web3ApiName,
  22. }, ",")
  23. )