multi

package
v0.0.0-...-78da9c4 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ServiceABack_HelloA_Helper = struct {
	// Args accepts the parameters of helloA in-order and returns
	// the arguments struct for the function.
	Args func() *ServiceABack_HelloA_Args

	// IsException returns true if the given error can be thrown
	// by helloA.
	//
	// An error can be thrown by helloA only if the
	// corresponding exception type was mentioned in the 'throws'
	// section for it in the Thrift file.
	IsException func(error) bool

	// WrapResponse returns the result struct for helloA
	// given its return value and error.
	//
	// This allows mapping values and errors returned by
	// helloA into a serializable result struct.
	// WrapResponse returns a non-nil error if the provided
	// error cannot be thrown by helloA
	//
	//   value, err := helloA(args)
	//   result, err := ServiceABack_HelloA_Helper.WrapResponse(value, err)
	//   if err != nil {
	//     return fmt.Errorf("unexpected error from helloA: %v", err)
	//   }
	//   serialize(result)
	WrapResponse func(string, error) (*ServiceABack_HelloA_Result, error)

	// UnwrapResponse takes the result struct for helloA
	// and returns the value or error returned by it.
	//
	// The error is non-nil only if helloA threw an
	// exception.
	//
	//   result := deserialize(bytes)
	//   value, err := ServiceABack_HelloA_Helper.UnwrapResponse(result)
	UnwrapResponse func(*ServiceABack_HelloA_Result) (string, error)
}{}

ServiceABack_HelloA_Helper provides functions that aid in handling the parameters and return values of the ServiceABack.helloA function.

View Source
var ServiceBBack_HelloB_Helper = struct {
	// Args accepts the parameters of helloB in-order and returns
	// the arguments struct for the function.
	Args func() *ServiceBBack_HelloB_Args

	// IsException returns true if the given error can be thrown
	// by helloB.
	//
	// An error can be thrown by helloB only if the
	// corresponding exception type was mentioned in the 'throws'
	// section for it in the Thrift file.
	IsException func(error) bool

	// WrapResponse returns the result struct for helloB
	// given its return value and error.
	//
	// This allows mapping values and errors returned by
	// helloB into a serializable result struct.
	// WrapResponse returns a non-nil error if the provided
	// error cannot be thrown by helloB
	//
	//   value, err := helloB(args)
	//   result, err := ServiceBBack_HelloB_Helper.WrapResponse(value, err)
	//   if err != nil {
	//     return fmt.Errorf("unexpected error from helloB: %v", err)
	//   }
	//   serialize(result)
	WrapResponse func(string, error) (*ServiceBBack_HelloB_Result, error)

	// UnwrapResponse takes the result struct for helloB
	// and returns the value or error returned by it.
	//
	// The error is non-nil only if helloB threw an
	// exception.
	//
	//   result := deserialize(bytes)
	//   value, err := ServiceBBack_HelloB_Helper.UnwrapResponse(result)
	UnwrapResponse func(*ServiceBBack_HelloB_Result) (string, error)
}{}

ServiceBBack_HelloB_Helper provides functions that aid in handling the parameters and return values of the ServiceBBack.helloB function.

View Source
var ServiceCBack_Hello_Helper = struct {
	// Args accepts the parameters of hello in-order and returns
	// the arguments struct for the function.
	Args func() *ServiceCBack_Hello_Args

	// IsException returns true if the given error can be thrown
	// by hello.
	//
	// An error can be thrown by hello only if the
	// corresponding exception type was mentioned in the 'throws'
	// section for it in the Thrift file.
	IsException func(error) bool

	// WrapResponse returns the result struct for hello
	// given its return value and error.
	//
	// This allows mapping values and errors returned by
	// hello into a serializable result struct.
	// WrapResponse returns a non-nil error if the provided
	// error cannot be thrown by hello
	//
	//   value, err := hello(args)
	//   result, err := ServiceCBack_Hello_Helper.WrapResponse(value, err)
	//   if err != nil {
	//     return fmt.Errorf("unexpected error from hello: %v", err)
	//   }
	//   serialize(result)
	WrapResponse func(string, error) (*ServiceCBack_Hello_Result, error)

	// UnwrapResponse takes the result struct for hello
	// and returns the value or error returned by it.
	//
	// The error is non-nil only if hello threw an
	// exception.
	//
	//   result := deserialize(bytes)
	//   value, err := ServiceCBack_Hello_Helper.UnwrapResponse(result)
	UnwrapResponse func(*ServiceCBack_Hello_Result) (string, error)
}{}

