bazclient

package
v2.0.12 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: MIT Imports: 17 Imported by: 0

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

func NewSecondServiceEchoBinaryHandler

func NewSecondServiceEchoBinaryHandler(f SecondServiceEchoBinaryFunc) zanzibar.TChannelHandler

NewSecondServiceEchoBinaryHandler wraps a handler function so it can be registered with a thrift server.

func NewSecondServiceEchoBoolHandler

func NewSecondServiceEchoBoolHandler(f SecondServiceEchoBoolFunc) zanzibar.TChannelHandler

NewSecondServiceEchoBoolHandler wraps a handler function so it can be registered with a thrift server.

func NewSecondServiceEchoDoubleHandler

func NewSecondServiceEchoDoubleHandler(f SecondServiceEchoDoubleFunc) zanzibar.TChannelHandler

NewSecondServiceEchoDoubleHandler wraps a handler function so it can be registered with a thrift server.

func NewSecondServiceEchoEnumHandler

func NewSecondServiceEchoEnumHandler(f SecondServiceEchoEnumFunc) zanzibar.TChannelHandler

NewSecondServiceEchoEnumHandler wraps a handler function so it can be registered with a thrift server.

func NewSecondServiceEchoI16Handler

func NewSecondServiceEchoI16Handler(f SecondServiceEchoI16Func) zanzibar.TChannelHandler

NewSecondServiceEchoI16Handler wraps a handler function so it can be registered with a thrift server.

func NewSecondServiceEchoI32Handler

func NewSecondServiceEchoI32Handler(f SecondServiceEchoI32Func) zanzibar.TChannelHandler

NewSecondServiceEchoI32Handler wraps a handler function so it can be registered with a thrift server.

func NewSecondServiceEchoI64Handler

func NewSecondServiceEchoI64Handler(f SecondServiceEchoI64Func) zanzibar.TChannelHandler

NewSecondServiceEchoI64Handler wraps a handler function so it can be registered with a thrift server.

func NewSecondServiceEchoI8Handler

func NewSecondServiceEchoI8Handler(f SecondServiceEchoI8Func) zanzibar.TChannelHandler

NewSecondServiceEchoI8Handler wraps a handler function so it can be registered with a thrift server.

func NewSecondServiceEchoStringHandler

func NewSecondServiceEchoStringHandler(f SecondServiceEchoStringFunc) zanzibar.TChannelHandler

NewSecondServiceEchoStringHandler wraps a handler function so it can be registered with a thrift server.

func NewSecondServiceEchoStringListHandler

func NewSecondServiceEchoStringListHandler(f SecondServiceEchoStringListFunc) zanzibar.TChannelHandler

NewSecondServiceEchoStringListHandler wraps a handler function so it can be registered with a thrift server.

func NewSecondServiceEchoStringMapHandler

func NewSecondServiceEchoStringMapHandler(f SecondServiceEchoStringMapFunc) zanzibar.TChannelHandler

NewSecondServiceEchoStringMapHandler wraps a handler function so it can be registered with a thrift server.

func NewSecondServiceEchoStringSetHandler

func NewSecondServiceEchoStringSetHandler(f SecondServiceEchoStringSetFunc) zanzibar.TChannelHandler

NewSecondServiceEchoStringSetHandler wraps a handler function so it can be registered with a thrift server.

func NewSecondServiceEchoStructListHandler

func NewSecondServiceEchoStructListHandler(f SecondServiceEchoStructListFunc) zanzibar.TChannelHandler

NewSecondServiceEchoStructListHandler wraps a handler function so it can be registered with a thrift server.

func NewSecondServiceEchoStructSetHandler

func NewSecondServiceEchoStructSetHandler(f SecondServiceEchoStructSetFunc) zanzibar.TChannelHandler

NewSecondServiceEchoStructSetHandler wraps a handler function so it can be registered with a thrift server.

func NewSecondServiceEchoTypedefHandler

func NewSecondServiceEchoTypedefHandler(f SecondServiceEchoTypedefFunc) zanzibar.TChannelHandler

NewSecondServiceEchoTypedefHandler wraps a handler function so it can be registered with a thrift server.

func NewSimpleServiceCallHandler

func NewSimpleServiceCallHandler(f SimpleServiceCallFunc) zanzibar.TChannelHandler

NewSimpleServiceCallHandler wraps a handler function so it can be registered with a thrift server.

func NewSimpleServiceCompareHandler

func NewSimpleServiceCompareHandler(f SimpleServiceCompareFunc) zanzibar.TChannelHandler

NewSimpleServiceCompareHandler wraps a handler function so it can be registered with a thrift server.

func NewSimpleServiceGetProfileHandler

