client

package
v0.1.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithCircuitBreaker

func WithCircuitBreaker(dest, src string, consulClient consul.Client, uniqueID int64, opts utils.Options) []client.Option

WithCircuitBreaker sets the circuit breaker policy from consul configuration center.

func WithRPCTimeout

func WithRPCTimeout(dest, src string, consulClient consul.Client, uniqueID int64, opts utils.Options) []client.Option

WithRPCTimeout sets the RPC timeout policy from consul configuration center.

func WithRetryPolicy

func WithRetryPolicy(dest, src string, consulClient consul.Client, uniqueID int64, opts utils.Options) []client.Option

WithRetryPolicy sets the retry policy from consul configuration center.

Types

type ConsulClientSuite

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

func NewSuite

func NewSuite(service, client string, cli consul.Client,
	opts ...utils.Option,
) *ConsulClientSuite

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

func (*ConsulClientSuite) Options

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