Skip to content

Instantly share code, notes, and snippets.

@muuki88
Created Jul 31, 2016
Embed
What would you like to do?
package net.gutefrage
import com.twitter.finagle.Dtab
/**
* Holds different delegation tables
*/
object Dtabs {
def init(): Unit = {
Dtab.base = base
}
/**
* base dtab to resolve requests on your local system
*/
val base = Dtab.read(
"""|/zk## => /$/com.twitter.serverset;
|/zk# => /zk##/127.0.0.1:2181;
|/s# => /zk#/service;
|/env => /s#/local;
|/s => /env;""".stripMargin)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment