Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Acceptor ¶
Acceptor is a simplified version of net.Listener geared towards multiplexers. It accepts new connections.
type ClientStream ¶
type ClientStream interface { Send(interface{}) error // TODO: Document that Receive returns io.EOF unmodified (so long as the // stream is closed on a message boundary) and add a test to ensure this. // Prompting (and potentially other code) relies on this to identify clean // termination. Receive(interface{}) error // Close closes the stream. It may be called concurrently with the Send and // Receive methods, which it will unblock. Close() error }
type Handler ¶
type Handler func(HandlerStream) error
type HandlerStream ¶
type HandlerStream interface { Send(interface{}) error // TODO: Document that Receive returns io.EOF unmodified (so long as the // stream is closed on a message boundary) and add a test to ensure this. // There isn't any code currently relying on this behavior, but we should // keep it symmetric with ClientStream because it's useful for the same // reason. Receive(interface{}) error }
type RemoteError ¶
type RemoteError struct {
// contains filtered or unexported fields
}
func (*RemoteError) Error ¶
func (e *RemoteError) Error() string
Click to show internal directories.
Click to hide internal directories.