Documentation ¶
Overview ¶
Package client defines the Options of client
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigLocks ¶
ConfigLocks records changing made by options that are not allowed further modifications.
func (*ConfigLocks) ApplyLocks ¶
func (cl *ConfigLocks) ApplyLocks(cfg rpcinfo.RPCConfig, svr remoteinfo.RemoteInfo)
ApplyLocks applies the locking operations on rpcinfo.RPCConfig and internal.RemoteInfo.
func (*ConfigLocks) Merge ¶
func (cl *ConfigLocks) Merge(c2 *ConfigLocks)
Merge merges another ConfigLocks into the current one.
type Options ¶
type Options struct { Cli *rpcinfo.EndpointBasicInfo Svr *rpcinfo.EndpointBasicInfo Configs rpcinfo.RPCConfig Locks *ConfigLocks Once *configutil.OptionOnce MetaHandlers []remote.MetaHandler RemoteOpt *remote.ClientOption Proxy proxy.ForwardProxy Resolver discovery.Resolver HTTPResolver http.Resolver Balancer loadbalance.Loadbalancer BalancerCacheOpt *lbcache.Options PoolCfg *connpool2.IdleConfig ErrHandle func(error) error Targets string CBSuite *circuitbreak.CBSuite Timeouts rpcinfo.TimeoutProvider ACLRules []acl.RejectFunc MWBs []endpoint.MiddlewareBuilder IMWBs []endpoint.MiddlewareBuilder Bus event.Bus Events event.Queue ExtraTimeout time.Duration // DebugInfo should only contains objects that are suitable for json serialization. DebugInfo utils.Slice DebugService diagnosis.Service // Observability TracerCtl *internal_stats.Controller StatsLevel *stats.Level // retry policy RetryPolicy *retry.Policy RetryContainer *retry.Container CloseCallbacks []func() error }
Options is used to initialize a client.
Click to show internal directories.
Click to hide internal directories.