code: func RegisterEthStatsService(stack *node.Node, url string) {
  	if err := stack.Register(func(ctx *node.ServiceContext) (node.Service, error) {
  		// Retrieve both eth and les services
  		var ethServ *eth.Ethereum
  		ctx.Service(&ethServ)
  
  		var lesServ *les.LightEthereum
  		ctx.Service(&lesServ)
  
  		return ethstats.New(url, ethServ, lesServ)
  	}); err != nil {
  		Fatalf("Failed to register the Ethereum Stats service: %v", err)
  	}
  }
docs: // RegisterEthStatsService configures the Ethereum Stats daemon and adds it to
  // the given node.