Documentation ¶
Index ¶
- Variables
- type ServiceAFront_Hello_Args
- func (v *ServiceAFront_Hello_Args) Decode(sr stream.Reader) error
- func (v *ServiceAFront_Hello_Args) Encode(sw stream.Writer) error
- func (v *ServiceAFront_Hello_Args) EnvelopeType() wire.EnvelopeType
- func (v *ServiceAFront_Hello_Args) Equals(rhs *ServiceAFront_Hello_Args) bool
- func (v *ServiceAFront_Hello_Args) FromWire(w wire.Value) error
- func (v ServiceAFront_Hello_Args) MarshalEasyJSON(w *jwriter.Writer)
- func (v ServiceAFront_Hello_Args) MarshalJSON() ([]byte, error)
- func (v *ServiceAFront_Hello_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
- func (v *ServiceAFront_Hello_Args) MethodName() string
- func (v *ServiceAFront_Hello_Args) String() string
- func (v *ServiceAFront_Hello_Args) ToWire() (wire.Value, error)
- func (v *ServiceAFront_Hello_Args) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *ServiceAFront_Hello_Args) UnmarshalJSON(data []byte) error
- type ServiceAFront_Hello_Result
- func (v *ServiceAFront_Hello_Result) Decode(sr stream.Reader) error
- func (v *ServiceAFront_Hello_Result) Encode(sw stream.Writer) error
- func (v *ServiceAFront_Hello_Result) EnvelopeType() wire.EnvelopeType
- func (v *ServiceAFront_Hello_Result) Equals(rhs *ServiceAFront_Hello_Result) bool
- func (v *ServiceAFront_Hello_Result) FromWire(w wire.Value) error
- func (v *ServiceAFront_Hello_Result) GetSuccess() (o string)
- func (v *ServiceAFront_Hello_Result) IsSetSuccess() bool
- func (v ServiceAFront_Hello_Result) MarshalEasyJSON(w *jwriter.Writer)
- func (v ServiceAFront_Hello_Result) MarshalJSON() ([]byte, error)
- func (v *ServiceAFront_Hello_Result) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
- func (v *ServiceAFront_Hello_Result) MethodName() string
- func (v *ServiceAFront_Hello_Result) String() string
- func (v *ServiceAFront_Hello_Result) ToWire() (wire.Value, error)
- func (v *ServiceAFront_Hello_Result) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *ServiceAFront_Hello_Result) UnmarshalJSON(data []byte) error
- type ServiceBFront_Hello_Args
- func (v *ServiceBFront_Hello_Args) Decode(sr stream.Reader) error
- func (v *ServiceBFront_Hello_Args) Encode(sw stream.Writer) error
- func (v *ServiceBFront_Hello_Args) EnvelopeType() wire.EnvelopeType
- func (v *ServiceBFront_Hello_Args) Equals(rhs *ServiceBFront_Hello_Args) bool
- func (v *ServiceBFront_Hello_Args) FromWire(w wire.Value) error
- func (v ServiceBFront_Hello_Args) MarshalEasyJSON(w *jwriter.Writer)
- func (v ServiceBFront_Hello_Args) MarshalJSON() ([]byte, error)
- func (v *ServiceBFront_Hello_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
- func (v *ServiceBFront_Hello_Args) MethodName() string
- func (v *ServiceBFront_Hello_Args) String() string
- func (v *ServiceBFront_Hello_Args) ToWire() (wire.Value, error)
- func (v *ServiceBFront_Hello_Args) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *ServiceBFront_Hello_Args) UnmarshalJSON(data []byte) error
- type ServiceBFront_Hello_Result
- func (v *ServiceBFront_Hello_Result) Decode(sr stream.Reader) error
- func (v *ServiceBFront_Hello_Result) Encode(sw stream.Writer) error
- func (v *ServiceBFront_Hello_Result) EnvelopeType() wire.EnvelopeType
- func (v *ServiceBFront_Hello_Result) Equals(rhs *ServiceBFront_Hello_Result) bool
- func (v *ServiceBFront_Hello_Result) FromWire(w wire.Value) error
- func (v *ServiceBFront_Hello_Result) GetSuccess() (o string)
- func (v *ServiceBFront_Hello_Result) IsSetSuccess() bool
- func (v ServiceBFront_Hello_Result) MarshalEasyJSON(w *jwriter.Writer)
- func (v ServiceBFront_Hello_Result) MarshalJSON() ([]byte, error)
- func (v *ServiceBFront_Hello_Result) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
- func (v *ServiceBFront_Hello_Result) MethodName() string
- func (v *ServiceBFront_Hello_Result) String() string
- func (v *ServiceBFront_Hello_Result) ToWire() (wire.Value, error)
- func (v *ServiceBFront_Hello_Result) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *ServiceBFront_Hello_Result) UnmarshalJSON(data []byte) error
- type ServiceCFront_Hello_Args
- func (v *ServiceCFront_Hello_Args) Decode(sr stream.Reader) error
- func (v *ServiceCFront_Hello_Args) Encode(sw stream.Writer) error
- func (v *ServiceCFront_Hello_Args) EnvelopeType() wire.EnvelopeType
- func (v *ServiceCFront_Hello_Args) Equals(rhs *ServiceCFront_Hello_Args) bool
- func (v *ServiceCFront_Hello_Args) FromWire(w wire.Value) error
- func (v ServiceCFront_Hello_Args) MarshalEasyJSON(w *jwriter.Writer)
- func (v ServiceCFront_Hello_Args) MarshalJSON() ([]byte, error)
- func (v *ServiceCFront_Hello_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
- func (v *ServiceCFront_Hello_Args) MethodName() string
- func (v *ServiceCFront_Hello_Args) String() string
- func (v *ServiceCFront_Hello_Args) ToWire() (wire.Value, error)
- func (v *ServiceCFront_Hello_Args) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *ServiceCFront_Hello_Args) UnmarshalJSON(data []byte) error
- type ServiceCFront_Hello_Result
- func (v *ServiceCFront_Hello_Result) Decode(sr stream.Reader) error
- func (v *ServiceCFront_Hello_Result) Encode(sw stream.Writer) error
- func (v *ServiceCFront_Hello_Result) EnvelopeType() wire.EnvelopeType
- func (v *ServiceCFront_Hello_Result) Equals(rhs *ServiceCFront_Hello_Result) bool
- func (v *ServiceCFront_Hello_Result) FromWire(w wire.Value) error
- func (v *ServiceCFront_Hello_Result) GetSuccess() (o string)
- func (v *ServiceCFront_Hello_Result) IsSetSuccess() bool
- func (v ServiceCFront_Hello_Result) MarshalEasyJSON(w *jwriter.Writer)
- func (v ServiceCFront_Hello_Result) MarshalJSON() ([]byte, error)
- func (v *ServiceCFront_Hello_Result) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
- func (v *ServiceCFront_Hello_Result) MethodName() string
- func (v *ServiceCFront_Hello_Result) String() string
- func (v *ServiceCFront_Hello_Result) ToWire() (wire.Value, error)
- func (v *ServiceCFront_Hello_Result) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *ServiceCFront_Hello_Result) UnmarshalJSON(data []byte) error
Constants ¶
This section is empty.
Variables ¶
var ServiceAFront_Hello_Helper = struct { // Args accepts the parameters of hello in-order and returns // the arguments struct for the function. Args func() *ServiceAFront_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 := ServiceAFront_Hello_Helper.WrapResponse(value, err) // if err != nil { // return fmt.Errorf("unexpected error from hello: %v", err) // } // serialize(result) WrapResponse func(string, error) (*ServiceAFront_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 := ServiceAFront_Hello_Helper.UnwrapResponse(result) UnwrapResponse func(*ServiceAFront_Hello_Result) (string, error) }{}
ServiceAFront_Hello_Helper provides functions that aid in handling the parameters and return values of the ServiceAFront.hello function.
var ServiceBFront_Hello_Helper = struct { // Args accepts the parameters of hello in-order and returns // the arguments struct for the function. Args func() *ServiceBFront_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 := ServiceBFront_Hello_Helper.WrapResponse(value, err) // if err != nil { // return fmt.Errorf("unexpected error from hello: %v", err) // } // serialize(result) WrapResponse func(string, error) (*ServiceBFront_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 := ServiceBFront_Hello_Helper.UnwrapResponse(result) UnwrapResponse func(*ServiceBFront_Hello_Result) (string, error) }{}
ServiceBFront_Hello_Helper provides functions that aid in handling the parameters and return values of the ServiceBFront.hello function.
var ServiceCFront_Hello_Helper = struct { // Args accepts the parameters of hello in-order and returns // the arguments struct for the function. Args func() *ServiceCFront_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 := ServiceCFront_Hello_Helper.WrapResponse(value, err) // if err != nil { // return fmt.Errorf("unexpected error from hello: %v", err) // } // serialize(result) WrapResponse func(string, error) (*ServiceCFront_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 := ServiceCFront_Hello_Helper.UnwrapResponse(result) UnwrapResponse func(*ServiceCFront_Hello_Result) (string, error) }{}
ServiceCFront_Hello_Helper provides functions that aid in handling the parameters and return values of the ServiceCFront.hello function.
Functions ¶
This section is empty.
Types ¶
type ServiceAFront_Hello_Args ¶
type ServiceAFront_Hello_Args struct { }
ServiceAFront_Hello_Args represents the arguments for the ServiceAFront.hello function.
The arguments for hello are sent and received over the wire as this struct.
func (*ServiceAFront_Hello_Args) Decode ¶ added in v1.1.1
func (v *ServiceAFront_Hello_Args) Decode(sr stream.Reader) error
Decode deserializes a ServiceAFront_Hello_Args struct directly from its Thrift-level representation, without going through an intemediary type.
An error is returned if a ServiceAFront_Hello_Args struct could not be generated from the wire representation.
func (*ServiceAFront_Hello_Args) Encode ¶ added in v1.1.1
func (v *ServiceAFront_Hello_Args) Encode(sw stream.Writer) error
Encode serializes a ServiceAFront_Hello_Args struct directly into bytes, without going through an intermediary type.
An error is returned if a ServiceAFront_Hello_Args struct could not be encoded.
func (*ServiceAFront_Hello_Args) EnvelopeType ¶
func (v *ServiceAFront_Hello_Args) EnvelopeType() wire.EnvelopeType
EnvelopeType returns the kind of value inside this struct.
This will always be Call for this struct.
func (*ServiceAFront_Hello_Args) Equals ¶
func (v *ServiceAFront_Hello_Args) Equals(rhs *ServiceAFront_Hello_Args) bool
Equals returns true if all the fields of this ServiceAFront_Hello_Args match the provided ServiceAFront_Hello_Args.
This function performs a deep comparison.
func (*ServiceAFront_Hello_Args) FromWire ¶
func (v *ServiceAFront_Hello_Args) FromWire(w wire.Value) error
FromWire deserializes a ServiceAFront_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 ServiceAFront_Hello_Args struct from the provided intermediate representation.
x, err := binaryProtocol.Decode(reader, wire.TStruct) if err != nil { return nil, err } var v ServiceAFront_Hello_Args if err := v.FromWire(x); err != nil { return nil, err } return &v, nil
func (ServiceAFront_Hello_Args) MarshalEasyJSON ¶
func (v ServiceAFront_Hello_Args) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (ServiceAFront_Hello_Args) MarshalJSON ¶
func (v ServiceAFront_Hello_Args) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*ServiceAFront_Hello_Args) MarshalLogObject ¶
func (v *ServiceAFront_Hello_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
MarshalLogObject implements zapcore.ObjectMarshaler, enabling fast logging of ServiceAFront_Hello_Args.
func (*ServiceAFront_Hello_Args) MethodName ¶
func (v *ServiceAFront_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 (*ServiceAFront_Hello_Args) String ¶
func (v *ServiceAFront_Hello_Args) String() string
String returns a readable string representation of a ServiceAFront_Hello_Args struct.
func (*ServiceAFront_Hello_Args) ToWire ¶
func (v *ServiceAFront_Hello_Args) ToWire() (wire.Value, error)
ToWire translates a ServiceAFront_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 (*ServiceAFront_Hello_Args) UnmarshalEasyJSON ¶
func (v *ServiceAFront_Hello_Args) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*ServiceAFront_Hello_Args) UnmarshalJSON ¶
func (v *ServiceAFront_Hello_Args) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type ServiceAFront_Hello_Result ¶
type ServiceAFront_Hello_Result struct { // Value returned by hello after a successful execution. Success *string `json:"success,omitempty"` }
ServiceAFront_Hello_Result represents the result of a ServiceAFront.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 (*ServiceAFront_Hello_Result) Decode ¶ added in v1.1.1
func (v *ServiceAFront_Hello_Result) Decode(sr stream.Reader) error
Decode deserializes a ServiceAFront_Hello_Result struct directly from its Thrift-level representation, without going through an intemediary type.
An error is returned if a ServiceAFront_Hello_Result struct could not be generated from the wire representation.
func (*ServiceAFront_Hello_Result) Encode ¶ added in v1.1.1
func (v *ServiceAFront_Hello_Result) Encode(sw stream.Writer) error
Encode serializes a ServiceAFront_Hello_Result struct directly into bytes, without going through an intermediary type.
An error is returned if a ServiceAFront_Hello_Result struct could not be encoded.
func (*ServiceAFront_Hello_Result) EnvelopeType ¶
func (v *ServiceAFront_Hello_Result) EnvelopeType() wire.EnvelopeType
EnvelopeType returns the kind of value inside this struct.
This will always be Reply for this struct.
func (*ServiceAFront_Hello_Result) Equals ¶
func (v *ServiceAFront_Hello_Result) Equals(rhs *ServiceAFront_Hello_Result) bool
Equals returns true if all the fields of this ServiceAFront_Hello_Result match the provided ServiceAFront_Hello_Result.
This function performs a deep comparison.
func (*ServiceAFront_Hello_Result) FromWire ¶
func (v *ServiceAFront_Hello_Result) FromWire(w wire.Value) error
FromWire deserializes a ServiceAFront_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 ServiceAFront_Hello_Result struct from the provided intermediate representation.
x, err := binaryProtocol.Decode(reader, wire.TStruct) if err != nil { return nil, err } var v ServiceAFront_Hello_Result if err := v.FromWire(x); err != nil { return nil, err } return &v, nil
func (*ServiceAFront_Hello_Result) GetSuccess ¶
func (v *ServiceAFront_Hello_Result) GetSuccess() (o string)
GetSuccess returns the value of Success if it is set or its zero value if it is unset.
func (*ServiceAFront_Hello_Result) IsSetSuccess ¶
func (v *ServiceAFront_Hello_Result) IsSetSuccess() bool
IsSetSuccess returns true if Success is not nil.
func (ServiceAFront_Hello_Result) MarshalEasyJSON ¶
func (v ServiceAFront_Hello_Result) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (ServiceAFront_Hello_Result) MarshalJSON ¶
func (v ServiceAFront_Hello_Result) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*ServiceAFront_Hello_Result) MarshalLogObject ¶
func (v *ServiceAFront_Hello_Result) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
MarshalLogObject implements zapcore.ObjectMarshaler, enabling fast logging of ServiceAFront_Hello_Result.
func (*ServiceAFront_Hello_Result) MethodName ¶
func (v *ServiceAFront_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 (*ServiceAFront_Hello_Result) String ¶
func (v *ServiceAFront_Hello_Result) String() string
String returns a readable string representation of a ServiceAFront_Hello_Result struct.
func (*ServiceAFront_Hello_Result) ToWire ¶
func (v *ServiceAFront_Hello_Result) ToWire() (wire.Value, error)
ToWire translates a ServiceAFront_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 (*ServiceAFront_Hello_Result) UnmarshalEasyJSON ¶
func (v *ServiceAFront_Hello_Result) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*ServiceAFront_Hello_Result) UnmarshalJSON ¶
func (v *ServiceAFront_Hello_Result) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type ServiceBFront_Hello_Args ¶
type ServiceBFront_Hello_Args struct { }
ServiceBFront_Hello_Args represents the arguments for the ServiceBFront.hello function.
The arguments for hello are sent and received over the wire as this struct.
func (*ServiceBFront_Hello_Args) Decode ¶ added in v1.1.1
func (v *ServiceBFront_Hello_Args) Decode(sr stream.Reader) error
Decode deserializes a ServiceBFront_Hello_Args struct directly from its Thrift-level representation, without going through an intemediary type.
An error is returned if a ServiceBFront_Hello_Args struct could not be generated from the wire representation.
func (*ServiceBFront_Hello_Args) Encode ¶ added in v1.1.1
func (v *ServiceBFront_Hello_Args) Encode(sw stream.Writer) error
Encode serializes a ServiceBFront_Hello_Args struct directly into bytes, without going through an intermediary type.
An error is returned if a ServiceBFront_Hello_Args struct could not be encoded.
func (*ServiceBFront_Hello_Args) EnvelopeType ¶
func (v *ServiceBFront_Hello_Args) EnvelopeType() wire.EnvelopeType
EnvelopeType returns the kind of value inside this struct.
This will always be Call for this struct.
func (*ServiceBFront_Hello_Args) Equals ¶
func (v *ServiceBFront_Hello_Args) Equals(rhs *ServiceBFront_Hello_Args) bool
Equals returns true if all the fields of this ServiceBFront_Hello_Args match the provided ServiceBFront_Hello_Args.
This function performs a deep comparison.
func (*ServiceBFront_Hello_Args) FromWire ¶
func (v *ServiceBFront_Hello_Args) FromWire(w wire.Value) error
FromWire deserializes a ServiceBFront_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 ServiceBFront_Hello_Args struct from the provided intermediate representation.
x, err := binaryProtocol.Decode(reader, wire.TStruct) if err != nil { return nil, err } var v ServiceBFront_Hello_Args if err := v.FromWire(x); err != nil { return nil, err } return &v, nil
func (ServiceBFront_Hello_Args) MarshalEasyJSON ¶
func (v ServiceBFront_Hello_Args) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (ServiceBFront_Hello_Args) MarshalJSON ¶
func (v ServiceBFront_Hello_Args) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*ServiceBFront_Hello_Args) MarshalLogObject ¶
func (v *ServiceBFront_Hello_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
MarshalLogObject implements zapcore.ObjectMarshaler, enabling fast logging of ServiceBFront_Hello_Args.
func (*ServiceBFront_Hello_Args) MethodName ¶
func (v *ServiceBFront_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 (*ServiceBFront_Hello_Args) String ¶
func (v *ServiceBFront_Hello_Args) String() string
String returns a readable string representation of a ServiceBFront_Hello_Args struct.
func (*ServiceBFront_Hello_Args) ToWire ¶
func (v *ServiceBFront_Hello_Args) ToWire() (wire.Value, error)
ToWire translates a ServiceBFront_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 (*ServiceBFront_Hello_Args) UnmarshalEasyJSON ¶
func (v *ServiceBFront_Hello_Args) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*ServiceBFront_Hello_Args) UnmarshalJSON ¶
func (v *ServiceBFront_Hello_Args) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type ServiceBFront_Hello_Result ¶
type ServiceBFront_Hello_Result struct { // Value returned by hello after a successful execution. Success *string `json:"success,omitempty"` }
ServiceBFront_Hello_Result represents the result of a ServiceBFront.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 (*ServiceBFront_Hello_Result) Decode ¶ added in v1.1.1
func (v *ServiceBFront_Hello_Result) Decode(sr stream.Reader) error
Decode deserializes a ServiceBFront_Hello_Result struct directly from its Thrift-level representation, without going through an intemediary type.
An error is returned if a ServiceBFront_Hello_Result struct could not be generated from the wire representation.
func (*ServiceBFront_Hello_Result) Encode ¶ added in v1.1.1
func (v *ServiceBFront_Hello_Result) Encode(sw stream.Writer) error
Encode serializes a ServiceBFront_Hello_Result struct directly into bytes, without going through an intermediary type.
An error is returned if a ServiceBFront_Hello_Result struct could not be encoded.
func (*ServiceBFront_Hello_Result) EnvelopeType ¶
func (v *ServiceBFront_Hello_Result) EnvelopeType() wire.EnvelopeType
EnvelopeType returns the kind of value inside this struct.
This will always be Reply for this struct.
func (*ServiceBFront_Hello_Result) Equals ¶
func (v *ServiceBFront_Hello_Result) Equals(rhs *ServiceBFront_Hello_Result) bool
Equals returns true if all the fields of this ServiceBFront_Hello_Result match the provided ServiceBFront_Hello_Result.
This function performs a deep comparison.
func (*ServiceBFront_Hello_Result) FromWire ¶
func (v *ServiceBFront_Hello_Result) FromWire(w wire.Value) error
FromWire deserializes a ServiceBFront_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 ServiceBFront_Hello_Result struct from the provided intermediate representation.
x, err := binaryProtocol.Decode(reader, wire.TStruct) if err != nil { return nil, err } var v ServiceBFront_Hello_Result if err := v.FromWire(x); err != nil { return nil, err } return &v, nil
func (*ServiceBFront_Hello_Result) GetSuccess ¶
func (v *ServiceBFront_Hello_Result) GetSuccess() (o string)
GetSuccess returns the value of Success if it is set or its zero value if it is unset.
func (*ServiceBFront_Hello_Result) IsSetSuccess ¶
func (v *ServiceBFront_Hello_Result) IsSetSuccess() bool
IsSetSuccess returns true if Success is not nil.
func (ServiceBFront_Hello_Result) MarshalEasyJSON ¶
func (v ServiceBFront_Hello_Result) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (ServiceBFront_Hello_Result) MarshalJSON ¶
func (v ServiceBFront_Hello_Result) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*ServiceBFront_Hello_Result) MarshalLogObject ¶
func (v *ServiceBFront_Hello_Result) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
MarshalLogObject implements zapcore.ObjectMarshaler, enabling fast logging of ServiceBFront_Hello_Result.
func (*ServiceBFront_Hello_Result) MethodName ¶
func (v *ServiceBFront_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 (*ServiceBFront_Hello_Result) String ¶
func (v *ServiceBFront_Hello_Result) String() string
String returns a readable string representation of a ServiceBFront_Hello_Result struct.
func (*ServiceBFront_Hello_Result) ToWire ¶
func (v *ServiceBFront_Hello_Result) ToWire() (wire.Value, error)
ToWire translates a ServiceBFront_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 (*ServiceBFront_Hello_Result) UnmarshalEasyJSON ¶
func (v *ServiceBFront_Hello_Result) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*ServiceBFront_Hello_Result) UnmarshalJSON ¶
func (v *ServiceBFront_Hello_Result) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type ServiceCFront_Hello_Args ¶
type ServiceCFront_Hello_Args struct { }
ServiceCFront_Hello_Args represents the arguments for the ServiceCFront.hello function.
The arguments for hello are sent and received over the wire as this struct.
func (*ServiceCFront_Hello_Args) Decode ¶ added in v1.1.1
func (v *ServiceCFront_Hello_Args) Decode(sr stream.Reader) error
Decode deserializes a ServiceCFront_Hello_Args struct directly from its Thrift-level representation, without going through an intemediary type.
An error is returned if a ServiceCFront_Hello_Args struct could not be generated from the wire representation.
func (*ServiceCFront_Hello_Args) Encode ¶ added in v1.1.1
func (v *ServiceCFront_Hello_Args) Encode(sw stream.Writer) error
Encode serializes a ServiceCFront_Hello_Args struct directly into bytes, without going through an intermediary type.
An error is returned if a ServiceCFront_Hello_Args struct could not be encoded.
func (*ServiceCFront_Hello_Args) EnvelopeType ¶
func (v *ServiceCFront_Hello_Args) EnvelopeType() wire.EnvelopeType
EnvelopeType returns the kind of value inside this struct.
This will always be Call for this struct.
func (*ServiceCFront_Hello_Args) Equals ¶
func (v *ServiceCFront_Hello_Args) Equals(rhs *ServiceCFront_Hello_Args) bool
Equals returns true if all the fields of this ServiceCFront_Hello_Args match the provided ServiceCFront_Hello_Args.
This function performs a deep comparison.
func (*ServiceCFront_Hello_Args) FromWire ¶
func (v *ServiceCFront_Hello_Args) FromWire(w wire.Value) error
FromWire deserializes a ServiceCFront_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 ServiceCFront_Hello_Args struct from the provided intermediate representation.
x, err := binaryProtocol.Decode(reader, wire.TStruct) if err != nil { return nil, err } var v ServiceCFront_Hello_Args if err := v.FromWire(x); err != nil { return nil, err } return &v, nil
func (ServiceCFront_Hello_Args) MarshalEasyJSON ¶
func (v ServiceCFront_Hello_Args) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (ServiceCFront_Hello_Args) MarshalJSON ¶
func (v ServiceCFront_Hello_Args) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*ServiceCFront_Hello_Args) MarshalLogObject ¶
func (v *ServiceCFront_Hello_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
MarshalLogObject implements zapcore.ObjectMarshaler, enabling fast logging of ServiceCFront_Hello_Args.
func (*ServiceCFront_Hello_Args) MethodName ¶
func (v *ServiceCFront_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 (*ServiceCFront_Hello_Args) String ¶
func (v *ServiceCFront_Hello_Args) String() string
String returns a readable string representation of a ServiceCFront_Hello_Args struct.
func (*ServiceCFront_Hello_Args) ToWire ¶
func (v *ServiceCFront_Hello_Args) ToWire() (wire.Value, error)
ToWire translates a ServiceCFront_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 (*ServiceCFront_Hello_Args) UnmarshalEasyJSON ¶
func (v *ServiceCFront_Hello_Args) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*ServiceCFront_Hello_Args) UnmarshalJSON ¶
func (v *ServiceCFront_Hello_Args) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type ServiceCFront_Hello_Result ¶
type ServiceCFront_Hello_Result struct { // Value returned by hello after a successful execution. Success *string `json:"success,omitempty"` }
ServiceCFront_Hello_Result represents the result of a ServiceCFront.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 (*ServiceCFront_Hello_Result) Decode ¶ added in v1.1.1
func (v *ServiceCFront_Hello_Result) Decode(sr stream.Reader) error
Decode deserializes a ServiceCFront_Hello_Result struct directly from its Thrift-level representation, without going through an intemediary type.
An error is returned if a ServiceCFront_Hello_Result struct could not be generated from the wire representation.
func (*ServiceCFront_Hello_Result) Encode ¶ added in v1.1.1
func (v *ServiceCFront_Hello_Result) Encode(sw stream.Writer) error
Encode serializes a ServiceCFront_Hello_Result struct directly into bytes, without going through an intermediary type.
An error is returned if a ServiceCFront_Hello_Result struct could not be encoded.
func (*ServiceCFront_Hello_Result) EnvelopeType ¶
func (v *ServiceCFront_Hello_Result) EnvelopeType() wire.EnvelopeType
EnvelopeType returns the kind of value inside this struct.
This will always be Reply for this struct.
func (*ServiceCFront_Hello_Result) Equals ¶
func (v *ServiceCFront_Hello_Result) Equals(rhs *ServiceCFront_Hello_Result) bool
Equals returns true if all the fields of this ServiceCFront_Hello_Result match the provided ServiceCFront_Hello_Result.
This function performs a deep comparison.
func (*ServiceCFront_Hello_Result) FromWire ¶
func (v *ServiceCFront_Hello_Result) FromWire(w wire.Value) error
FromWire deserializes a ServiceCFront_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 ServiceCFront_Hello_Result struct from the provided intermediate representation.
x, err := binaryProtocol.Decode(reader, wire.TStruct) if err != nil { return nil, err } var v ServiceCFront_Hello_Result if err := v.FromWire(x); err != nil { return nil, err } return &v, nil
func (*ServiceCFront_Hello_Result) GetSuccess ¶
func (v *ServiceCFront_Hello_Result) GetSuccess() (o string)
GetSuccess returns the value of Success if it is set or its zero value if it is unset.
func (*ServiceCFront_Hello_Result) IsSetSuccess ¶
func (v *ServiceCFront_Hello_Result) IsSetSuccess() bool
IsSetSuccess returns true if Success is not nil.
func (ServiceCFront_Hello_Result) MarshalEasyJSON ¶
func (v ServiceCFront_Hello_Result) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (ServiceCFront_Hello_Result) MarshalJSON ¶
func (v ServiceCFront_Hello_Result) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*ServiceCFront_Hello_Result) MarshalLogObject ¶
func (v *ServiceCFront_Hello_Result) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
MarshalLogObject implements zapcore.ObjectMarshaler, enabling fast logging of ServiceCFront_Hello_Result.
func (*ServiceCFront_Hello_Result) MethodName ¶
func (v *ServiceCFront_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 (*ServiceCFront_Hello_Result) String ¶
func (v *ServiceCFront_Hello_Result) String() string
String returns a readable string representation of a ServiceCFront_Hello_Result struct.
func (*ServiceCFront_Hello_Result) ToWire ¶
func (v *ServiceCFront_Hello_Result) ToWire() (wire.Value, error)
ToWire translates a ServiceCFront_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 (*ServiceCFront_Hello_Result) UnmarshalEasyJSON ¶
func (v *ServiceCFront_Hello_Result) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*ServiceCFront_Hello_Result) UnmarshalJSON ¶
func (v *ServiceCFront_Hello_Result) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface