client

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2023 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, apolloClient apollo.Client,
	opts utils.Options,
) []client.Option

WithCircuitBreaker sets the circuit breaker policy from apollo configuration center.

func WithRPCTimeout

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

WithRPCTimeout sets the RPC timeout policy from apollo configuration center.

func WithRetryPolicy

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

Types

type ApolloClientSuite

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

func NewSuite

func NewSuite(service, client string, cli apollo.Client,
	options ...utils.Option,
) *ApolloClientSuite

func (*ApolloClientSuite) Options

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

type ClientSuiteOption

type ClientSuiteOption func(*ApolloClientSuite)

Jump to

Keyboard shortcuts

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