func (h handler) Echo( ctx context.Context, reqMeta yarpc.ReqMeta, body wire.Value, ) (thrift.Response, error) { var args echo.Echo_Echo_Args if err := args.FromWire(body); err != nil { return thrift.Response{}, err } success, resMeta, err := h.impl.Echo(ctx, reqMeta, args.Ping) hadError := err != nil result, err := echo.Echo_Echo_Helper.WrapResponse(success, err) var response thrift.Response if err == nil { response.IsApplicationError = hadError response.Meta = resMeta response.Body = result } return response, err }
func (h handler) TestVoid( ctx context.Context, reqMeta yarpc.ReqMeta, body wire.Value, ) (thrift.Response, error) { var args gauntlet.ThriftTest_TestVoid_Args if err := args.FromWire(body); err != nil { return thrift.Response{}, err } resMeta, err := h.impl.TestVoid(ctx, reqMeta) hadError := err != nil result, err := gauntlet.ThriftTest_TestVoid_Helper.WrapResponse(err) var response thrift.Response if err == nil { response.IsApplicationError = hadError response.Meta = resMeta response.Body = result } return response, err }
func (h handler) SetValue( ctx context.Context, reqMeta yarpc.ReqMeta, body wire.Value, ) (thrift.Response, error) { var args kv.KeyValue_SetValue_Args if err := args.FromWire(body); err != nil { return thrift.Response{}, err } resMeta, err := h.impl.SetValue(ctx, reqMeta, args.Key, args.Value) hadError := err != nil result, err := kv.KeyValue_SetValue_Helper.WrapResponse(err) var response thrift.Response if err == nil { response.IsApplicationError = hadError response.Meta = resMeta response.Body = result } return response, err }
func (h handler) SecondtestString( ctx context.Context, reqMeta yarpc.ReqMeta, body wire.Value, ) (thrift.Response, error) { var args gauntlet.SecondService_SecondtestString_Args if err := args.FromWire(body); err != nil { return thrift.Response{}, err } success, resMeta, err := h.impl.SecondtestString(ctx, reqMeta, args.Thing) hadError := err != nil result, err := gauntlet.SecondService_SecondtestString_Helper.WrapResponse(success, err) var response thrift.Response if err == nil { response.IsApplicationError = hadError response.Meta = resMeta response.Body = result } return response, err }