timeout

package
v1.2.9 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: MIT Imports: 8 Imported by: 1 module, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	// AdminDefaultTimeout is the admin service default timeout used to make calls
	AdminDefaultTimeout = 10 * time.Second
	// AdminDefaultLargeTimeout is the admin service large default timeout used to make calls
	AdminDefaultLargeTimeout = time.Minute
	// FrontendDefaultTimeout is the frontend service default timeout used to make calls
	FrontendDefaultTimeout = 10 * time.Second
	// FrontendDefaultLongPollTimeout is the frontend service long poll default timeout used to make calls
	FrontendDefaultLongPollTimeout = time.Minute * 3
	// MatchingDefaultTimeout is the default timeout used to make calls
	MatchingDefaultTimeout = time.Minute
	// MatchingDefaultLongPollTimeout is the long poll default timeout used to make calls
	MatchingDefaultLongPollTimeout = time.Minute * 2
	// HistoryDefaultTimeout is the default timeout used to make calls
	HistoryDefaultTimeout = time.Second * 30
)

Variables

This section is empty.

Functions

func NewAdminClient

func NewAdminClient(
	client admin.Client,
	largeTimeout time.Duration,
	timeout time.Duration,
) admin.Client

NewAdminClient creates a new adminClient instance

func NewFrontendClient

func NewFrontendClient(
	client frontend.Client,
	longPollTimeout time.Duration,
	timeout time.Duration,
) frontend.Client

NewFrontendClient creates a new frontendClient instance

func NewHistoryClient

func NewHistoryClient(
	client history.Client,
	timeout time.Duration,
) history.Client

NewHistoryClient creates a new historyClient instance

func NewMatchingClient

func NewMatchingClient(
	client matching.Client,
	longPollTimeout time.Duration,
	timeout time.Duration,
) matching.Client

NewMatchingClient creates a new matchingClient instance

Types

This section is empty.

Jump to

Keyboard shortcuts

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