Add transport comment

This commit is contained in:
Asim 2016-01-30 21:19:55 +00:00
parent a53979dfed
commit 9f0dd3dc8c

View File

@ -27,6 +27,9 @@ type Listener interface {
Accept(func(Socket)) error
}
// Transport is an interface which is used for communication between
// services. It uses socket send/recv semantics and had various
// implementations {HTTP, RabbitMQ, NATS, ...}
type Transport interface {
Dial(addr string, opts ...DialOption) (Client, error)
Listen(addr string, opts ...ListenOption) (Listener, error)