func NewSimpleServiceGetProfileHandler(f SimpleServiceGetProfileFunc) zanzibar.TChannelHandler

NewSimpleServiceGetProfileHandler wraps a handler function so it can be registered with a thrift server.

func NewSimpleServiceHeaderSchemaHandler

func NewSimpleServiceHeaderSchemaHandler(f SimpleServiceHeaderSchemaFunc) zanzibar.TChannelHandler

NewSimpleServiceHeaderSchemaHandler wraps a handler function so it can be registered with a thrift server.

func NewSimpleServicePingHandler

func NewSimpleServicePingHandler(f SimpleServicePingFunc) zanzibar.TChannelHandler

NewSimpleServicePingHandler wraps a handler function so it can be registered with a thrift server.

func NewSimpleServiceSillyNoopHandler

func NewSimpleServiceSillyNoopHandler(f SimpleServiceSillyNoopFunc) zanzibar.TChannelHandler

NewSimpleServiceSillyNoopHandler wraps a handler function so it can be registered with a thrift server.

func NewSimpleServiceTestUUIDHandler

func NewSimpleServiceTestUUIDHandler(f SimpleServiceTestUUIDFunc) zanzibar.TChannelHandler

NewSimpleServiceTestUUIDHandler wraps a handler function so it can be registered with a thrift server.

func NewSimpleServiceTransHandler

func NewSimpleServiceTransHandler(f SimpleServiceTransFunc) zanzibar.TChannelHandler

NewSimpleServiceTransHandler wraps a handler function so it can be registered with a thrift server.

func NewSimpleServiceTransHeadersHandler

func NewSimpleServiceTransHeadersHandler(f SimpleServiceTransHeadersFunc) zanzibar.TChannelHandler

NewSimpleServiceTransHeadersHandler wraps a handler function so it can be registered with a thrift server.

func NewSimpleServiceTransHeadersNoReqHandler

func NewSimpleServiceTransHeadersNoReqHandler(f SimpleServiceTransHeadersNoReqFunc) zanzibar.TChannelHandler

NewSimpleServiceTransHeadersNoReqHandler wraps a handler function so it can be registered with a thrift server.

func NewSimpleServiceTransHeadersTypeHandler

func NewSimpleServiceTransHeadersTypeHandler(f SimpleServiceTransHeadersTypeFunc) zanzibar.TChannelHandler

NewSimpleServiceTransHeadersTypeHandler wraps a handler function so it can be registered with a thrift server.

func NewSimpleServiceURLTestHandler

func NewSimpleServiceURLTestHandler(f SimpleServiceURLTestFunc) zanzibar.TChannelHandler

NewSimpleServiceURLTestHandler wraps a handler function so it can be registered with a thrift server.

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 {
	EchoBinary(
		ctx context.Context,
		reqHeaders map[string]string,
		args *clientsIDlClientsBazBaz.SecondService_EchoBinary_Args,
	) (context.Context, []byte, map[string]string, error)
	EchoBool(
		ctx context.Context,
		reqHeaders map[string]string,
		args *clientsIDlClientsBazBaz.SecondService_EchoBool_Args,
	) (context.Context, bool, map[string]string, error)
	EchoDouble(
		ctx context.Context,
		reqHeaders map[string]string,
		args *clientsIDlClientsBazBaz.SecondService_EchoDouble_Args,
	) (context.Context, float64, map[string]string, error)
	EchoEnum(
		ctx context.Context,
		reqHeaders map[string]string,
		args *clientsIDlClientsBazBaz.SecondService_EchoEnum_Args,
	) (context.Context, clientsIDlClientsBazBaz.Fruit, map[string]string, error)
	EchoI16(
		ctx context.Context,
		reqHeaders map[string]string,
		args *clientsIDlClientsBazBaz.SecondService_EchoI16_Args,
	) (context.Context, int16, map[string]string, error)
	EchoI32(
		ctx context.Context,
		reqHeaders map[string]string,
		args *clientsIDlClientsBazBaz.SecondService_EchoI32_Args,
	) (context.Context, int32, map[string]string, error)
	EchoI64(
		ctx context.Context,
		reqHeaders map[string]string,
		args *clientsIDlClientsBazBaz.SecondService_EchoI64_Args,
	) (context.Context, int64, map[string]string, error)
	EchoI8(
		ctx context.Context,
		reqHeaders map[string]string,
		args *clientsIDlClientsBazBaz.SecondService_EchoI8_Args,
	) (context.Context, int8, map[string]string, error)
	EchoString(
		ctx context.Context,
		reqHeaders map[string]string,
		args *clientsIDlClientsBazBaz.SecondService_EchoString_Args,
	) (context.Context, string, map[string]string, error)
	EchoStringList(
		ctx context.Context,
		reqHeaders map[string]string,
		args *clientsIDlClientsBazBaz.SecondService_EchoStringList_Args,
	) (context.Context, []string, map[string]string, error)
	EchoStringMap(
		ctx context.Context,
		reqHeaders map[string]string,
		args *clientsIDlClientsBazBaz.SecondService_EchoStringMap_Args,
	) (context.Context, map[string]*clientsIDlClientsBazBase.BazResponse, map[string]string, error)
	EchoStringSet(
		ctx context.Context,
		reqHeaders map[string]string,
		args *clientsIDlClientsBazBaz.SecondService_EchoStringSet_Args,
	) (context.Context, map[string]struct{}, map[string]string, error)
	EchoStructList(
		ctx context.Context,
		reqHeaders map[string]string,
		args *clientsIDlClientsBazBaz.SecondService_EchoStructList_Args,
	) (context.Context, []*clientsIDlClientsBazBase.BazResponse, map[string]string, error)

	EchoStructSet(
		ctx context.Context,
		reqHeaders map[string]string,
		args *clientsIDlClientsBazBaz.SecondService_EchoStructSet_Args,
	) (context.Context, []*clientsIDlClientsBazBase.BazResponse, map[string]string, error)
	EchoTypedef(
		ctx context.Context,
		reqHeaders map[string]string,
		args *clientsIDlClientsBazBaz.SecondService_EchoTypedef_Args,
	) (context.Context, clientsIDlClientsBazBase.UUID, map[string]string, error)

	Call(
		ctx context.Context,
		reqHeaders map[string]string,
		args *clientsIDlClientsBazBaz.SimpleService_Call_Args,
	) (context.Context, map[string]string, error)
	Compare(
		ctx context.Context,
		reqHeaders map[string]string,
		args *clientsIDlClientsBazBaz.SimpleService_Compare_Args,
	) (context.Context, *clientsIDlClientsBazBase.BazResponse, map[string]string, error)
	GetProfile(
		ctx context.Context,
		reqHeaders map[string]string,
		args *clientsIDlClientsBazBaz.SimpleService_GetProfile_Args,
	) (context.Context, *clientsIDlClientsBazBaz.GetProfileResponse, map[string]string, error)
	HeaderSchema(
		ctx context.Context,
		reqHeaders map[string]string,
		args *clientsIDlClientsBazBaz.SimpleService_HeaderSchema_Args,
	) (context.Context, *clientsIDlClientsBazBaz.HeaderSchema, map[string]string, error)
	Ping(
		ctx context.Context,
		reqHeaders map[string]string,
	) (context.Context, *clientsIDlClientsBazBase.BazResponse, map[string]string, error)
	DeliberateDiffNoop(
		ctx context.Context,
		reqHeaders map[string]string,
	) (context.Context, map[string]string, error)
	TestUUID(
		ctx context.Context,
		reqHeaders map[string]string,
	) (context.Context, map[string]string, error)
	Trans(
		ctx context.Context,
		reqHeaders map[string]string,
		args *clientsIDlClientsBazBaz.SimpleService_Trans_Args,
	) (context.Context, *clientsIDlClientsBazBase.TransStruct, map[string]string, error)
	TransHeaders(
		ctx context.Context,
		reqHeaders map[string]string,
		args *clientsIDlClientsBazBaz.SimpleService_TransHeaders_Args,
	) (context.Context, *clientsIDlClientsBazBase.TransHeaders, map[string]string, error)
	TransHeadersNoReq(
		ctx context.Context,
		reqHeaders map[string]string,
		args *clientsIDlClientsBazBaz.SimpleService_TransHeadersNoReq_Args,
	) (context.Context, *clientsIDlClientsBazBase.TransHeaders, map[string]string, error)
	TransHeadersType(
		ctx context.Context,
		reqHeaders map[string]string,
		args *clientsIDlClientsBazBaz.SimpleService_TransHeadersType_Args,
	) (context.Context, *clientsIDlClientsBazBaz.TransHeaderType, map[string]string, error)
	URLTest(
		ctx context.Context,
		reqHeaders map[string]string,
	) (context.Context, map[string]string, error)
}

Client defines baz client interface.

func NewClient

func NewClient(deps *module.Dependencies) Client

NewClient returns a new TChannel client for service baz.

type SecondServiceEchoBinaryFunc

type SecondServiceEchoBinaryFunc func(
	ctx context.Context,
	reqHeaders map[string]string,
	args *clientsIDlClientsBazBaz.SecondService_EchoBinary_Args,
) ([]byte, map[string]string, error)