ServiceCBack_Hello_Helper provides functions that aid in handling the parameters and return values of the ServiceCBack.hello function.

Functions

This section is empty.

Types

type ServiceABack_HelloA_Args

type ServiceABack_HelloA_Args struct {
}

ServiceABack_HelloA_Args represents the arguments for the ServiceABack.helloA function.

The arguments for helloA are sent and received over the wire as this struct.

func (*ServiceABack_HelloA_Args) Decode

Decode deserializes a ServiceABack_HelloA_Args struct directly from its Thrift-level representation, without going through an intemediary type.

An error is returned if a ServiceABack_HelloA_Args struct could not be generated from the wire representation.

func (*ServiceABack_HelloA_Args) Encode

Encode serializes a ServiceABack_HelloA_Args struct directly into bytes, without going through an intermediary type.

An error is returned if a ServiceABack_HelloA_Args struct could not be encoded.

func (*ServiceABack_HelloA_Args) EnvelopeType

func (v *ServiceABack_HelloA_Args) EnvelopeType() wire.EnvelopeType

EnvelopeType returns the kind of value inside this struct.

This will always be Call for this struct.

func (*ServiceABack_HelloA_Args) Equals

Equals returns true if all the fields of this ServiceABack_HelloA_Args match the provided ServiceABack_HelloA_Args.

This function performs a deep comparison.

func (*ServiceABack_HelloA_Args) FromWire

func (v *ServiceABack_HelloA_Args) FromWire(w wire.Value) error

FromWire deserializes a ServiceABack_HelloA_Args struct from its Thrift-level representation. The Thrift-level representation may be obtained from a ThriftRW protocol implementation.

An error is returned if we were unable to build a ServiceABack_HelloA_Args struct from the provided intermediate representation.

x, err := binaryProtocol.Decode(reader, wire.TStruct)
if err != nil {
  return nil, err
}

var v ServiceABack_HelloA_Args
if err := v.FromWire(x); err != nil {
  return nil, err
}
return &v, nil

func (ServiceABack_HelloA_Args) MarshalEasyJSON

func (v ServiceABack_HelloA_Args) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ServiceABack_HelloA_Args) MarshalJSON

func (v ServiceABack_HelloA_Args) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ServiceABack_HelloA_Args) MarshalLogObject

func (v *ServiceABack_HelloA_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)

MarshalLogObject implements zapcore.ObjectMarshaler, enabling fast logging of ServiceABack_HelloA_Args.

func (*ServiceABack_HelloA_Args) MethodName

func (v *ServiceABack_HelloA_Args) MethodName() string

MethodName returns the name of the Thrift function as specified in the IDL, for which this struct represent the arguments.

This will always be "helloA" for this struct.

func (*ServiceABack_HelloA_Args) String

func (v *ServiceABack_HelloA_Args) String() string

String returns a readable string representation of a ServiceABack_HelloA_Args struct.

func (*ServiceABack_HelloA_Args) ToWire

func (v *ServiceABack_HelloA_Args) ToWire() (wire.Value, error)

ToWire translates a ServiceABack_HelloA_Args struct into a Thrift-level intermediate representation. This intermediate representation may be serialized into bytes using a ThriftRW protocol implementation.

An error is returned if the struct or any of its fields failed to validate.

x, err := v.ToWire()
if err != nil {
  return err
}

