func WithStream() DialOption {
	return func(o *DialOptions) {
		o.Stream = true
	}
}
Indicates whether this is a streaming connection
package transport
import (
	"context"
	"crypto/tls"
	"time"
	"github.com/micro/micro/v3/util/codec"
)
type Options struct {
	Addrs []string
	Codec codec.Marshaler
	Secure bool
	TLSConfig *tls.Config
	Timeout time.Duration
	Context context.Context
}
type DialOptions struct {
	Stream bool
	Timeout time.Duration
	Context context.Context
}
type ListenOptions struct {
	Context context.Context
}
func Addrs(addrs ...string) Option {
	return func(o *Options) {
		o.Addrs = addrs
	}
}
func Codec(c codec.Marshaler) Option {
	return func(o *Options) {
		o.Codec = c
	}
}
func Timeout(t time.Duration) Option {
	return func(o *Options) {
		o.Timeout = t
	}
}
func Secure(b bool) Option {
	return func(o *Options) {
		o.Secure = b
	}
}
func TLSConfig(t *tls.Config) Option {
	return func(o *Options) {
		o.TLSConfig = t
	}
}