SecondServiceEchoBinaryFunc is the handler function for "echoBinary" method of thrift service "SecondService".

type SecondServiceEchoBinaryHandler

type SecondServiceEchoBinaryHandler struct {
	// contains filtered or unexported fields
}

SecondServiceEchoBinaryHandler handles the "echoBinary" method call of thrift service "SecondService".

func (*SecondServiceEchoBinaryHandler) Handle

func (h *SecondServiceEchoBinaryHandler) Handle(
	ctx context.Context,
	reqHeaders map[string]string,
	wireValue *wire.Value,
) (context.Context, bool, zanzibar.RWTStruct, map[string]string, error)

Handle parses request from wire value and calls corresponding handler function.

type SecondServiceEchoBoolFunc

type SecondServiceEchoBoolFunc func(
	ctx context.Context,
	reqHeaders map[string]string,
	args *clientsIDlClientsBazBaz.SecondService_EchoBool_Args,
) (bool, map[string]string, error)

SecondServiceEchoBoolFunc is the handler function for "echoBool" method of thrift service "SecondService".

type SecondServiceEchoBoolHandler

type SecondServiceEchoBoolHandler struct {
	// contains filtered or unexported fields
}

SecondServiceEchoBoolHandler handles the "echoBool" method call of thrift service "SecondService".

func (*SecondServiceEchoBoolHandler) Handle

func (h *SecondServiceEchoBoolHandler) Handle(
	ctx context.Context,
	reqHeaders map[string]string,
	wireValue *wire.Value,
) (context.Context, bool, zanzibar.RWTStruct, map[string]string, error)

Handle parses request from wire value and calls corresponding handler function.

type SecondServiceEchoDoubleFunc

type SecondServiceEchoDoubleFunc func(
	ctx context.Context,
	reqHeaders map[string]string,
	args *clientsIDlClientsBazBaz.SecondService_EchoDouble_Args,
) (float64, map[string]string, error)

SecondServiceEchoDoubleFunc is the handler function for "echoDouble" method of thrift service "SecondService".

type SecondServiceEchoDoubleHandler

type SecondServiceEchoDoubleHandler struct {
	// contains filtered or unexported fields
}

SecondServiceEchoDoubleHandler handles the "echoDouble" method call of thrift service "SecondService".

func (*SecondServiceEchoDoubleHandler) Handle

func (h *SecondServiceEchoDoubleHandler) Handle(
	ctx context.Context,
	reqHeaders map[string]string,
	wireValue *wire.Value,
) (context.Context, bool, zanzibar.RWTStruct, map[string]string, error)

Handle parses request from wire value and calls corresponding handler function.

type SecondServiceEchoEnumFunc

type SecondServiceEchoEnumFunc func(
	ctx context.Context,
	reqHeaders map[string]string,
	args *clientsIDlClientsBazBaz.SecondService_EchoEnum_Args,
) (clientsIDlClientsBazBaz.Fruit, map[string]string, error)

SecondServiceEchoEnumFunc is the handler function for "echoEnum" method of thrift service "SecondService".

type SecondServiceEchoEnumHandler

type SecondServiceEchoEnumHandler struct {
	// contains filtered or unexported fields
}

SecondServiceEchoEnumHandler handles the "echoEnum" method call of thrift service "SecondService".

func (*SecondServiceEchoEnumHandler) Handle

func (h *SecondServiceEchoEnumHandler) Handle(
	ctx context.Context,
	reqHeaders map[string]string,
	wireValue *wire.Value,
) (context.Context, bool, zanzibar.RWTStruct, map[string]string, error)

Handle parses request from wire value and calls corresponding handler function.

type SecondServiceEchoI16Func

type SecondServiceEchoI16Func func(
	ctx context.Context,
	reqHeaders map[string]string,
	args *clientsIDlClientsBazBaz.SecondService_EchoI16_Args,
) (int16, map[string]string, error)

SecondServiceEchoI16Func is the handler function for "echoI16" method of thrift service "SecondService".

type SecondServiceEchoI16Handler

type SecondServiceEchoI16Handler struct {
	// contains filtered or unexported fields
}

SecondServiceEchoI16Handler handles the "echoI16" method call of thrift service "SecondService".

func (*SecondServiceEchoI16Handler) Handle

func (h *SecondServiceEchoI16Handler) Handle(
	ctx context.Context,
	reqHeaders map[string]string,
	wireValue *wire.Value,
) (context.Context, bool, zanzibar.RWTStruct, map[string]string, error)

Handle parses request from wire value and calls corresponding handler function.

type SecondServiceEchoI32Func

type SecondServiceEchoI32Func func(
	ctx context.Context,
	reqHeaders map[string]string,
	args *clientsIDlClientsBazBaz.SecondService_EchoI32_Args,
) (int32, map[string]string, error)

