Questions tagged [libchan]

3 questions
1
vote
1 answer

Need help understanding how libchan works

I'm trying to use the libchan library to send messages between machines using a go channel-like transport. From what I've gathered, the rough idea is this: You have a SPDY client that sends a serialized command object to an address over tcp. This…
dopatraman
  • 13,416
  • 29
  • 90
  • 154
1
vote
1 answer

Spdy stream receiver is receiving nil object

I'm using the libchan library by docker. Their example goes like this: // client.go package main import ( "log" "io" "net" "os" "github.com/docker/libchan" "github.com/docker/libchan/spdy" ) type RemoteCommand struct { …
dopatraman
  • 13,416
  • 29
  • 90
  • 154
0
votes
1 answer

trying to implement polymorphism with go interfaces

I'm trying to create a layer on top of a third party library, in this case libchan. Here's an interface I've defined: type ReceiverStream interface { Receive(msg interface{}) error } type InboundTransport interface { WaitReceiveChannel()…
dopatraman
  • 13,416
  • 29
  • 90
  • 154