Commit Graph

9 Commits

Author SHA1 Message Date
Aanand Prasad 8e530ead6e Implement OnGet
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2014-06-30 23:15:21 -07:00
Aanand Prasad c1a78b28ec Implement OnStart and OnStop
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2014-06-30 23:15:21 -07:00
Aanand Prasad 440d0b7d60 Implement OnLs
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2014-06-30 23:15:21 -07:00
Aanand Prasad 8fa6e11f73 Implement OnSpawn
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2014-06-30 23:15:21 -07:00
Aanand Prasad ab20d526b1 Remove verb-specific handler methods from Server
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2014-06-30 23:15:21 -07:00
Aanand Prasad 1e15a54d0e 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-30 23:15:20 -07: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