package protocol
- Alphabetic
- Public
- All
Type Members
- sealed trait Action extends AnyRef
-
class
Protocol extends AnyRef
An implementation of the nailgun protocol in Scala.
An implementation of the nailgun protocol in Scala.
It follows http://www.martiansoftware.com/nailgun/protocol.html and has been slightly inspired in the C and Python clients. The implementation has been simplified more than these two and optimized for readability.
The protocol is designed to be used by different instances of snailgun.Client implementing different communication mechanisms (e.g. TCP / Unix Domain sockets / Windows Named Pipes).
-
final
case class
Streams(in: Option[InputStream], out: OutputStream, err: OutputStream, inIsATty: Int = 0, outIsATty: Int = 0, errIsATty: Int = 0) extends Product with Serializable
An instance of user-defined streams where the protocol will forward any stdout, stdin or stderr coming from the client.
An instance of user-defined streams where the protocol will forward any stdout, stdin or stderr coming from the client.
Note that this is decoupled from the logger API, which is mostly used for tracing the protocol behaviour and reporting errors. The logger can be backed by some of these user-defined streams but it isn't a requirement.