client

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 9, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithCircuitBreaker

func WithCircuitBreaker(dest, src string, zookeeperClient zookeeper.Client, opts utils.Options) []client.Option

WithCircuitBreaker sets the circuit breaker policy from zookeeper configuration center.

func WithRPCTimeout

func WithRPCTimeout(dest, src string, zookeeperClient zookeeper.Client, opts utils.Options) []client.Option

WithRPCTimeout sets the RPC timeout policy from zookeeper configuration center.

func WithRetryPolicy

func WithRetryPolicy(dest, src string, zookeeperClient zookeeper.Client, opts utils.Options) []client.Option

WithRetryPolicy sets the retry policy from zookeeper configuration center.

Types

type ZookeeperClientSuite

type ZookeeperClientSuite struct {
	// contains filtered or unexported fields
}

ZookeeperClientSuite zookeeper client config suite, configure retry timeout limit and circuitbreak dynamically from zookeeper.

func NewSuite

func NewSuite(service, client string, cli zookeeper.Client, opts ...utils.Option) *ZookeeperClientSuite

NewSuite service is the destination service name and client is the local identity.

func (*ZookeeperClientSuite) Options

func (s *ZookeeperClientSuite) Options() []client.Option

Options return a list client.Option

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL