client

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2023 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(service string, watcher monitor.ConfigMonitor) []kitexclient.Option

WithCircuitBreaker returns a server.Option that sets the circuit breaker for the client

func WithRPCTimeout

func WithRPCTimeout(watcher monitor.ConfigMonitor) []kitexclient.Option

WithRPCTimeout returns a server.Option that sets the timeout provider for the client.

func WithRetryPolicy

func WithRetryPolicy(watcher monitor.ConfigMonitor) []kitexclient.Option

WithRetryPolicy returns a server.Option that sets the retry policies for the client

Types

type FileConfigClientSuite

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

func NewSuite

func NewSuite(service, key string, watcher filewatcher.FileWatcher) *FileConfigClientSuite

NewSuite service is the destination service.

func (*FileConfigClientSuite) Options

func (s *FileConfigClientSuite) Options() []kitexclient.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