custombarclient

package
v2.0.10 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const CircuitBreakerConfigKey = "circuitbreaking-configurations"

CircuitBreakerConfigKey is key value for qps level to circuit breaker parameters mapping

View Source
const CustomTemplateTesting = "test"

CustomTemplateTesting generated for testing of custom template feature

Variables

This section is empty.

Functions

This section is empty.

Types

type CircuitBreakerConfig

type CircuitBreakerConfig struct {
	Parameters map[string]map[string]int
}

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,
	) (context.Context, map[string]string, error)
	ArgWithHeaders(
		ctx context.Context,
		reqHeaders map[string]string,
		args *clientsIDlClientsBarBar.Bar_ArgWithHeaders_Args,
	) (context.Context, *clientsIDlClientsBarBar.BarResponse, map[string]string, error)
	ArgWithManyQueryParams(
		ctx context.Context,
		reqHeaders map[string]string,
		args *clientsIDlClientsBarBar.Bar_ArgWithManyQueryParams_Args,
	) (context.Context, *clientsIDlClientsBarBar.BarResponse, map[string]string, error)
	ArgWithNearDupQueryParams(
		ctx context.Context,
		reqHeaders map[string]string,
		args *clientsIDlClientsBarBar.Bar_ArgWithNearDupQueryParams_Args,
	) (context.Context, *clientsIDlClientsBarBar.BarResponse, map[string]string, error)
	ArgWithNestedQueryParams(
		ctx context.Context,
		reqHeaders map[string]string,
		args *clientsIDlClientsBarBar.Bar_ArgWithNestedQueryParams_Args,
	) (context.Context, *clientsIDlClientsBarBar.BarResponse, map[string]string, error)
	ArgWithParams(
		ctx context.Context,
		reqHeaders map[string]string,
		args *clientsIDlClientsBarBar.Bar_ArgWithParams_Args,
	) (context.Context, *clientsIDlClientsBarBar.BarResponse, map[string]string, error)
	ArgWithParamsAndDuplicateFields(
		ctx context.Context,
		reqHeaders map[string]string,
		args *clientsIDlClientsBarBar.Bar_ArgWithParamsAndDuplicateFields_Args,
	) (context.Context, *clientsIDlClientsBarBar.BarResponse, map[string]string, error)
	ArgWithQueryHeader(
		ctx context.Context,
		reqHeaders map[string]string,
		args *clientsIDlClientsBarBar.Bar_ArgWithQueryHeader_Args,
	) (context.Context, *clientsIDlClientsBarBar.BarResponse, map[string]string, error)
	ArgWithQueryParams(
		ctx context.Context,
		reqHeaders map[string]string,
		args *clientsIDlClientsBarBar.Bar_ArgWithQueryParams_Args,
	) (context.Context, *clientsIDlClientsBarBar.BarResponse, map[string]string, error)
	DeleteFoo(
		ctx context.Context,
		reqHeaders map[string]string,
		args *clientsIDlClientsBarBar.Bar_DeleteFoo_Args,
	) (context.Context, map[string]string, error)
	DeleteWithBody(
		ctx context.Context,
		reqHeaders map[string]string,
		args *clientsIDlClientsBarBar.Bar_DeleteWithBody_Args,
	) (context.Context, map[string]string, error)
	DeleteWithQueryParams(
		ctx context.Context,
		reqHeaders map[string]string,
		args *clientsIDlClientsBarBar.Bar_DeleteWithQueryParams_Args,
	) (context.Context, map[string]string, error)
	Hello(
		ctx context.Context,
		reqHeaders map[string]string,
	) (context.Context, string, map[string]string, error)
	ListAndEnum(
		ctx context.Context,
		reqHeaders map[string]string,
		args *clientsIDlClientsBarBar.Bar_ListAndEnum_Args,
	) (context.Context, string, map[string]string, error)
	MissingArg(
		ctx context.Context,
		reqHeaders map[string]string,
	) (context.Context, *clientsIDlClientsBarBar.BarResponse, map[string]string, error)
	NoRequest(
		ctx context.Context,
		reqHeaders map[string]string,
	) (context.Context, *clientsIDlClientsBarBar.BarResponse, map[string]string, error)
	Normal(
		ctx context.Context,
		reqHeaders map[string]string,
		args *clientsIDlClientsBarBar.Bar_Normal_Args,
	) (context.Context, *clientsIDlClientsBarBar.BarResponse, map[string]string, error)
	NormalRecur(
		ctx context.Context,
		reqHeaders map[string]string,
		args *clientsIDlClientsBarBar.Bar_NormalRecur_Args,
	) (context.Context, *clientsIDlClientsBarBar.BarResponseRecur, map[string]string, error)
	TooManyArgs(
		ctx context.Context,
		reqHeaders map[string]string,
		args *clientsIDlClientsBarBar.Bar_TooManyArgs_Args,
	) (context.Context, *clientsIDlClientsBarBar.BarResponse, map[string]string, error)
	EchoBinary(
		ctx context.Context,
		reqHeaders map[string]string,
		args *clientsIDlClientsBarBar.Echo_EchoBinary_Args,
	) (context.Context, []byte, map[string]string, error)
	EchoBool(
		ctx context.Context,
		reqHeaders map[string]string,
		args *clientsIDlClientsBarBar.Echo_EchoBool_Args,
	) (context.Context, bool, map[string]string, error)
	EchoDouble(
		ctx context.Context,
		reqHeaders map[string]string,
		args *clientsIDlClientsBarBar.Echo_EchoDouble_Args,
	) (context.Context, float64, map[string]string, error)
	EchoEnum(
		ctx context.Context,
		reqHeaders map[string]string,
		args *clientsIDlClientsBarBar.Echo_EchoEnum_Args,
	) (context.Context, clientsIDlClientsBarBar.Fruit, map[string]string, error)
	EchoI16(
		ctx context.Context,
		reqHeaders map[string]string,
		args *clientsIDlClientsBarBar.Echo_EchoI16_Args,
	) (context.Context, int16, map[string]string, error)
	EchoI32(
		ctx context.Context,
		reqHeaders map[string]string,
		args *clientsIDlClientsBarBar.Echo_EchoI32_Args,
	) (context.Context, int32, map[string]string, error)
	EchoI32Map(
		ctx context.Context,
		reqHeaders map[string]string,
		args *clientsIDlClientsBarBar.Echo_EchoI32Map_Args,
	) (context.Context, map[int32]*clientsIDlClientsBarBar.BarResponse, map[string]string, error)
	EchoI64(
		ctx context.Context,
		reqHeaders map[string]string,
		args *clientsIDlClientsBarBar.Echo_EchoI64_Args,
	) (context.Context, int64, map[string]string, error)
	EchoI8(
		ctx context.Context,
		reqHeaders map[string]string,
		args *clientsIDlClientsBarBar.Echo_EchoI8_Args,
	) (context.Context, int8, map[string]string, error)
	EchoString(
		ctx context.Context,
		reqHeaders map[string]string,
		args *clientsIDlClientsBarBar.Echo_EchoString_Args,
	) (context.Context, string, map[string]string, error)
	EchoStringList(
		ctx context.Context,
		reqHeaders map[string]string,
		args *clientsIDlClientsBarBar.Echo_EchoStringList_Args,
	) (context.Context, []string, map[string]string, error)
	EchoStringMap(
		ctx context.Context,
		reqHeaders map[string]string,
		args *clientsIDlClientsBarBar.Echo_EchoStringMap_Args,
	) (context.Context, map[string]*clientsIDlClientsBarBar.BarResponse, map[string]string, error)
	EchoStringSet(
		ctx context.Context,
		reqHeaders map[string]string,
		args *clientsIDlClientsBarBar.Echo_EchoStringSet_Args,
	) (context.Context, map[string]struct{}, map[string]string, error)
	EchoStructList(
		ctx context.Context,
		reqHeaders map[string]string,
		args *clientsIDlClientsBarBar.Echo_EchoStructList_Args,
	) (context.Context, []*clientsIDlClientsBarBar.BarResponse, map[string]string, error)

	EchoStructSet(
		ctx context.Context,
		reqHeaders map[string]string,
		args *clientsIDlClientsBarBar.Echo_EchoStructSet_Args,
	) (context.Context, []*clientsIDlClientsBarBar.BarResponse, map[string]string, error)
	EchoTypedef(
		ctx context.Context,
		reqHeaders map[string]string,
		args *clientsIDlClientsBarBar.Echo_EchoTypedef_Args,
	) (context.Context, clientsIDlClientsBarBar.UUID, map[string]string, error)
}

Client defines custom-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.

Jump to

Keyboard shortcuts

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