SecondServiceEchoI32Func is the handler function for "echoI32" method of thrift service "SecondService".

type SecondServiceEchoI32Handler

type SecondServiceEchoI32Handler struct {
	// contains filtered or unexported fields
}

SecondServiceEchoI32Handler handles the "echoI32" method call of thrift service "SecondService".

func (*SecondServiceEchoI32Handler) Handle

func (h *SecondServiceEchoI32Handler) Handle(
	ctx context.Context,
	reqHeaders map[string]string,
	wireValue *wire.Value,
) (context.Context, bool, zanzibar.RWTStruct, map[string]string, error)

Handle parses request from wire value and calls corresponding handler function.

type SecondServiceEchoI64Func

type SecondServiceEchoI64Func func(
	ctx context.Context,
	reqHeaders map[string]string,
	args *clientsIDlClientsBazBaz.SecondService_EchoI64_Args,
) (int64, map[string]string, error)

SecondServiceEchoI64Func is the handler function for "echoI64" method of thrift service "SecondService".

type SecondServiceEchoI64Handler

type SecondServiceEchoI64Handler struct {
	// contains filtered or unexported fields
}

SecondServiceEchoI64Handler handles the "echoI64" method call of thrift service "SecondService".

func (*SecondServiceEchoI64Handler) Handle

func (h *SecondServiceEchoI64Handler) Handle(
	ctx context.Context,
	reqHeaders map[string]string,
	wireValue *wire.Value,
) (context.Context, bool, zanzibar.RWTStruct, map[string]string, error)

Handle parses request from wire value and calls corresponding handler function.

type SecondServiceEchoI8Func

type SecondServiceEchoI8Func func(
	ctx context.Context,
	reqHeaders map[string]string,
	args *clientsIDlClientsBazBaz.SecondService_EchoI8_Args,
) (int8, map[string]string, error)

SecondServiceEchoI8Func is the handler function for "echoI8" method of thrift service "SecondService".

type SecondServiceEchoI8Handler

type SecondServiceEchoI8Handler struct {
	// contains filtered or unexported fields
}

SecondServiceEchoI8Handler handles the "echoI8" method call of thrift service "SecondService".

func (*SecondServiceEchoI8Handler) Handle

func (h *SecondServiceEchoI8Handler) Handle(
	ctx context.Context,
	reqHeaders map[string]string,
	wireValue *wire.Value,
) (context.Context, bool, zanzibar.RWTStruct, map[string]string, error)

Handle parses request from wire value and calls corresponding handler function.

type SecondServiceEchoStringFunc

type SecondServiceEchoStringFunc func(
	ctx context.Context,
	reqHeaders map[string]string,
	args *clientsIDlClientsBazBaz.SecondService_EchoString_Args,
) (string, map[string]string, error)

SecondServiceEchoStringFunc is the handler function for "echoString" method of thrift service "SecondService".

type SecondServiceEchoStringHandler

type SecondServiceEchoStringHandler struct {
	// contains filtered or unexported fields
}

SecondServiceEchoStringHandler handles the "echoString" method call of thrift service "SecondService".

func (*SecondServiceEchoStringHandler) Handle

func (h *SecondServiceEchoStringHandler) Handle(
	ctx context.Context,
	reqHeaders map[string]string,
	wireValue *wire.Value,
) (context.Context, bool, zanzibar.RWTStruct, map[string]string, error)

Handle parses request from wire value and calls corresponding handler function.

type SecondServiceEchoStringListFunc

type SecondServiceEchoStringListFunc func(
	ctx context.Context,
	reqHeaders map[string]string,
	args *clientsIDlClientsBazBaz.SecondService_EchoStringList_Args,
) ([]string, map[string]string, error)

SecondServiceEchoStringListFunc is the handler function for "echoStringList" method of thrift service "SecondService".

type SecondServiceEchoStringListHandler

type SecondServiceEchoStringListHandler struct {
	// contains filtered or unexported fields
}

SecondServiceEchoStringListHandler handles the "echoStringList" method call of thrift service "SecondService".

func (*SecondServiceEchoStringListHandler) Handle

Handle parses request from wire value and calls corresponding handler function.

type SecondServiceEchoStringMapFunc

type SecondServiceEchoStringMapFunc func(
	ctx context.Context,
	reqHeaders map[string]string,
	args *clientsIDlClientsBazBaz.SecondService_EchoStringMap_Args,
) (map[string]*clientsIDlClientsBazBase.BazResponse, map[string]string, error)

SecondServiceEchoStringMapFunc is the handler function for "echoStringMap" method of thrift service "SecondService".