if err := binaryProtocol.Encode(x, writer); err != nil {
  return err
}

func (*ServiceABack_HelloA_Args) UnmarshalEasyJSON

func (v *ServiceABack_HelloA_Args) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ServiceABack_HelloA_Args) UnmarshalJSON

func (v *ServiceABack_HelloA_Args) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ServiceABack_HelloA_Result

type ServiceABack_HelloA_Result struct {
	// Value returned by helloA after a successful execution.
	Success *string `json:"success,omitempty"`
}

ServiceABack_HelloA_Result represents the result of a ServiceABack.helloA function call.

The result of a helloA execution is sent and received over the wire as this struct.

Success is set only if the function did not throw an exception.

func (*ServiceABack_HelloA_Result) Decode

Decode deserializes a ServiceABack_HelloA_Result struct directly from its Thrift-level representation, without going through an intemediary type.

An error is returned if a ServiceABack_HelloA_Result struct could not be generated from the wire representation.

func (*ServiceABack_HelloA_Result) Encode

Encode serializes a ServiceABack_HelloA_Result struct directly into bytes, without going through an intermediary type.

An error is returned if a ServiceABack_HelloA_Result struct could not be encoded.

func (*ServiceABack_HelloA_Result) EnvelopeType

func (v *ServiceABack_HelloA_Result) EnvelopeType() wire.EnvelopeType

EnvelopeType returns the kind of value inside this struct.

This will always be Reply for this struct.

func (*ServiceABack_HelloA_Result) Equals

Equals returns true if all the fields of this ServiceABack_HelloA_Result match the provided ServiceABack_HelloA_Result.

This function performs a deep comparison.

func (*ServiceABack_HelloA_Result) FromWire

func (v *ServiceABack_HelloA_Result) FromWire(w wire.Value) error

FromWire deserializes a ServiceABack_HelloA_Result struct from its Thrift-level representation. The Thrift-level representation may be obtained from a ThriftRW protocol implementation.

An error is returned if we were unable to build a ServiceABack_HelloA_Result struct from the provided intermediate representation.

x, err := binaryProtocol.Decode(reader, wire.TStruct)
if err != nil {
  return nil, err
}

var v ServiceABack_HelloA_Result
if err := v.FromWire(x); err != nil {
  return nil, err
}
return &v, nil

func (*ServiceABack_HelloA_Result) GetSuccess

func (v *ServiceABack_HelloA_Result) GetSuccess() (o string)

GetSuccess returns the value of Success if it is set or its zero value if it is unset.

func (*ServiceABack_HelloA_Result) IsSetSuccess

func (v *ServiceABack_HelloA_Result) IsSetSuccess() bool

IsSetSuccess returns true if Success is not nil.

func (ServiceABack_HelloA_Result) MarshalEasyJSON

func (v ServiceABack_HelloA_Result) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ServiceABack_HelloA_Result) MarshalJSON

func (v ServiceABack_HelloA_Result) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ServiceABack_HelloA_Result) MarshalLogObject

func (v *ServiceABack_HelloA_Result) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)

MarshalLogObject implements zapcore.ObjectMarshaler, enabling fast logging of ServiceABack_HelloA_Result.

func (*ServiceABack_HelloA_Result) MethodName

func (v *ServiceABack_HelloA_Result) MethodName() string

MethodName returns the name of the Thrift function as specified in the IDL, for which this struct represent the result.

This will always be "helloA" for this struct.

func (*ServiceABack_HelloA_Result) String

func (v *ServiceABack_HelloA_Result) String() string

String returns a readable string representation of a ServiceABack_HelloA_Result struct.

func (*ServiceABack_HelloA_Result) ToWire

func (v *ServiceABack_HelloA_Result) ToWire() (wire.Value, error)

ToWire translates a ServiceABack_HelloA_Result struct into a Thrift-level intermediate representation. This intermediate representation may be serialized into bytes using a ThriftRW protocol implementation.

An error is returned if the struct or any of its fields failed to validate.

x, err := v.ToWire()
if err != nil {
  return err
}

if err := binaryProtocol.Encode(x, writer); err != nil {
  return err
}

func (*ServiceABack_HelloA_Result) UnmarshalEasyJSON

func (v *ServiceABack_HelloA_Result) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ServiceABack_HelloA_Result) UnmarshalJSON

func (v *ServiceABack_HelloA_Result) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ServiceBBack_HelloB_Args

type ServiceBBack_HelloB_Args struct {
}

ServiceBBack_HelloB_Args represents the arguments for the ServiceBBack.helloB function.

The arguments for helloB are sent and received over the wire as this struct.

func (*ServiceBBack_HelloB_Args) Decode

Decode deserializes a ServiceBBack_HelloB_Args struct directly from its Thrift-level representation, without going through an intemediary type.

An error is returned if a ServiceBBack_HelloB_Args struct could not be generated from the wire representation.

func (*ServiceBBack_HelloB_Args) Encode

Encode serializes a ServiceBBack_HelloB_Args struct directly into bytes, without going through an intermediary type.

An error is returned if a ServiceBBack_HelloB_Args struct could not be encoded.

func (*ServiceBBack_HelloB_Args) EnvelopeType

func (v *ServiceBBack_HelloB_Args) EnvelopeType() wire.EnvelopeType

EnvelopeType returns the kind of value inside this struct.

This will always be Call for this struct.

func (*ServiceBBack_HelloB_Args) Equals

Equals returns true if all the fields of this ServiceBBack_HelloB_Args match the provided ServiceBBack_HelloB_Args.

This function performs a deep comparison.

func (*ServiceBBack_HelloB_Args) FromWire

func (v *ServiceBBack_HelloB_Args) FromWire(w wire.Value) error

FromWire deserializes a ServiceBBack_HelloB_Args struct from its Thrift-level representation. The Thrift-level representation may be obtained from a ThriftRW protocol implementation.

An error is returned if we were unable to build a ServiceBBack_HelloB_Args struct from the provided intermediate representation.

x, err := binaryProtocol.Decode(reader, wire.TStruct)
if err != nil {
  return nil, err
}

var v ServiceBBack_HelloB_Args
if err := v.FromWire(x); err != nil {
  return nil, err
}
return &v, nil

func (ServiceBBack_HelloB_Args) MarshalEasyJSON

func (v ServiceBBack_HelloB_Args) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ServiceBBack_HelloB_Args) MarshalJSON

func (v ServiceBBack_HelloB_Args) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ServiceBBack_HelloB_Args) MarshalLogObject

func (v *ServiceBBack_HelloB_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)

MarshalLogObject implements zapcore.ObjectMarshaler, enabling fast logging of ServiceBBack_HelloB_Args.

func (*ServiceBBack_HelloB_Args) MethodName

func (v *ServiceBBack_HelloB_Args) MethodName() string

MethodName returns the name of the Thrift function as specified in the IDL, for which this struct represent the arguments.

This will always be "helloB" for this struct.

func (*ServiceBBack_HelloB_Args) String

func (v *ServiceBBack_HelloB_Args) String() string

String returns a readable string representation of a ServiceBBack_HelloB_Args struct.

func (*ServiceBBack_HelloB_Args) ToWire

func (v *ServiceBBack_HelloB_Args) ToWire() (wire.Value, error)

ToWire translates a ServiceBBack_HelloB_Args struct into a Thrift-level intermediate representation. This intermediate representation may be serialized into bytes using a ThriftRW protocol implementation.

An error is returned if the struct or any of its fields failed to validate.

x, err := v.ToWire()
if err != nil {
  return err
}

if err := binaryProtocol.Encode(x, writer); err != nil {
  return err
}

func (*ServiceBBack_HelloB_Args) UnmarshalEasyJSON

func (v *ServiceBBack_HelloB_Args) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ServiceBBack_HelloB_Args) UnmarshalJSON

func (v *ServiceBBack_HelloB_Args) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ServiceBBack_HelloB_Result

type ServiceBBack_HelloB_Result struct {
	// Value returned by helloB after a successful execution.
	Success *string `json:"success,omitempty"`
}

ServiceBBack_HelloB_Result represents the result of a ServiceBBack.helloB function call.

The result of a helloB execution is sent and received over the wire as this struct.

Success is set only if the function did not throw an exception.

func (*ServiceBBack_HelloB_Result) Decode

Decode deserializes a ServiceBBack_HelloB_Result struct directly from its Thrift-level representation, without going through an intemediary type.

An error is returned if a ServiceBBack_HelloB_Result struct could not be generated from the wire representation.

func (*ServiceBBack_HelloB_Result) Encode

Encode serializes a ServiceBBack_HelloB_Result struct directly into bytes, without going through an intermediary type.

An error is returned if a ServiceBBack_HelloB_Result struct could not be encoded.

func (*ServiceBBack_HelloB_Result) EnvelopeType

func (v *ServiceBBack_HelloB_Result) EnvelopeType() wire.EnvelopeType

EnvelopeType returns the kind of value inside this struct.

This will always be Reply for this struct.

func (*ServiceBBack_HelloB_Result) Equals

Equals returns true if all the fields of this ServiceBBack_HelloB_Result match the provided ServiceBBack_HelloB_Result.

This function performs a deep comparison.

func (*ServiceBBack_HelloB_Result) FromWire

func (v *ServiceBBack_HelloB_Result) FromWire(w wire.Value) error

FromWire deserializes a ServiceBBack_HelloB_Result struct from its Thrift-level representation. The Thrift-level representation may be obtained from a ThriftRW protocol implementation.

An error is returned if we were unable to build a ServiceBBack_HelloB_Result struct from the provided intermediate representation.

x, err := binaryProtocol.Decode(reader, wire.TStruct)
if err != nil {
  return nil, err
}

var v ServiceBBack_HelloB_Result
if err := v.FromWire(x); err != nil {
  return nil, err
}
return &v, nil

func (*ServiceBBack_HelloB_Result) GetSuccess

func (v *ServiceBBack_HelloB_Result) GetSuccess() (o string)

GetSuccess returns the value of Success if it is set or its zero value if it is unset.

func (*ServiceBBack_HelloB_Result) IsSetSuccess

func (v *ServiceBBack_HelloB_Result) IsSetSuccess() bool

IsSetSuccess returns true if Success is not nil.

func (ServiceBBack_HelloB_Result) MarshalEasyJSON

func (v ServiceBBack_HelloB_Result) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ServiceBBack_HelloB_Result) MarshalJSON

func (v ServiceBBack_HelloB_Result) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ServiceBBack_HelloB_Result) MarshalLogObject

func (v *ServiceBBack_HelloB_Result) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)

MarshalLogObject implements zapcore.ObjectMarshaler, enabling fast logging of ServiceBBack_HelloB_Result.

func (*ServiceBBack_HelloB_Result) MethodName

func (v *ServiceBBack_HelloB_Result) MethodName() string

MethodName returns the name of the Thrift function as specified in the IDL, for which this struct represent the result.

This will always be "helloB" for this struct.

func (*ServiceBBack_HelloB_Result) String

func (v *ServiceBBack_HelloB_Result) String() string

String returns a readable string representation of a ServiceBBack_HelloB_Result struct.

func (*ServiceBBack_HelloB_Result) ToWire

func (v *ServiceBBack_HelloB_Result) ToWire() (wire.Value, error)

ToWire translates a ServiceBBack_HelloB_Result struct into a Thrift-level intermediate representation. This intermediate representation may be serialized into bytes using a ThriftRW protocol implementation.

An error is returned if the struct or any of its fields failed to validate.

x, err := v.ToWire()
if err != nil {
  return err
}

