timeout

package
v1.2.13-prerelease10 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2024 License: MIT Imports: 8 Imported by: 0

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