Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Scheme = flag.String("transport", "tcp", "transport scheme (tcp, udp, chan), default tcp")
Functions ¶
This section is empty.
Types ¶
type Transport ¶
type Transport interface { // Scheme returns tranport scheme Scheme() string // Send sends message into t.send chan Send(interface{}) // Recv waits for message from t.recv chan Recv() interface{} // Dial connects to remote server non-blocking once connected Dial() error // Listen waits for connections, non-blocking once listener starts Listen() // Close closes send channel and stops listener Close() }
Transport = transport + pipe + client + server
func NewTransport ¶
NewTransport creates new transport object with url
Click to show internal directories.
Click to hide internal directories.