if err := binaryProtocol.Encode(x, writer); err != nil {
  return err
}

func (*ServiceBBack_HelloB_Result) UnmarshalEasyJSON

func (v *ServiceBBack_HelloB_Result) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ServiceBBack_HelloB_Result) UnmarshalJSON

func (v *ServiceBBack_HelloB_Result) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ServiceCBack_Hello_Args

type ServiceCBack_Hello_Args struct {
}

ServiceCBack_Hello_Args represents the arguments for the ServiceCBack.hello function.

The arguments for hello are sent and received over the wire as this struct.

func (*ServiceCBack_Hello_Args) Decode

Decode deserializes a ServiceCBack_Hello_Args struct directly from its Thrift-level representation, without going through an intemediary type.

An error is returned if a ServiceCBack_Hello_Args struct could not be generated from the wire representation.

func (*ServiceCBack_Hello_Args) Encode

Encode serializes a ServiceCBack_Hello_Args struct directly into bytes, without going through an intermediary type.

An error is returned if a ServiceCBack_Hello_Args struct could not be encoded.

func (*ServiceCBack_Hello_Args) EnvelopeType

func (v *ServiceCBack_Hello_Args) EnvelopeType() wire.EnvelopeType

EnvelopeType returns the kind of value inside this struct.

This will always be Call for this struct.

func (*ServiceCBack_Hello_Args) Equals

Equals returns true if all the fields of this ServiceCBack_Hello_Args match the provided ServiceCBack_Hello_Args.

This function performs a deep comparison.

func (*ServiceCBack_Hello_Args) FromWire

func (v *ServiceCBack_Hello_Args) FromWire(w wire.Value) error

FromWire deserializes a ServiceCBack_Hello_Args struct from its Thrift-level representation. The Thrift-level representation may be obtained from a ThriftRW protocol implementation.

An error is returned if we were unable to build a ServiceCBack_Hello_Args struct from the provided intermediate representation.

x, err := binaryProtocol.Decode(reader, wire.TStruct)
if err != nil {
  return nil, err
}

var v ServiceCBack_Hello_Args
if err := v.FromWire(x); err != nil {
  return nil, err
}
return &v, nil

func (ServiceCBack_Hello_Args) MarshalEasyJSON

func (v ServiceCBack_Hello_Args) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ServiceCBack_Hello_Args) MarshalJSON

func (v ServiceCBack_Hello_Args) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ServiceCBack_Hello_Args) MarshalLogObject

func (v *ServiceCBack_Hello_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)

MarshalLogObject implements zapcore.ObjectMarshaler, enabling fast logging of ServiceCBack_Hello_Args.

func (*ServiceCBack_Hello_Args) MethodName

func (v *ServiceCBack_Hello_Args) MethodName() string

MethodName returns the name of the Thrift function as specified in the IDL, for which this struct represent the arguments.

This will always be "hello" for this struct.

func (*ServiceCBack_Hello_Args) String

func (v *ServiceCBack_Hello_Args) String() string

String returns a readable string representation of a ServiceCBack_Hello_Args struct.

func (*ServiceCBack_Hello_Args) ToWire

func (v *ServiceCBack_Hello_Args) ToWire() (wire.Value, error)

ToWire translates a ServiceCBack_Hello_Args struct into a Thrift-level intermediate representation. This intermediate representation may be serialized into bytes using a ThriftRW protocol implementation.

An error is returned if the struct or any of its fields failed to validate.

x, err := v.ToWire()
if err != nil {
  return err
}

if err := binaryProtocol.Encode(x, writer); err != nil {
  return err
}

func (*ServiceCBack_Hello_Args) UnmarshalEasyJSON

func (v *ServiceCBack_Hello_Args) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ServiceCBack_Hello_Args) UnmarshalJSON

func (v *ServiceCBack_Hello_Args) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ServiceCBack_Hello_Result

type ServiceCBack_Hello_Result struct {
	// Value returned by hello after a successful execution.
	Success *string `json:"success,omitempty"`
}

ServiceCBack_Hello_Result represents the result of a ServiceCBack.hello function call.

The result of a hello execution is sent and received over the wire as this struct.

Success is set only if the function did not throw an exception.

func (*ServiceCBack_Hello_Result) Decode

Decode deserializes a ServiceCBack_Hello_Result struct directly from its Thrift-level representation, without going through an intemediary type.

An error is returned if a ServiceCBack_Hello_Result struct could not be generated from the wire representation.

func (*ServiceCBack_Hello_Result) Encode

Encode serializes a ServiceCBack_Hello_Result struct directly into bytes, without going through an intermediary type.

An error is returned if a ServiceCBack_Hello_Result struct could not be encoded.

func (*ServiceCBack_Hello_Result) EnvelopeType

func (v *ServiceCBack_Hello_Result) EnvelopeType() wire.EnvelopeType

EnvelopeType returns the kind of value inside this struct.

This will always be Reply for this struct.

func (*ServiceCBack_Hello_Result) Equals

Equals returns true if all the fields of this ServiceCBack_Hello_Result match the provided ServiceCBack_Hello_Result.

This function performs a deep comparison.

func (*ServiceCBack_Hello_Result) FromWire

func (v *ServiceCBack_Hello_Result) FromWire(w wire.Value) error

FromWire deserializes a ServiceCBack_Hello_Result struct from its Thrift-level representation. The Thrift-level representation may be obtained from a ThriftRW protocol implementation.

An error is returned if we were unable to build a ServiceCBack_Hello_Result struct from the provided intermediate representation.

x, err := binaryProtocol.Decode(reader, wire.TStruct)
if err != nil {
  return nil, err
}

var v ServiceCBack_Hello_Result
if err := v.FromWire(x); err != nil {
  return nil, err
}
return &v, nil

func (*ServiceCBack_Hello_Result) GetSuccess

func (v *ServiceCBack_Hello_Result) GetSuccess() (o string)

GetSuccess returns the value of Success if it is set or its zero value if it is unset.

func (*ServiceCBack_Hello_Result) IsSetSuccess

func (v *ServiceCBack_Hello_Result) IsSetSuccess() bool

IsSetSuccess returns true if Success is not nil.

func (ServiceCBack_Hello_Result) MarshalEasyJSON

func (v ServiceCBack_Hello_Result) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ServiceCBack_Hello_Result) MarshalJSON

func (v ServiceCBack_Hello_Result) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ServiceCBack_Hello_Result) MarshalLogObject

func (v *ServiceCBack_Hello_Result) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)

MarshalLogObject implements zapcore.ObjectMarshaler, enabling fast logging of ServiceCBack_Hello_Result.

func (*ServiceCBack_Hello_Result) MethodName

func (v *ServiceCBack_Hello_Result) MethodName() string

MethodName returns the name of the Thrift function as specified in the IDL, for which this struct represent the result.

This will always be "hello" for this struct.

func (*ServiceCBack_Hello_Result) String

func (v *ServiceCBack_Hello_Result) String() string

String returns a readable string representation of a ServiceCBack_Hello_Result struct.

func (*ServiceCBack_Hello_Result) ToWire

func (v *ServiceCBack_Hello_Result) ToWire() (wire.Value, error)

ToWire translates a ServiceCBack_Hello_Result struct into a Thrift-level intermediate representation. This intermediate representation may be serialized into bytes using a ThriftRW protocol implementation.

An error is returned if the struct or any of its fields failed to validate.

x, err := v.ToWire()
if err != nil {
  return err
}

if err := binaryProtocol.Encode(x, writer); err != nil {
  return err
}

func (*ServiceCBack_Hello_Result) UnmarshalEasyJSON

func (v *ServiceCBack_Hello_Result) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ServiceCBack_Hello_Result) UnmarshalJSON

func (v *ServiceCBack_Hello_Result) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

Jump to

Keyboard shortcuts

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