Documentation
¶
Index ¶
- func GetClientOptions(ops []Option) []client.Option
- type Option
- func ConvertOptionFrom(opt client.Option) Optiondeprecated
- func WithACLRules(rules ...acl.RejectFunc) Optiondeprecated
- func WithClientBasicInfo(ebi *rpcinfo.EndpointBasicInfo) Optiondeprecated
- func WithCloseCallbacks(callback func() error) Optiondeprecated
- func WithConnReporterEnabled() Optiondeprecated
- func WithConnectTimeout(d time.Duration) Optiondeprecated
- func WithContextBackup(...) Optiondeprecated
- func WithDestService(svr string) Optiondeprecated
- func WithDiagnosisService(ds diagnosis.Service) Optiondeprecated
- func WithDialer(d remote.Dialer) Optiondeprecated
- func WithErrorHandler(f func(context.Context, error) error) Optiondeprecated
- func WithFirstMetaHandler(h remote.MetaHandler) Optiondeprecated
- func WithGRPCConnPoolSize(s uint32) Optiondeprecated
- func WithGRPCInitialConnWindowSize(s uint32) Optiondeprecated
- func WithGRPCInitialWindowSize(s uint32) Optiondeprecated
- func WithGRPCKeepaliveParams(kp grpc.ClientKeepalive) Optiondeprecated
- func WithGRPCMaxHeaderListSize(s uint32) Optiondeprecated
- func WithGRPCReadBufferSize(s uint32) Optiondeprecated
- func WithGRPCTLSConfig(tlsConfig *tls.Config) Optiondeprecated
- func WithGRPCWriteBufferSize(s uint32) Optiondeprecated
- func WithHTTPResolver(r http.Resolver) Optiondeprecated
- func WithHostPorts(hostPorts ...string) Optiondeprecated
- func WithInstanceMW(mw endpoint.Middleware) Optiondeprecated
- func WithLoadBalancer(lb loadbalance.Loadbalancer, opts ...*lbcache.Options) Optiondeprecated
- func WithMetaHandler(h remote.MetaHandler) Optiondeprecated
- func WithMiddleware(mw endpoint.Middleware) Optiondeprecated
- func WithMiddlewareBuilder(mwb endpoint.MiddlewareBuilder) Optiondeprecated
- func WithPayloadCodec(c remote.PayloadCodec) Optiondeprecated
- func WithProxy(p proxy.ForwardProxy) Optiondeprecated
- func WithRecvMiddleware(mw endpoint.RecvMiddleware) Optiondeprecated
- func WithRecvMiddlewareBuilder(mwb endpoint.RecvMiddlewareBuilder) Optiondeprecated
- func WithResolver(r discovery.Resolver) Optiondeprecated
- func WithSendMiddleware(mw endpoint.SendMiddleware) Optiondeprecated
- func WithSendMiddlewareBuilder(mwb endpoint.SendMiddlewareBuilder) Optiondeprecated
- func WithStatsLevel(level stats.Level) Optiondeprecated
- func WithSuite(suite client.Suite) Optiondeprecated
- func WithTag(key, val string) Optiondeprecated
- func WithTracer(c stats.Tracer) Optiondeprecated
- func WithWarmingUp(wuo *warmup.ClientOption) Optiondeprecated
- func WithXDSSuite(suite xds.ClientSuite) Optiondeprecated
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetClientOptions ¶
GetClientOptions converts given streamclient.Option(s) to client.Option(s)
Types ¶
type Option ¶
func ConvertOptionFrom
deprecated
Deprecated: it's not supposed to be called by users directly; may be removed in future versions. ConvertOptionFrom converts client.Option to streamclient.Option It's convenient for creating StreamOption from existing client.Option Note: NOT all client.Option(s) converted will work for stream clients; Even if it works for now, it's NOT guaranteed that it will always work for future versions.
func WithACLRules
deprecated
func WithACLRules(rules ...acl.RejectFunc) Option
Deprecated: Use client.WithACLRules instead, this requires enabling the streamx feature.
func WithClientBasicInfo
deprecated
func WithClientBasicInfo(ebi *rpcinfo.EndpointBasicInfo) Option
Deprecated: Use client.WithClientBasicInfo instead, this requires enabling the streamx feature.
func WithCloseCallbacks
deprecated
func WithConnReporterEnabled
deprecated
func WithConnReporterEnabled() Option
Deprecated: Use client.WithConnReporterEnabled instead, this requires enabling the streamx feature.
func WithConnectTimeout
deprecated
func WithDestService
deprecated
func WithDiagnosisService
deprecated
func WithDialer
deprecated
func WithFirstMetaHandler
deprecated
func WithFirstMetaHandler(h remote.MetaHandler) Option
Deprecated: Use client.WithFirstMetaHandler instead, this requires enabling the streamx feature.
func WithGRPCConnPoolSize
deprecated
func WithGRPCInitialConnWindowSize
deprecated
func WithGRPCInitialWindowSize
deprecated
func WithGRPCKeepaliveParams
deprecated
func WithGRPCKeepaliveParams(kp grpc.ClientKeepalive) Option
Deprecated: Use client.WithGRPCKeepaliveParams instead, this requires enabling the streamx feature.
func WithGRPCMaxHeaderListSize
deprecated
func WithGRPCReadBufferSize
deprecated
func WithGRPCTLSConfig
deprecated
func WithGRPCWriteBufferSize
deprecated
func WithHTTPResolver
deprecated
func WithHostPorts
deprecated
func WithInstanceMW
deprecated
func WithInstanceMW(mw endpoint.Middleware) Option
Deprecated: Use client.WithInstanceMW instead, this requires enabling the streamx feature.
func WithLoadBalancer
deprecated
func WithLoadBalancer(lb loadbalance.Loadbalancer, opts ...*lbcache.Options) Option
Deprecated: Use client.WithLoadBalancer instead, this requires enabling the streamx feature.
func WithMetaHandler
deprecated
func WithMetaHandler(h remote.MetaHandler) Option
Deprecated: Use client.WithMetaHandler instead, this requires enabling the streamx feature.
func WithMiddleware
deprecated
func WithMiddleware(mw endpoint.Middleware) Option
Deprecated: Use client.WithMiddleware instead, this requires enabling the streamx feature.
func WithMiddlewareBuilder
deprecated
func WithMiddlewareBuilder(mwb endpoint.MiddlewareBuilder) Option
Deprecated: Use client.WithMiddlewareBuilder instead, this requires enabling the streamx feature.
func WithPayloadCodec
deprecated
func WithPayloadCodec(c remote.PayloadCodec) Option
Deprecated: Use client.WithPayloadCodec instead, this requires enabling the streamx feature.
func WithProxy
deprecated
func WithProxy(p proxy.ForwardProxy) Option
Deprecated: Use client.WithProxy instead, this requires enabling the streamx feature.
func WithRecvMiddleware
deprecated
func WithRecvMiddleware(mw endpoint.RecvMiddleware) Option
Deprecated: Use client.WithStreamRecvMiddleware instead, this requires enabling the streamx feature.
func WithRecvMiddlewareBuilder
deprecated
func WithRecvMiddlewareBuilder(mwb endpoint.RecvMiddlewareBuilder) Option
Deprecated: Use client.WithStreamRecvMiddlewareBuilder instead, this requires enabling the streamx feature.
func WithResolver
deprecated
func WithSendMiddleware
deprecated
func WithSendMiddleware(mw endpoint.SendMiddleware) Option
Deprecated: Use client.WithStreamSendMiddleware instead, this requires enabling the streamx feature.
func WithSendMiddlewareBuilder
deprecated
func WithSendMiddlewareBuilder(mwb endpoint.SendMiddlewareBuilder) Option
Deprecated: Use client.WithStreamSendMiddlewareBuilder instead, this requires enabling the streamx feature.
func WithStatsLevel
deprecated
func WithTracer
deprecated
func WithWarmingUp
deprecated
func WithWarmingUp(wuo *warmup.ClientOption) Option
Deprecated: Use client.WithWarmingUp instead, this requires enabling the streamx feature.
func WithXDSSuite
deprecated
func WithXDSSuite(suite xds.ClientSuite) Option
Deprecated: Use client.WithXDSSuite instead, this requires enabling the streamx feature.