Coder Social home page Coder Social logo

scala-consul's People

Contributors

anuras avatar cog avatar giabao avatar igor-vovk avatar machadoit avatar manuelbernhardt avatar mrfyda avatar nmatpt avatar paulblei avatar pedrorijo91 avatar ragb avatar rtfpessoa avatar travisbrown avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

scala-consul's Issues

Unable to Register scala service in consul

Hello,
I want to register scala service in consul. I am using scala-consul sdk to do so. I am using following code for registration:

//for scala-consul
val myConsul = new consul.Consul(InetAddress.getByName("X.X.X.X").asInstanceOf[Inet4Address],8500)
import myConsul.v1._
val myAddress = "127.0.0.1"
val myServicePort = 2552
val myServiceCheck = agent.service.httpCheck("http://0.0.0.0:2552/health","15s")
println("servicecheck:"+myServiceCheck)
val myService = agent.service.LocalService(ServiceId("myServiceId"),ServiceType("myTypeOfService"),Set(ServiceTag("MyTag")),Some(myServicePort),Some(myServiceCheck))
val status=agent.service.register(myService)
status.onComplete {
    case Success(value) => println(s"Got the callback = $value")
    case Failure(e) => e.printStackTrace
  }

But I am getting Exception:
"Caused by: java.lang.RuntimeException: There is no started application"

it seems a bug in library because i am following same step as mentioned in documentation

Push latest version into maven/ivy?

With the update to the play dependencies it would be nice to get these changes into maven so that we can take advantage of the latest scala version. Right now my build fails because it can't find the 2.3.7 play version for scala 2.11.

How to use scala-consul 2.0.2

I am trying to use scala-consul 2.0.2 which uses WS CLient as an input parameter, where can I find a usage example for the the same.

Error: There is no started application

Am I missing something or does this library not work without the Play framework? When I try to do something basic (adding a kv entry) I get this exception thrown at me, which seems to be an exception of the Play Framework:

java.lang.RuntimeException: There is no started application

Using the following code snippet:

import java.net.InetAddress

import scala.concurrent.duration.Duration
import scala.concurrent.{Await, ExecutionContext}
import scala.concurrent._
import ExecutionContext.Implicits.global

object FailMain extends App {
  val cConsul = new consul.Consul(CONSUL_IP, CONSUL_PORT)
  import cConsul.v1._

  val fut = kv.put("testKey", "testValue")
  Await.result(fut, Duration("10 seconds"))
}

Maintaining this project

Noticed that this project is no longer maintained.

I would be interested in taking it over and maintaining it as we do use consul.

Many thanks.

Inet4Address usage in constructor

Is there a reason why Consul constructor takes Inet4Address as a parameter? Why not InetAddress?
I think it would be much more convenient to have (host: String) in the constructor.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.