Add transport comment
This commit is contained in:
parent
a53979dfed
commit
9f0dd3dc8c
@ -27,6 +27,9 @@ type Listener interface {
|
|||||||
Accept(func(Socket)) error
|
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 {
|
type Transport interface {
|
||||||
Dial(addr string, opts ...DialOption) (Client, error)
|
Dial(addr string, opts ...DialOption) (Client, error)
|
||||||
Listen(addr string, opts ...ListenOption) (Listener, error)
|
Listen(addr string, opts ...ListenOption) (Listener, error)
|
||||||
|
Loading…
Reference in New Issue
Block a user