admin

package
v1.26.2-124.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultTimeout is the default timeout used to make calls
	DefaultTimeout = 10 * time.Second * debug.TimeoutMultiplier
	// DefaultLargeTimeout is the default timeout used to make calls
	DefaultLargeTimeout = time.Minute * debug.TimeoutMultiplier
)

Variables

This section is empty.

Functions

func NewClient

func NewClient(
	timeout time.Duration,
	largeTimeout time.Duration,
	client adminservice.AdminServiceClient,
) adminservice.AdminServiceClient

NewClient creates a new admin service gRPC client

func NewMetricClient

func NewMetricClient(
	client adminservice.AdminServiceClient,
	metricsHandler metrics.Handler,
	throttledLogger log.Logger,
) adminservice.AdminServiceClient

NewMetricClient creates a new instance of adminservice.AdminServiceClient that emits metrics

func NewRetryableClient

func NewRetryableClient(client adminservice.AdminServiceClient, policy backoff.RetryPolicy, isRetryable backoff.IsRetryable) adminservice.AdminServiceClient

NewRetryableClient creates a new instance of adminservice.AdminServiceClient with retry policy

Types

This section is empty.

Jump to

Keyboard shortcuts

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