Commit Graph

11 Commits

Author SHA1 Message Date
Aanand Prasad 9156cc0de0 Implement OnLog and OnError
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2014-06-19 15:36:14 +01:00
Aanand Prasad ae6200f48e Implement OnAttach
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2014-06-19 15:36:14 +01:00
Aanand Prasad 70b1f7f0a0 Implement OnGet
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2014-06-19 15:36:14 +01:00
Aanand Prasad b7b6b00f52 Implement OnStart and OnStop
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2014-06-19 15:36:14 +01:00
Aanand Prasad 1b8e015627 Implement OnLs
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2014-06-19 15:36:13 +01:00
Aanand Prasad 181b20d855 Implement OnSpawn
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2014-06-19 15:36:13 +01:00
Aanand Prasad 75714361ef Remove verb-specific handler methods from Server
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2014-06-19 15:36:13 +01:00
Aanand Prasad e2e64e71cb Port to libchan, pt. 1
This is a minimal effort to get things running. Only the `beam` package
has changed - backend code is untouched.

- The `beam` package is still around, but functions as a
  libswarm-specific wrapper around libchan messages. It'll either be
  renamed or moved to the top-level namespace.

- We have our own Message type which serializes/deserializes to libchan
  messages, and our own versions of Sender and Receiver which speak
  libswarm. WrapSender and WrapReceiver promote libchan objects to
  their libswarm equivalents.

- We also have our own wrappers around libchan utilities: RetPipe,
  Handler, Pipe, Copy.

Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2014-06-18 12:31:56 +01:00
Aanand Prasad 15246051d3 Fix Get() (no longer takes a key), add OnGet() to Server
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2014-06-07 10:50:31 -07:00
Solomon Hykes d95b9728e8 beam: encode Verb in an enum instead of a string
Signed-off-bu: Solomon Hykes <solomon@docker.com>
2014-06-05 07:02:21 +00:00
Solomon Hykes 91c9eec591 Break down beam plumbing into smaller, simpler files
Signed-off-by: Solomon Hykes <solomon@docker.com>
2014-06-05 06:00:50 +00:00