client

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithCircuitBreaker

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

WithCircuitBreaker sets the circuit breaker policy from nacos configuration center.

func WithDegradation added in v0.4.0

func WithDegradation(dest, src string, nacosClient nacos.Client, opts utils.Options) []client.Option

WithDegradation sets the degradation policy from nacos configuration center.

func WithRPCTimeout

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

WithRPCTimeout sets the RPC timeout policy from nacos configuration center.

func WithRetryPolicy

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

WithRetryPolicy sets the retry policy from nacos configuration center.

Types

type NacosClientSuite

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

NacosClientSuite nacos client config suite, configure retry timeout limit and circuitbreak dynamically from nacos.

func NewSuite

func NewSuite(service, client string, cli nacos.Client, opts ...utils.Option) *NacosClientSuite

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

func (*NacosClientSuite) Options

func (s *NacosClientSuite) 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