Documentation
¶
Overview ¶
Package is an interface for synchronous communication
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DialOption ¶
type DialOption func(*DialOptions)
func WithTimeout ¶
func WithTimeout(d time.Duration) DialOption
Timeout used when dialling the remote side
type DialOptions ¶
type ListenOption ¶
type ListenOption func(*ListenOptions)
type ListenOptions ¶
type Option ¶
type Option func(*Options)
func Codec ¶
Codec sets the codec used for encoding where the transport does not support message headers
type Transport ¶
type Transport interface {
Dial(addr string, opts ...DialOption) (Client, error)
Listen(addr string, opts ...ListenOption) (Listener, error)
String() string
}
Transport is an interface which is used for communication between services. It uses socket send/recv semantics and had various implementations {HTTP, RabbitMQ, NATS, ...}
func NewTransport ¶
Directories
¶
| Path | Synopsis |
|---|---|
|
grpc
module
|
|
|
proto
module
|
|
|
proto/codec/bytes
module
|
|
|
proto/transport
module
|
|
|
proto/transport/http
module
|
|
|
proto/transport/memory
module
|
|
|
memory
module
|
|
|
nats
module
|
|
|
registry
module
|
|
|
registry/consul
module
|
|
|
registry/gossip
module
|
|
|
registry/memory
module
|
|
|
quic
module
|
|
|
codec/protorpc
module
|
|
|
rabbitmq
module
|
|
|
client
module
|
|
|
client/mock
module
|
|
|
client/rpc
module
|
|
|
cmd
module
|
|
|
codec
module
|
|
|
codec/bytes
module
|
|
|
codec/grpc
module
|
|
|
codec/json
module
|
|
|
codec/jsonrpc
module
|
|
|
codec/proto
module
|
|
|
codec/protorpc
module
|
|
|
errors
module
|
|
|
metadata
module
|
|
|
registry
module
|
|
|
registry/consul
module
|
|
|
registry/gossip
module
|
|
|
registry/gossip/proto
module
|
|
|
registry/mdns
module
|
|
|
registry/memory
module
|
|
|
selector
module
|
|
|
selector/dns
module
|
|
|
selector/registry
module
|
|
|
selector/static
module
|
|
|
server
module
|
|
|
server/debug
module
|
|
|
server/debug/proto
module
|
|
|
server/mock
module
|
|
|
server/rpc
module
|
|
|
transport
module
|
|
|
transport/http
module
|
|
|
transport/memory
module
|
|
|
tcp
module
|
|
|
utp
module
|
|
|
registry/gossip/proto
module
|
Click to show internal directories.
Click to hide internal directories.