Documentation ¶
Index ¶
Constants ¶
View Source
const CircuitBreakerConfigKey = "circuitbreaking-configurations"
CircuitBreakerConfigKey is key value for qps level to circuit breaker parameters mapping
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CircuitBreakerConfig ¶
CircuitBreakerConfig is used for storing the circuit breaker parameters for each qps level
type Client ¶
type Client interface { HTTPClient() *zanzibar.HTTPClient ArgNotStruct( ctx context.Context, reqHeaders map[string]string, args *clientsIDlClientsBarBar.Bar_ArgNotStruct_Args, timeoutAndRetryCfg *zanzibar.TimeoutAndRetryOptions, ) (context.Context, map[string]string, error) ArgWithHeaders( ctx context.Context, reqHeaders map[string]string, args *clientsIDlClientsBarBar.Bar_ArgWithHeaders_Args, timeoutAndRetryCfg *zanzibar.TimeoutAndRetryOptions, ) (context.Context, *clientsIDlClientsBarBar.BarResponse, map[string]string, error) ArgWithManyQueryParams( ctx context.Context, reqHeaders map[string]string, args *clientsIDlClientsBarBar.Bar_ArgWithManyQueryParams_Args, timeoutAndRetryCfg *zanzibar.TimeoutAndRetryOptions, ) (context.Context, *clientsIDlClientsBarBar.BarResponse, map[string]string, error) ArgWithNearDupQueryParams( ctx context.Context, reqHeaders map[string]string, args *clientsIDlClientsBarBar.Bar_ArgWithNearDupQueryParams_Args, timeoutAndRetryCfg *zanzibar.TimeoutAndRetryOptions, ) (context.Context, *clientsIDlClientsBarBar.BarResponse, map[string]string, error) ArgWithNestedQueryParams( ctx context.Context, reqHeaders map[string]string, args *clientsIDlClientsBarBar.Bar_ArgWithNestedQueryParams_Args, timeoutAndRetryCfg *zanzibar.TimeoutAndRetryOptions, ) (context.Context, *clientsIDlClientsBarBar.BarResponse, map[string]string, error) ArgWithParams( ctx context.Context, reqHeaders map[string]string, args *clientsIDlClientsBarBar.Bar_ArgWithParams_Args, timeoutAndRetryCfg *zanzibar.TimeoutAndRetryOptions, ) (context.Context, *clientsIDlClientsBarBar.BarResponse, map[string]string, error) ArgWithParamsAndDuplicateFields( ctx context.Context, reqHeaders map[string]string, args *clientsIDlClientsBarBar.Bar_ArgWithParamsAndDuplicateFields_Args, timeoutAndRetryCfg *zanzibar.TimeoutAndRetryOptions, ) (context.Context, *clientsIDlClientsBarBar.BarResponse, map[string]string, error) ArgWithQueryHeader( ctx context.Context, reqHeaders map[string]string, args *clientsIDlClientsBarBar.Bar_ArgWithQueryHeader_Args, timeoutAndRetryCfg *zanzibar.TimeoutAndRetryOptions, ) (context.Context, *clientsIDlClientsBarBar.BarResponse, map[string]string, error) ArgWithQueryParams( ctx context.Context, reqHeaders map[string]string, args *clientsIDlClientsBarBar.Bar_ArgWithQueryParams_Args, timeoutAndRetryCfg *zanzibar.TimeoutAndRetryOptions, ) (context.Context, *clientsIDlClientsBarBar.BarResponse, map[string]string, error) DeleteFoo( ctx context.Context, reqHeaders map[string]string, args *clientsIDlClientsBarBar.Bar_DeleteFoo_Args, timeoutAndRetryCfg *zanzibar.TimeoutAndRetryOptions, ) (context.Context, map[string]string, error) DeleteWithBody( ctx context.Context, reqHeaders map[string]string, args *clientsIDlClientsBarBar.Bar_DeleteWithBody_Args, timeoutAndRetryCfg *zanzibar.TimeoutAndRetryOptions, ) (context.Context, map[string]string, error) DeleteWithQueryParams( ctx context.Context, reqHeaders map[string]string, args *clientsIDlClientsBarBar.Bar_DeleteWithQueryParams_Args, timeoutAndRetryCfg *zanzibar.TimeoutAndRetryOptions, ) (context.Context, map[string]string, error) Hello( ctx context.Context, reqHeaders map[string]string, timeoutAndRetryCfg *zanzibar.TimeoutAndRetryOptions, ) (context.Context, string, map[string]string, error) ListAndEnum( ctx context.Context, reqHeaders map[string]string, args *clientsIDlClientsBarBar.Bar_ListAndEnum_Args, timeoutAndRetryCfg *zanzibar.TimeoutAndRetryOptions, ) (context.Context, string, map[string]string, error) MissingArg( ctx context.Context, reqHeaders map[string]string, timeoutAndRetryCfg *zanzibar.TimeoutAndRetryOptions, ) (context.Context, *clientsIDlClientsBarBar.BarResponse, map[string]string, error) NoRequest( ctx context.Context, reqHeaders map[string]string, timeoutAndRetryCfg *zanzibar.TimeoutAndRetryOptions, ) (context.Context, *clientsIDlClientsBarBar.BarResponse, map[string]string, error) Normal( ctx context.Context, reqHeaders map[string]string, args *clientsIDlClientsBarBar.Bar_Normal_Args, timeoutAndRetryCfg *zanzibar.TimeoutAndRetryOptions, ) (context.Context, *clientsIDlClientsBarBar.BarResponse, map[string]string, error) NormalRecur( ctx context.Context, reqHeaders map[string]string, args *clientsIDlClientsBarBar.Bar_NormalRecur_Args, timeoutAndRetryCfg *zanzibar.TimeoutAndRetryOptions, ) (context.Context, *clientsIDlClientsBarBar.BarResponseRecur, map[string]string, error) TooManyArgs( ctx context.Context, reqHeaders map[string]string, args *clientsIDlClientsBarBar.Bar_TooManyArgs_Args, timeoutAndRetryCfg *zanzibar.TimeoutAndRetryOptions, ) (context.Context, *clientsIDlClientsBarBar.BarResponse, map[string]string, error) EchoBinary( ctx context.Context, reqHeaders map[string]string, args *clientsIDlClientsBarBar.Echo_EchoBinary_Args, timeoutAndRetryCfg *zanzibar.TimeoutAndRetryOptions, ) (context.Context, []byte, map[string]string, error) EchoBool( ctx context.Context, reqHeaders map[string]string, args *clientsIDlClientsBarBar.Echo_EchoBool_Args, timeoutAndRetryCfg *zanzibar.TimeoutAndRetryOptions, ) (context.Context, bool, map[string]string, error) EchoDouble( ctx context.Context, reqHeaders map[string]string, args *clientsIDlClientsBarBar.Echo_EchoDouble_Args, timeoutAndRetryCfg *zanzibar.TimeoutAndRetryOptions, ) (context.Context, float64, map[string]string, error) EchoEnum( ctx context.Context, reqHeaders map[string]string, args *clientsIDlClientsBarBar.Echo_EchoEnum_Args, timeoutAndRetryCfg *zanzibar.TimeoutAndRetryOptions, ) (context.Context, clientsIDlClientsBarBar.Fruit, map[string]string, error) EchoI16( ctx context.Context, reqHeaders map[string]string, args *clientsIDlClientsBarBar.Echo_EchoI16_Args, timeoutAndRetryCfg *zanzibar.TimeoutAndRetryOptions, ) (context.Context, int16, map[string]string, error) EchoI32( ctx context.Context, reqHeaders map[string]string, args *clientsIDlClientsBarBar.Echo_EchoI32_Args, timeoutAndRetryCfg *zanzibar.TimeoutAndRetryOptions, ) (context.Context, int32, map[string]string, error) EchoI32Map( ctx context.Context, reqHeaders map[string]string, args *clientsIDlClientsBarBar.Echo_EchoI32Map_Args, timeoutAndRetryCfg *zanzibar.TimeoutAndRetryOptions, ) (context.Context, map[int32]*clientsIDlClientsBarBar.BarResponse, map[string]string, error) EchoI64( ctx context.Context, reqHeaders map[string]string, args *clientsIDlClientsBarBar.Echo_EchoI64_Args, timeoutAndRetryCfg *zanzibar.TimeoutAndRetryOptions, ) (context.Context, int64, map[string]string, error) EchoI8( ctx context.Context, reqHeaders map[string]string, args *clientsIDlClientsBarBar.Echo_EchoI8_Args, timeoutAndRetryCfg *zanzibar.TimeoutAndRetryOptions, ) (context.Context, int8, map[string]string, error) EchoString( ctx context.Context, reqHeaders map[string]string, args *clientsIDlClientsBarBar.Echo_EchoString_Args, timeoutAndRetryCfg *zanzibar.TimeoutAndRetryOptions, ) (context.Context, string, map[string]string, error) EchoStringList( ctx context.Context, reqHeaders map[string]string, args *clientsIDlClientsBarBar.Echo_EchoStringList_Args, timeoutAndRetryCfg *zanzibar.TimeoutAndRetryOptions, ) (context.Context, []string, map[string]string, error) EchoStringMap( ctx context.Context, reqHeaders map[string]string, args *clientsIDlClientsBarBar.Echo_EchoStringMap_Args, timeoutAndRetryCfg *zanzibar.TimeoutAndRetryOptions, ) (context.Context, map[string]*clientsIDlClientsBarBar.BarResponse, map[string]string, error) EchoStringSet( ctx context.Context, reqHeaders map[string]string, args *clientsIDlClientsBarBar.Echo_EchoStringSet_Args, timeoutAndRetryCfg *zanzibar.TimeoutAndRetryOptions, ) (context.Context, map[string]struct{}, map[string]string, error) EchoStructList( ctx context.Context, reqHeaders map[string]string, args *clientsIDlClientsBarBar.Echo_EchoStructList_Args, timeoutAndRetryCfg *zanzibar.TimeoutAndRetryOptions, ) (context.Context, []*clientsIDlClientsBarBar.BarResponse, map[string]string, error) EchoStructSet( ctx context.Context, reqHeaders map[string]string, args *clientsIDlClientsBarBar.Echo_EchoStructSet_Args, timeoutAndRetryCfg *zanzibar.TimeoutAndRetryOptions, ) (context.Context, []*clientsIDlClientsBarBar.BarResponse, map[string]string, error) EchoTypedef( ctx context.Context, reqHeaders map[string]string, args *clientsIDlClientsBarBar.Echo_EchoTypedef_Args, timeoutAndRetryCfg *zanzibar.TimeoutAndRetryOptions, ) (context.Context, clientsIDlClientsBarBar.UUID, map[string]string, error) }
Client defines bar client interface.
func NewClient ¶
func NewClient(deps *module.Dependencies) Client
NewClient returns a new http client.
Directories ¶
Path | Synopsis |
---|---|
Package clientmock is a generated GoMock package.
|
Package clientmock is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.