Server

net.ivoah.vial.Server
case class Server(router: Router, host: String, port: Int, socket: Option[String])(implicit logger: String => Unit)

Main entry point of a vial application.

Takes either a host/port combo, or the path to a unix domain socket.

Value parameters

host

host address to bind to, defaults to "127.0.0.1", ignored if socket is present.

port

port to bind to, defaults to 8000, ignored if socket is present.

router

the router to use

socket

path to unix domain socket, optional.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def serve(): Unit

Start the server. This will block while the server is running.

Start the server. This will block while the server is running.

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product

Implicits

Implicits

implicit val logger: String => Unit