type SecondServiceEchoStringMapHandler

type SecondServiceEchoStringMapHandler struct {
	// contains filtered or unexported fields
}

SecondServiceEchoStringMapHandler handles the "echoStringMap" method call of thrift service "SecondService".

func (*SecondServiceEchoStringMapHandler) Handle

Handle parses request from wire value and calls corresponding handler function.

type SecondServiceEchoStringSetFunc

type SecondServiceEchoStringSetFunc func(
	ctx context.Context,
	reqHeaders map[string]string,
	args *clientsIDlClientsBazBaz.SecondService_EchoStringSet_Args,
) (map[string]struct{}, map[string]string, error)

SecondServiceEchoStringSetFunc is the handler function for "echoStringSet" method of thrift service "SecondService".

type SecondServiceEchoStringSetHandler

type SecondServiceEchoStringSetHandler struct {
	// contains filtered or unexported fields
}

SecondServiceEchoStringSetHandler handles the "echoStringSet" method call of thrift service "SecondService".

func (*SecondServiceEchoStringSetHandler) Handle

Handle parses request from wire value and calls corresponding handler function.

type SecondServiceEchoStructListFunc

type SecondServiceEchoStructListFunc func(
	ctx context.Context,
	reqHeaders map[string]string,
	args *clientsIDlClientsBazBaz.SecondService_EchoStructList_Args,
) ([]*clientsIDlClientsBazBase.BazResponse, map[string]string, error)

SecondServiceEchoStructListFunc is the handler function for "echoStructList" method of thrift service "SecondService".

type SecondServiceEchoStructListHandler

type SecondServiceEchoStructListHandler struct {
	// contains filtered or unexported fields
}

SecondServiceEchoStructListHandler handles the "echoStructList" method call of thrift service "SecondService".

func (*SecondServiceEchoStructListHandler) Handle

Handle parses request from wire value and calls corresponding handler function.

type SecondServiceEchoStructSetFunc

type SecondServiceEchoStructSetFunc func(
	ctx context.Context,
	reqHeaders map[string]string,
	args *clientsIDlClientsBazBaz.SecondService_EchoStructSet_Args,
) ([]*clientsIDlClientsBazBase.BazResponse, map[string]string, error)

SecondServiceEchoStructSetFunc is the handler function for "echoStructSet" method of thrift service "SecondService".

type SecondServiceEchoStructSetHandler

type SecondServiceEchoStructSetHandler struct {
	// contains filtered or unexported fields
}

SecondServiceEchoStructSetHandler handles the "echoStructSet" method call of thrift service "SecondService".

func (*SecondServiceEchoStructSetHandler) Handle

Handle parses request from wire value and calls corresponding handler function.

type SecondServiceEchoTypedefFunc

type SecondServiceEchoTypedefFunc func(
	ctx context.Context,
	reqHeaders map[string]string,
	args *clientsIDlClientsBazBaz.SecondService_EchoTypedef_Args,
) (clientsIDlClientsBazBase.UUID, map[string]string, error)

SecondServiceEchoTypedefFunc is the handler function for "echoTypedef" method of thrift service "SecondService".

type SecondServiceEchoTypedefHandler

type SecondServiceEchoTypedefHandler struct {
	// contains filtered or unexported fields
}

SecondServiceEchoTypedefHandler handles the "echoTypedef" method call of thrift service "SecondService".

func (*SecondServiceEchoTypedefHandler) Handle

func (h *SecondServiceEchoTypedefHandler) Handle(
	ctx context.Context,
	reqHeaders map[string]string,
	wireValue *wire.Value,
) (context.Context, bool, zanzibar.RWTStruct, map[string]string, error)

Handle parses request from wire value and calls corresponding handler function.

type SimpleServiceCallFunc

type SimpleServiceCallFunc func(
	ctx context.Context,
	reqHeaders map[string]string,
	args *clientsIDlClientsBazBaz.SimpleService_Call_Args,
) (map[string]string, error)

SimpleServiceCallFunc is the handler function for "call" method of thrift service "SimpleService".

type SimpleServiceCallHandler

type SimpleServiceCallHandler struct {
	// contains filtered or unexported fields
}

SimpleServiceCallHandler handles the "call" method call of thrift service "SimpleService".

func (*SimpleServiceCallHandler) Handle

func (h *SimpleServiceCallHandler) Handle(
	ctx context.Context,
	reqHeaders map[string]string,
	wireValue *wire.Value,
) (context.Context, bool, zanzibar.RWTStruct, map[string]string, error)

Handle parses request from wire value and calls corresponding handler function.

type SimpleServiceCompareFunc

