Documentation ¶
Index ¶
- Variables
- type ServiceABack_Hello_Args
- func (v *ServiceABack_Hello_Args) EnvelopeType() wire.EnvelopeType
- func (v *ServiceABack_Hello_Args) Equals(rhs *ServiceABack_Hello_Args) bool
- func (v *ServiceABack_Hello_Args) FromWire(w wire.Value) error
- func (v ServiceABack_Hello_Args) MarshalEasyJSON(w *jwriter.Writer)
- func (v ServiceABack_Hello_Args) MarshalJSON() ([]byte, error)
- func (v *ServiceABack_Hello_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
- func (v *ServiceABack_Hello_Args) MethodName() string
- func (v *ServiceABack_Hello_Args) String() string
- func (v *ServiceABack_Hello_Args) ToWire() (wire.Value, error)
- func (v *ServiceABack_Hello_Args) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *ServiceABack_Hello_Args) UnmarshalJSON(data []byte) error
- type ServiceABack_Hello_Result
- func (v *ServiceABack_Hello_Result) EnvelopeType() wire.EnvelopeType
- func (v *ServiceABack_Hello_Result) Equals(rhs *ServiceABack_Hello_Result) bool
- func (v *ServiceABack_Hello_Result) FromWire(w wire.Value) error
- func (v *ServiceABack_Hello_Result) GetSuccess() (o string)
- func (v *ServiceABack_Hello_Result) IsSetSuccess() bool
- func (v ServiceABack_Hello_Result) MarshalEasyJSON(w *jwriter.Writer)
- func (v ServiceABack_Hello_Result) MarshalJSON() ([]byte, error)
- func (v *ServiceABack_Hello_Result) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
- func (v *ServiceABack_Hello_Result) MethodName() string
- func (v *ServiceABack_Hello_Result) String() string
- func (v *ServiceABack_Hello_Result) ToWire() (wire.Value, error)
- func (v *ServiceABack_Hello_Result) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *ServiceABack_Hello_Result) UnmarshalJSON(data []byte) error
- type ServiceBBack_Hello_Args
- func (v *ServiceBBack_Hello_Args) EnvelopeType() wire.EnvelopeType
- func (v *ServiceBBack_Hello_Args) Equals(rhs *ServiceBBack_Hello_Args) bool
- func (v *ServiceBBack_Hello_Args) FromWire(w wire.Value) error
- func (v ServiceBBack_Hello_Args) MarshalEasyJSON(w *jwriter.Writer)
- func (v ServiceBBack_Hello_Args) MarshalJSON() ([]byte, error)
- func (v *ServiceBBack_Hello_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
- func (v *ServiceBBack_Hello_Args) MethodName() string
- func (v *ServiceBBack_Hello_Args) String() string
- func (v *ServiceBBack_Hello_Args) ToWire() (wire.Value, error)
- func (v *ServiceBBack_Hello_Args) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *ServiceBBack_Hello_Args) UnmarshalJSON(data []byte) error
- type ServiceBBack_Hello_Result
- func (v *ServiceBBack_Hello_Result) EnvelopeType() wire.EnvelopeType
- func (v *ServiceBBack_Hello_Result) Equals(rhs *ServiceBBack_Hello_Result) bool
- func (v *ServiceBBack_Hello_Result) FromWire(w wire.Value) error
- func (v *ServiceBBack_Hello_Result) GetSuccess() (o string)
- func (v *ServiceBBack_Hello_Result) IsSetSuccess() bool
- func (v ServiceBBack_Hello_Result) MarshalEasyJSON(w *jwriter.Writer)
- func (v ServiceBBack_Hello_Result) MarshalJSON() ([]byte, error)
- func (v *ServiceBBack_Hello_Result) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
- func (v *ServiceBBack_Hello_Result) MethodName() string
- func (v *ServiceBBack_Hello_Result) String() string
- func (v *ServiceBBack_Hello_Result) ToWire() (wire.Value, error)
- func (v *ServiceBBack_Hello_Result) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *ServiceBBack_Hello_Result) UnmarshalJSON(data []byte) error
- type ServiceCBack_Hello_Args
- func (v *ServiceCBack_Hello_Args) EnvelopeType() wire.EnvelopeType
- func (v *ServiceCBack_Hello_Args) Equals(rhs *ServiceCBack_Hello_Args) bool
- func (v *ServiceCBack_Hello_Args) FromWire(w wire.Value) error
- func (v ServiceCBack_Hello_Args) MarshalEasyJSON(w *jwriter.Writer)
- func (v ServiceCBack_Hello_Args) MarshalJSON() ([]byte, error)
- func (v *ServiceCBack_Hello_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
- func (v *ServiceCBack_Hello_Args) MethodName() string
- func (v *ServiceCBack_Hello_Args) String() string
- func (v *ServiceCBack_Hello_Args) ToWire() (wire.Value, error)
- func (v *ServiceCBack_Hello_Args) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *ServiceCBack_Hello_Args) UnmarshalJSON(data []byte) error
- type ServiceCBack_Hello_Result
- func (v *ServiceCBack_Hello_Result) EnvelopeType() wire.EnvelopeType
- func (v *ServiceCBack_Hello_Result) Equals(rhs *ServiceCBack_Hello_Result) bool
- func (v *ServiceCBack_Hello_Result) FromWire(w wire.Value) error
- func (v *ServiceCBack_Hello_Result) GetSuccess() (o string)
- func (v *ServiceCBack_Hello_Result) IsSetSuccess() bool
- func (v ServiceCBack_Hello_Result) MarshalEasyJSON(w *jwriter.Writer)
- func (v ServiceCBack_Hello_Result) MarshalJSON() ([]byte, error)
- func (v *ServiceCBack_Hello_Result) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
- func (v *ServiceCBack_Hello_Result) MethodName() string
- func (v *ServiceCBack_Hello_Result) String() string
- func (v *ServiceCBack_Hello_Result) ToWire() (wire.Value, error)
- func (v *ServiceCBack_Hello_Result) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *ServiceCBack_Hello_Result) UnmarshalJSON(data []byte) error
Constants ¶
This section is empty.
Variables ¶
var ServiceABack_Hello_Helper = struct { // Args accepts the parameters of hello in-order and returns // the arguments struct for the function. Args func() *ServiceABack_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 := ServiceABack_Hello_Helper.WrapResponse(value, err) // if err != nil { // return fmt.Errorf("unexpected error from hello: %v", err) // } // serialize(result) WrapResponse func(string, error) (*ServiceABack_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 := ServiceABack_Hello_Helper.UnwrapResponse(result) UnwrapResponse func(*ServiceABack_Hello_Result) (string, error) }{}
ServiceABack_Hello_Helper provides functions that aid in handling the parameters and return values of the ServiceABack.hello function.
var ServiceBBack_Hello_Helper = struct { // Args accepts the parameters of hello in-order and returns // the arguments struct for the function. Args func() *ServiceBBack_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 := ServiceBBack_Hello_Helper.WrapResponse(value, err) // if err != nil { // return fmt.Errorf("unexpected error from hello: %v", err) // } // serialize(result) WrapResponse func(string, error) (*ServiceBBack_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 := ServiceBBack_Hello_Helper.UnwrapResponse(result) UnwrapResponse func(*ServiceBBack_Hello_Result) (string, error) }{}
ServiceBBack_Hello_Helper provides functions that aid in handling the parameters and return values of the ServiceBBack.hello function.
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_Hello_Args ¶
type ServiceABack_Hello_Args struct { }
ServiceABack_Hello_Args represents the arguments for the ServiceABack.hello function.
The arguments for hello are sent and received over the wire as this struct.
func (*ServiceABack_Hello_Args) EnvelopeType ¶
func (v *ServiceABack_Hello_Args) EnvelopeType() wire.EnvelopeType
EnvelopeType returns the kind of value inside this struct.
This will always be Call for this struct.
func (*ServiceABack_Hello_Args) Equals ¶
func (v *ServiceABack_Hello_Args) Equals(rhs *ServiceABack_Hello_Args) bool
Equals returns true if all the fields of this ServiceABack_Hello_Args match the provided ServiceABack_Hello_Args.
This function performs a deep comparison.
func (*ServiceABack_Hello_Args) FromWire ¶
func (v *ServiceABack_Hello_Args) FromWire(w wire.Value) error
FromWire deserializes a ServiceABack_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 ServiceABack_Hello_Args struct from the provided intermediate representation.
x, err := binaryProtocol.Decode(reader, wire.TStruct) if err != nil { return nil, err } var v ServiceABack_Hello_Args if err := v.FromWire(x); err != nil { return nil, err } return &v, nil
func (ServiceABack_Hello_Args) MarshalEasyJSON ¶
func (v ServiceABack_Hello_Args) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (ServiceABack_Hello_Args) MarshalJSON ¶
func (v ServiceABack_Hello_Args) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*ServiceABack_Hello_Args) MarshalLogObject ¶ added in v0.2.0
func (v *ServiceABack_Hello_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
MarshalLogObject implements zapcore.ObjectMarshaler, enabling fast logging of ServiceABack_Hello_Args.
func (*ServiceABack_Hello_Args) MethodName ¶
func (v *ServiceABack_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 (*ServiceABack_Hello_Args) String ¶
func (v *ServiceABack_Hello_Args) String() string
String returns a readable string representation of a ServiceABack_Hello_Args struct.
func (*ServiceABack_Hello_Args) ToWire ¶
func (v *ServiceABack_Hello_Args) ToWire() (wire.Value, error)
ToWire translates a ServiceABack_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 (*ServiceABack_Hello_Args) UnmarshalEasyJSON ¶
func (v *ServiceABack_Hello_Args) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*ServiceABack_Hello_Args) UnmarshalJSON ¶
func (v *ServiceABack_Hello_Args) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type ServiceABack_Hello_Result ¶
type ServiceABack_Hello_Result struct { // Value returned by hello after a successful execution. Success *string `json:"success,omitempty"` }
ServiceABack_Hello_Result represents the result of a ServiceABack.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 (*ServiceABack_Hello_Result) EnvelopeType ¶
func (v *ServiceABack_Hello_Result) EnvelopeType() wire.EnvelopeType
EnvelopeType returns the kind of value inside this struct.
This will always be Reply for this struct.
func (*ServiceABack_Hello_Result) Equals ¶
func (v *ServiceABack_Hello_Result) Equals(rhs *ServiceABack_Hello_Result) bool
Equals returns true if all the fields of this ServiceABack_Hello_Result match the provided ServiceABack_Hello_Result.
This function performs a deep comparison.
func (*ServiceABack_Hello_Result) FromWire ¶
func (v *ServiceABack_Hello_Result) FromWire(w wire.Value) error
FromWire deserializes a ServiceABack_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 ServiceABack_Hello_Result struct from the provided intermediate representation.
x, err := binaryProtocol.Decode(reader, wire.TStruct) if err != nil { return nil, err } var v ServiceABack_Hello_Result if err := v.FromWire(x); err != nil { return nil, err } return &v, nil
func (*ServiceABack_Hello_Result) GetSuccess ¶
func (v *ServiceABack_Hello_Result) GetSuccess() (o string)
GetSuccess returns the value of Success if it is set or its zero value if it is unset.
func (*ServiceABack_Hello_Result) IsSetSuccess ¶ added in v0.2.0
func (v *ServiceABack_Hello_Result) IsSetSuccess() bool
IsSetSuccess returns true if Success is not nil.
func (ServiceABack_Hello_Result) MarshalEasyJSON ¶
func (v ServiceABack_Hello_Result) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (ServiceABack_Hello_Result) MarshalJSON ¶
func (v ServiceABack_Hello_Result) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*ServiceABack_Hello_Result) MarshalLogObject ¶ added in v0.2.0
func (v *ServiceABack_Hello_Result) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
MarshalLogObject implements zapcore.ObjectMarshaler, enabling fast logging of ServiceABack_Hello_Result.
func (*ServiceABack_Hello_Result) MethodName ¶
func (v *ServiceABack_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 (*ServiceABack_Hello_Result) String ¶
func (v *ServiceABack_Hello_Result) String() string
String returns a readable string representation of a ServiceABack_Hello_Result struct.
func (*ServiceABack_Hello_Result) ToWire ¶
func (v *ServiceABack_Hello_Result) ToWire() (wire.Value, error)
ToWire translates a ServiceABack_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 (*ServiceABack_Hello_Result) UnmarshalEasyJSON ¶
func (v *ServiceABack_Hello_Result) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*ServiceABack_Hello_Result) UnmarshalJSON ¶
func (v *ServiceABack_Hello_Result) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type ServiceBBack_Hello_Args ¶
type ServiceBBack_Hello_Args struct { }
ServiceBBack_Hello_Args represents the arguments for the ServiceBBack.hello function.
The arguments for hello are sent and received over the wire as this struct.
func (*ServiceBBack_Hello_Args) EnvelopeType ¶
func (v *ServiceBBack_Hello_Args) EnvelopeType() wire.EnvelopeType
EnvelopeType returns the kind of value inside this struct.
This will always be Call for this struct.
func (*ServiceBBack_Hello_Args) Equals ¶
func (v *ServiceBBack_Hello_Args) Equals(rhs *ServiceBBack_Hello_Args) bool
Equals returns true if all the fields of this ServiceBBack_Hello_Args match the provided ServiceBBack_Hello_Args.
This function performs a deep comparison.
func (*ServiceBBack_Hello_Args) FromWire ¶
func (v *ServiceBBack_Hello_Args) FromWire(w wire.Value) error
FromWire deserializes a ServiceBBack_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 ServiceBBack_Hello_Args struct from the provided intermediate representation.
x, err := binaryProtocol.Decode(reader, wire.TStruct) if err != nil { return nil, err } var v ServiceBBack_Hello_Args if err := v.FromWire(x); err != nil { return nil, err } return &v, nil
func (ServiceBBack_Hello_Args) MarshalEasyJSON ¶
func (v ServiceBBack_Hello_Args) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (ServiceBBack_Hello_Args) MarshalJSON ¶
func (v ServiceBBack_Hello_Args) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*ServiceBBack_Hello_Args) MarshalLogObject ¶ added in v0.2.0
func (v *ServiceBBack_Hello_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
MarshalLogObject implements zapcore.ObjectMarshaler, enabling fast logging of ServiceBBack_Hello_Args.
func (*ServiceBBack_Hello_Args) MethodName ¶
func (v *ServiceBBack_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 (*ServiceBBack_Hello_Args) String ¶
func (v *ServiceBBack_Hello_Args) String() string
String returns a readable string representation of a ServiceBBack_Hello_Args struct.
func (*ServiceBBack_Hello_Args) ToWire ¶
func (v *ServiceBBack_Hello_Args) ToWire() (wire.Value, error)
ToWire translates a ServiceBBack_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 (*ServiceBBack_Hello_Args) UnmarshalEasyJSON ¶
func (v *ServiceBBack_Hello_Args) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*ServiceBBack_Hello_Args) UnmarshalJSON ¶
func (v *ServiceBBack_Hello_Args) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type ServiceBBack_Hello_Result ¶
type ServiceBBack_Hello_Result struct { // Value returned by hello after a successful execution. Success *string `json:"success,omitempty"` }
ServiceBBack_Hello_Result represents the result of a ServiceBBack.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 (*ServiceBBack_Hello_Result) EnvelopeType ¶
func (v *ServiceBBack_Hello_Result) EnvelopeType() wire.EnvelopeType
EnvelopeType returns the kind of value inside this struct.
This will always be Reply for this struct.
func (*ServiceBBack_Hello_Result) Equals ¶
func (v *ServiceBBack_Hello_Result) Equals(rhs *ServiceBBack_Hello_Result) bool
Equals returns true if all the fields of this ServiceBBack_Hello_Result match the provided ServiceBBack_Hello_Result.
This function performs a deep comparison.
func (*ServiceBBack_Hello_Result) FromWire ¶
func (v *ServiceBBack_Hello_Result) FromWire(w wire.Value) error
FromWire deserializes a ServiceBBack_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 ServiceBBack_Hello_Result struct from the provided intermediate representation.
x, err := binaryProtocol.Decode(reader, wire.TStruct) if err != nil { return nil, err } var v ServiceBBack_Hello_Result if err := v.FromWire(x); err != nil { return nil, err } return &v, nil
func (*ServiceBBack_Hello_Result) GetSuccess ¶
func (v *ServiceBBack_Hello_Result) GetSuccess() (o string)
GetSuccess returns the value of Success if it is set or its zero value if it is unset.
func (*ServiceBBack_Hello_Result) IsSetSuccess ¶ added in v0.2.0
func (v *ServiceBBack_Hello_Result) IsSetSuccess() bool
IsSetSuccess returns true if Success is not nil.
func (ServiceBBack_Hello_Result) MarshalEasyJSON ¶
func (v ServiceBBack_Hello_Result) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (ServiceBBack_Hello_Result) MarshalJSON ¶
func (v ServiceBBack_Hello_Result) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*ServiceBBack_Hello_Result) MarshalLogObject ¶ added in v0.2.0
func (v *ServiceBBack_Hello_Result) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
MarshalLogObject implements zapcore.ObjectMarshaler, enabling fast logging of ServiceBBack_Hello_Result.
func (*ServiceBBack_Hello_Result) MethodName ¶
func (v *ServiceBBack_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 (*ServiceBBack_Hello_Result) String ¶
func (v *ServiceBBack_Hello_Result) String() string
String returns a readable string representation of a ServiceBBack_Hello_Result struct.
func (*ServiceBBack_Hello_Result) ToWire ¶
func (v *ServiceBBack_Hello_Result) ToWire() (wire.Value, error)
ToWire translates a ServiceBBack_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 (*ServiceBBack_Hello_Result) UnmarshalEasyJSON ¶
func (v *ServiceBBack_Hello_Result) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*ServiceBBack_Hello_Result) UnmarshalJSON ¶
func (v *ServiceBBack_Hello_Result) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type ServiceCBack_Hello_Args ¶ added in v0.2.0
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) EnvelopeType ¶ added in v0.2.0
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 ¶ added in v0.2.0
func (v *ServiceCBack_Hello_Args) Equals(rhs *ServiceCBack_Hello_Args) bool
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 ¶ added in v0.2.0
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 ¶ added in v0.2.0
func (v ServiceCBack_Hello_Args) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (ServiceCBack_Hello_Args) MarshalJSON ¶ added in v0.2.0
func (v ServiceCBack_Hello_Args) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*ServiceCBack_Hello_Args) MarshalLogObject ¶ added in v0.2.0
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 ¶ added in v0.2.0
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 ¶ added in v0.2.0
func (v *ServiceCBack_Hello_Args) String() string
String returns a readable string representation of a ServiceCBack_Hello_Args struct.
func (*ServiceCBack_Hello_Args) ToWire ¶ added in v0.2.0
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 ¶ added in v0.2.0
func (v *ServiceCBack_Hello_Args) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*ServiceCBack_Hello_Args) UnmarshalJSON ¶ added in v0.2.0
func (v *ServiceCBack_Hello_Args) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type ServiceCBack_Hello_Result ¶ added in v0.2.0
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) EnvelopeType ¶ added in v0.2.0
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 ¶ added in v0.2.0
func (v *ServiceCBack_Hello_Result) Equals(rhs *ServiceCBack_Hello_Result) bool
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 ¶ added in v0.2.0
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 ¶ added in v0.2.0
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 ¶ added in v0.2.0
func (v *ServiceCBack_Hello_Result) IsSetSuccess() bool
IsSetSuccess returns true if Success is not nil.
func (ServiceCBack_Hello_Result) MarshalEasyJSON ¶ added in v0.2.0
func (v ServiceCBack_Hello_Result) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (ServiceCBack_Hello_Result) MarshalJSON ¶ added in v0.2.0
func (v ServiceCBack_Hello_Result) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*ServiceCBack_Hello_Result) MarshalLogObject ¶ added in v0.2.0
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 ¶ added in v0.2.0
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 ¶ added in v0.2.0
func (v *ServiceCBack_Hello_Result) String() string
String returns a readable string representation of a ServiceCBack_Hello_Result struct.
func (*ServiceCBack_Hello_Result) ToWire ¶ added in v0.2.0
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 ¶ added in v0.2.0
func (v *ServiceCBack_Hello_Result) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*ServiceCBack_Hello_Result) UnmarshalJSON ¶ added in v0.2.0
func (v *ServiceCBack_Hello_Result) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface