Versions in this module Expand all Collapse all v2 v2.9.3 Mar 19, 2021 Changes in this version + type Client interface + type DialOption func(*DialOptions) + func WithStream() DialOption + func WithTimeout(d time.Duration) DialOption + type DialOptions struct + Context context.Context + Stream bool + Timeout time.Duration + type ListenOption func(*ListenOptions) + type ListenOptions struct + Context context.Context + type Listener interface + Accept func(func(Socket)) error + Addr func() string + Close func() error + type Message struct + Body []byte + Header map[string]string + type Option func(*Options) + func Addrs(addrs ...string) Option + func Codec(c codec.Marshaler) Option + func Secure(b bool) Option + func TLSConfig(t *tls.Config) Option + func Timeout(t time.Duration) Option + type Options struct + Addrs []string + Codec codec.Marshaler + Context context.Context + Secure bool + TLSConfig *tls.Config + Timeout time.Duration + type Socket interface + Close func() error + Local func() string + Recv func(*Message) error + Remote func() string + Send func(*Message) error + type Transport interface + Dial func(addr string, opts ...DialOption) (Client, error) + Init func(...Option) error + Listen func(addr string, opts ...ListenOption) (Listener, error) + Options func() Options + String func() string + var DefaultDialTimeout = time.Second * 5 + var DefaultTransport Transport = newHTTPTransport() + func NewTransport(opts ...Option) Transport Other modules containing this package gitee.com/eyimi/go-micro