type SimpleServiceCompareFunc func(
	ctx context.Context,
	reqHeaders map[string]string,
	args *clientsIDlClientsBazBaz.SimpleService_Compare_Args,
) (*clientsIDlClientsBazBase.BazResponse, map[string]string, error)

SimpleServiceCompareFunc is the handler function for "compare" method of thrift service "SimpleService".

type SimpleServiceCompareHandler

type SimpleServiceCompareHandler struct {
	// contains filtered or unexported fields
}

SimpleServiceCompareHandler handles the "compare" method call of thrift service "SimpleService".

func (*SimpleServiceCompareHandler) Handle

func (h *SimpleServiceCompareHandler) Handle(
	ctx context.Context,
	reqHeaders map[string]string,
	wireValue *wire.Value,
) (context.Context, bool, zanzibar.RWTStruct, map[string]string, error)

Handle parses request from wire value and calls corresponding handler function.

type SimpleServiceGetProfileFunc

SimpleServiceGetProfileFunc is the handler function for "getProfile" method of thrift service "SimpleService".

type SimpleServiceGetProfileHandler

type SimpleServiceGetProfileHandler struct {
	// contains filtered or unexported fields
}

SimpleServiceGetProfileHandler handles the "getProfile" method call of thrift service "SimpleService".

func (*SimpleServiceGetProfileHandler) Handle

func (h *SimpleServiceGetProfileHandler) Handle(
	ctx context.Context,
	reqHeaders map[string]string,
	wireValue *wire.Value,
) (context.Context, bool, zanzibar.RWTStruct, map[string]string, error)

Handle parses request from wire value and calls corresponding handler function.

type SimpleServiceHeaderSchemaFunc

type SimpleServiceHeaderSchemaFunc func(
	ctx context.Context,
	reqHeaders map[string]string,
	args *clientsIDlClientsBazBaz.SimpleService_HeaderSchema_Args,
) (*clientsIDlClientsBazBaz.HeaderSchema, map[string]string, error)

SimpleServiceHeaderSchemaFunc is the handler function for "headerSchema" method of thrift service "SimpleService".

type SimpleServiceHeaderSchemaHandler

type SimpleServiceHeaderSchemaHandler struct {
	// contains filtered or unexported fields
}

SimpleServiceHeaderSchemaHandler handles the "headerSchema" method call of thrift service "SimpleService".

func (*SimpleServiceHeaderSchemaHandler) Handle

Handle parses request from wire value and calls corresponding handler function.

type SimpleServicePingFunc

type SimpleServicePingFunc func(
	ctx context.Context,
	reqHeaders map[string]string,
) (*clientsIDlClientsBazBase.BazResponse, map[string]string, error)

SimpleServicePingFunc is the handler function for "ping" method of thrift service "SimpleService".

type SimpleServicePingHandler

type SimpleServicePingHandler struct {
	// contains filtered or unexported fields
}

SimpleServicePingHandler handles the "ping" method call of thrift service "SimpleService".

func (*SimpleServicePingHandler) Handle

func (h *SimpleServicePingHandler) Handle(
	ctx context.Context,
	reqHeaders map[string]string,
	wireValue *wire.Value,
) (context.Context, bool, zanzibar.RWTStruct, map[string]string, error)

Handle parses request from wire value and calls corresponding handler function.

type SimpleServiceSillyNoopFunc

type SimpleServiceSillyNoopFunc func(
	ctx context.Context,
	reqHeaders map[string]string,
) (map[string]string, error)

SimpleServiceSillyNoopFunc is the handler function for "sillyNoop" method of thrift service "SimpleService".

type SimpleServiceSillyNoopHandler

type SimpleServiceSillyNoopHandler struct {
	// contains filtered or unexported fields
}

SimpleServiceSillyNoopHandler handles the "sillyNoop" method call of thrift service "SimpleService".

func (*SimpleServiceSillyNoopHandler) Handle

func (h *SimpleServiceSillyNoopHandler) Handle(
	ctx context.Context,
	reqHeaders map[string]string,
	wireValue *wire.Value,
) (context.Context, bool, zanzibar.RWTStruct, map[string]string, error)

Handle parses request from wire value and calls corresponding handler function.

type SimpleServiceTestUUIDFunc

type SimpleServiceTestUUIDFunc func(
	ctx context.Context,
	reqHeaders map[string]string,
) (map[string]string, error)

SimpleServiceTestUUIDFunc is the handler function for "testUuid" method of thrift service "SimpleService".

type SimpleServiceTestUUIDHandler

type SimpleServiceTestUUIDHandler struct {
	// contains filtered or unexported fields
}

SimpleServiceTestUUIDHandler handles the "testUuid" method call of thrift service "SimpleService".

func (*SimpleServiceTestUUIDHandler) Handle

func (h *SimpleServiceTestUUIDHandler) Handle(
	ctx context.Context,
	reqHeaders map[string]string,
	wireValue *wire.Value,
) (context.Context, bool, zanzibar.RWTStruct, map[string]string, error)

Handle parses request from wire value and calls corresponding handler function.

type SimpleServiceTransFunc

type SimpleServiceTransFunc func(
	ctx context.Context,
	reqHeaders map[string]string,
	args *clientsIDlClientsBazBaz.SimpleService_Trans_Args,
) (*clientsIDlClientsBazBase.TransStruct, map[string]string, error)

SimpleServiceTransFunc is the handler function for "trans" method of thrift service "SimpleService".

type SimpleServiceTransHandler

type SimpleServiceTransHandler struct {
	// contains filtered or unexported fields
}

SimpleServiceTransHandler handles the "trans" method call of thrift service "SimpleService".

func (*SimpleServiceTransHandler) Handle

func (h *SimpleServiceTransHandler) Handle(
	ctx context.Context,
	reqHeaders map[string]string,
	wireValue *wire.Value,
) (context.Context, bool, zanzibar.RWTStruct, map[string]string, error)

Handle parses request from wire value and calls corresponding handler function.

type SimpleServiceTransHeadersFunc

type SimpleServiceTransHeadersFunc func(
	ctx context.Context,
	reqHeaders map[string]string,
	args *clientsIDlClientsBazBaz.SimpleService_TransHeaders_Args,
) (*clientsIDlClientsBazBase.TransHeaders, map[string]string, error)

SimpleServiceTransHeadersFunc is the handler function for "transHeaders" method of thrift service "SimpleService".

type SimpleServiceTransHeadersHandler

type SimpleServiceTransHeadersHandler struct {
	// contains filtered or unexported fields
}

SimpleServiceTransHeadersHandler handles the "transHeaders" method call of thrift service "SimpleService".

func (*SimpleServiceTransHeadersHandler) Handle

Handle parses request from wire value and calls corresponding handler function.

type SimpleServiceTransHeadersNoReqFunc

type SimpleServiceTransHeadersNoReqFunc func(
	ctx context.Context,
	reqHeaders map[string]string,
	args *clientsIDlClientsBazBaz.SimpleService_TransHeadersNoReq_Args,
) (*clientsIDlClientsBazBase.TransHeaders, map[string]string, error)

SimpleServiceTransHeadersNoReqFunc is the handler function for "transHeadersNoReq" method of thrift service "SimpleService".

type SimpleServiceTransHeadersNoReqHandler

type SimpleServiceTransHeadersNoReqHandler struct {
	// contains filtered or unexported fields
}

SimpleServiceTransHeadersNoReqHandler handles the "transHeadersNoReq" method call of thrift service "SimpleService".

func (*SimpleServiceTransHeadersNoReqHandler) Handle

Handle parses request from wire value and calls corresponding handler function.

type SimpleServiceTransHeadersTypeFunc

type SimpleServiceTransHeadersTypeFunc func(
	ctx context.Context,
	reqHeaders map[string]string,
	args *clientsIDlClientsBazBaz.SimpleService_TransHeadersType_Args,
) (*clientsIDlClientsBazBaz.TransHeaderType, map[string]string, error)

SimpleServiceTransHeadersTypeFunc is the handler function for "transHeadersType" method of thrift service "SimpleService".

type SimpleServiceTransHeadersTypeHandler

type SimpleServiceTransHeadersTypeHandler struct {
	// contains filtered or unexported fields
}

SimpleServiceTransHeadersTypeHandler handles the "transHeadersType" method call of thrift service "SimpleService".

func (*SimpleServiceTransHeadersTypeHandler) Handle

Handle parses request from wire value and calls corresponding handler function.

type SimpleServiceURLTestFunc

type SimpleServiceURLTestFunc func(
	ctx context.Context,
	reqHeaders map[string]string,
) (map[string]string, error)

SimpleServiceURLTestFunc is the handler function for "urlTest" method of thrift service "SimpleService".

type SimpleServiceURLTestHandler

type SimpleServiceURLTestHandler struct {
	// contains filtered or unexported fields
}

SimpleServiceURLTestHandler handles the "urlTest" method call of thrift service "SimpleService".

func (*SimpleServiceURLTestHandler) Handle

func (h *SimpleServiceURLTestHandler) Handle(
	ctx context.Context,
	reqHeaders map[string]string,
	wireValue *wire.Value,
) (context.Context, bool, zanzibar.RWTStruct, map[string]string, error)

Handle parses request from wire value and calls corresponding handler function.

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