Documentation ¶
Index ¶
- Variables
- type Corge_EchoBool_Args
- func (v *Corge_EchoBool_Args) EnvelopeType() wire.EnvelopeType
- func (v *Corge_EchoBool_Args) Equals(rhs *Corge_EchoBool_Args) bool
- func (v *Corge_EchoBool_Args) FromWire(w wire.Value) error
- func (v *Corge_EchoBool_Args) GetArg() (o bool)
- func (v Corge_EchoBool_Args) MarshalEasyJSON(w *jwriter.Writer)
- func (v Corge_EchoBool_Args) MarshalJSON() ([]byte, error)
- func (v *Corge_EchoBool_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
- func (v *Corge_EchoBool_Args) MethodName() string
- func (v *Corge_EchoBool_Args) String() string
- func (v *Corge_EchoBool_Args) ToWire() (wire.Value, error)
- func (v *Corge_EchoBool_Args) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *Corge_EchoBool_Args) UnmarshalJSON(data []byte) error
- type Corge_EchoBool_Result
- func (v *Corge_EchoBool_Result) EnvelopeType() wire.EnvelopeType
- func (v *Corge_EchoBool_Result) Equals(rhs *Corge_EchoBool_Result) bool
- func (v *Corge_EchoBool_Result) FromWire(w wire.Value) error
- func (v *Corge_EchoBool_Result) GetSuccess() (o bool)
- func (v *Corge_EchoBool_Result) IsSetSuccess() bool
- func (v Corge_EchoBool_Result) MarshalEasyJSON(w *jwriter.Writer)
- func (v Corge_EchoBool_Result) MarshalJSON() ([]byte, error)
- func (v *Corge_EchoBool_Result) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
- func (v *Corge_EchoBool_Result) MethodName() string
- func (v *Corge_EchoBool_Result) String() string
- func (v *Corge_EchoBool_Result) ToWire() (wire.Value, error)
- func (v *Corge_EchoBool_Result) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *Corge_EchoBool_Result) UnmarshalJSON(data []byte) error
- type Corge_EchoString_Args
- func (v *Corge_EchoString_Args) EnvelopeType() wire.EnvelopeType
- func (v *Corge_EchoString_Args) Equals(rhs *Corge_EchoString_Args) bool
- func (v *Corge_EchoString_Args) FromWire(w wire.Value) error
- func (v *Corge_EchoString_Args) GetArg() (o string)
- func (v Corge_EchoString_Args) MarshalEasyJSON(w *jwriter.Writer)
- func (v Corge_EchoString_Args) MarshalJSON() ([]byte, error)
- func (v *Corge_EchoString_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
- func (v *Corge_EchoString_Args) MethodName() string
- func (v *Corge_EchoString_Args) String() string
- func (v *Corge_EchoString_Args) ToWire() (wire.Value, error)
- func (v *Corge_EchoString_Args) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *Corge_EchoString_Args) UnmarshalJSON(data []byte) error
- type Corge_EchoString_Result
- func (v *Corge_EchoString_Result) EnvelopeType() wire.EnvelopeType
- func (v *Corge_EchoString_Result) Equals(rhs *Corge_EchoString_Result) bool
- func (v *Corge_EchoString_Result) FromWire(w wire.Value) error
- func (v *Corge_EchoString_Result) GetSuccess() (o string)
- func (v *Corge_EchoString_Result) IsSetSuccess() bool
- func (v Corge_EchoString_Result) MarshalEasyJSON(w *jwriter.Writer)
- func (v Corge_EchoString_Result) MarshalJSON() ([]byte, error)
- func (v *Corge_EchoString_Result) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
- func (v *Corge_EchoString_Result) MethodName() string
- func (v *Corge_EchoString_Result) String() string
- func (v *Corge_EchoString_Result) ToWire() (wire.Value, error)
- func (v *Corge_EchoString_Result) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *Corge_EchoString_Result) UnmarshalJSON(data []byte) error
Constants ¶
This section is empty.
Variables ¶
var Corge_EchoBool_Helper = struct { // Args accepts the parameters of echoBool in-order and returns // the arguments struct for the function. Args func( arg bool, ) *Corge_EchoBool_Args // IsException returns true if the given error can be thrown // by echoBool. // // An error can be thrown by echoBool 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 echoBool // given its return value and error. // // This allows mapping values and errors returned by // echoBool into a serializable result struct. // WrapResponse returns a non-nil error if the provided // error cannot be thrown by echoBool // // value, err := echoBool(args) // result, err := Corge_EchoBool_Helper.WrapResponse(value, err) // if err != nil { // return fmt.Errorf("unexpected error from echoBool: %v", err) // } // serialize(result) WrapResponse func(bool, error) (*Corge_EchoBool_Result, error) // UnwrapResponse takes the result struct for echoBool // and returns the value or error returned by it. // // The error is non-nil only if echoBool threw an // exception. // // result := deserialize(bytes) // value, err := Corge_EchoBool_Helper.UnwrapResponse(result) UnwrapResponse func(*Corge_EchoBool_Result) (bool, error) }{}
Corge_EchoBool_Helper provides functions that aid in handling the parameters and return values of the Corge.echoBool function.
var Corge_EchoString_Helper = struct { // Args accepts the parameters of echoString in-order and returns // the arguments struct for the function. Args func( arg string, ) *Corge_EchoString_Args // IsException returns true if the given error can be thrown // by echoString. // // An error can be thrown by echoString 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 echoString // given its return value and error. // // This allows mapping values and errors returned by // echoString into a serializable result struct. // WrapResponse returns a non-nil error if the provided // error cannot be thrown by echoString // // value, err := echoString(args) // result, err := Corge_EchoString_Helper.WrapResponse(value, err) // if err != nil { // return fmt.Errorf("unexpected error from echoString: %v", err) // } // serialize(result) WrapResponse func(string, error) (*Corge_EchoString_Result, error) // UnwrapResponse takes the result struct for echoString // and returns the value or error returned by it. // // The error is non-nil only if echoString threw an // exception. // // result := deserialize(bytes) // value, err := Corge_EchoString_Helper.UnwrapResponse(result) UnwrapResponse func(*Corge_EchoString_Result) (string, error) }{}
Corge_EchoString_Helper provides functions that aid in handling the parameters and return values of the Corge.echoString function.
Functions ¶
This section is empty.
Types ¶
type Corge_EchoBool_Args ¶
type Corge_EchoBool_Args struct {
Arg bool `json:"arg,required"`
}
Corge_EchoBool_Args represents the arguments for the Corge.echoBool function.
The arguments for echoBool are sent and received over the wire as this struct.
func (*Corge_EchoBool_Args) EnvelopeType ¶
func (v *Corge_EchoBool_Args) EnvelopeType() wire.EnvelopeType
EnvelopeType returns the kind of value inside this struct.
This will always be Call for this struct.
func (*Corge_EchoBool_Args) Equals ¶
func (v *Corge_EchoBool_Args) Equals(rhs *Corge_EchoBool_Args) bool
Equals returns true if all the fields of this Corge_EchoBool_Args match the provided Corge_EchoBool_Args.
This function performs a deep comparison.
func (*Corge_EchoBool_Args) FromWire ¶
func (v *Corge_EchoBool_Args) FromWire(w wire.Value) error
FromWire deserializes a Corge_EchoBool_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 Corge_EchoBool_Args struct from the provided intermediate representation.
x, err := binaryProtocol.Decode(reader, wire.TStruct) if err != nil { return nil, err } var v Corge_EchoBool_Args if err := v.FromWire(x); err != nil { return nil, err } return &v, nil
func (*Corge_EchoBool_Args) GetArg ¶
func (v *Corge_EchoBool_Args) GetArg() (o bool)
GetArg returns the value of Arg if it is set or its zero value if it is unset.
func (Corge_EchoBool_Args) MarshalEasyJSON ¶
func (v Corge_EchoBool_Args) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (Corge_EchoBool_Args) MarshalJSON ¶
func (v Corge_EchoBool_Args) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*Corge_EchoBool_Args) MarshalLogObject ¶
func (v *Corge_EchoBool_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
MarshalLogObject implements zapcore.ObjectMarshaler, enabling fast logging of Corge_EchoBool_Args.
func (*Corge_EchoBool_Args) MethodName ¶
func (v *Corge_EchoBool_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 "echoBool" for this struct.
func (*Corge_EchoBool_Args) String ¶
func (v *Corge_EchoBool_Args) String() string
String returns a readable string representation of a Corge_EchoBool_Args struct.
func (*Corge_EchoBool_Args) ToWire ¶
func (v *Corge_EchoBool_Args) ToWire() (wire.Value, error)
ToWire translates a Corge_EchoBool_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 (*Corge_EchoBool_Args) UnmarshalEasyJSON ¶
func (v *Corge_EchoBool_Args) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Corge_EchoBool_Args) UnmarshalJSON ¶
func (v *Corge_EchoBool_Args) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type Corge_EchoBool_Result ¶
type Corge_EchoBool_Result struct { // Value returned by echoBool after a successful execution. Success *bool `json:"success,omitempty"` }
Corge_EchoBool_Result represents the result of a Corge.echoBool function call.
The result of a echoBool execution is sent and received over the wire as this struct.
Success is set only if the function did not throw an exception.
func (*Corge_EchoBool_Result) EnvelopeType ¶
func (v *Corge_EchoBool_Result) EnvelopeType() wire.EnvelopeType
EnvelopeType returns the kind of value inside this struct.
This will always be Reply for this struct.
func (*Corge_EchoBool_Result) Equals ¶
func (v *Corge_EchoBool_Result) Equals(rhs *Corge_EchoBool_Result) bool
Equals returns true if all the fields of this Corge_EchoBool_Result match the provided Corge_EchoBool_Result.
This function performs a deep comparison.
func (*Corge_EchoBool_Result) FromWire ¶
func (v *Corge_EchoBool_Result) FromWire(w wire.Value) error
FromWire deserializes a Corge_EchoBool_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 Corge_EchoBool_Result struct from the provided intermediate representation.
x, err := binaryProtocol.Decode(reader, wire.TStruct) if err != nil { return nil, err } var v Corge_EchoBool_Result if err := v.FromWire(x); err != nil { return nil, err } return &v, nil
func (*Corge_EchoBool_Result) GetSuccess ¶
func (v *Corge_EchoBool_Result) GetSuccess() (o bool)
GetSuccess returns the value of Success if it is set or its zero value if it is unset.
func (*Corge_EchoBool_Result) IsSetSuccess ¶
func (v *Corge_EchoBool_Result) IsSetSuccess() bool
IsSetSuccess returns true if Success is not nil.
func (Corge_EchoBool_Result) MarshalEasyJSON ¶
func (v Corge_EchoBool_Result) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (Corge_EchoBool_Result) MarshalJSON ¶
func (v Corge_EchoBool_Result) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*Corge_EchoBool_Result) MarshalLogObject ¶
func (v *Corge_EchoBool_Result) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
MarshalLogObject implements zapcore.ObjectMarshaler, enabling fast logging of Corge_EchoBool_Result.
func (*Corge_EchoBool_Result) MethodName ¶
func (v *Corge_EchoBool_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 "echoBool" for this struct.
func (*Corge_EchoBool_Result) String ¶
func (v *Corge_EchoBool_Result) String() string
String returns a readable string representation of a Corge_EchoBool_Result struct.
func (*Corge_EchoBool_Result) ToWire ¶
func (v *Corge_EchoBool_Result) ToWire() (wire.Value, error)
ToWire translates a Corge_EchoBool_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 (*Corge_EchoBool_Result) UnmarshalEasyJSON ¶
func (v *Corge_EchoBool_Result) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Corge_EchoBool_Result) UnmarshalJSON ¶
func (v *Corge_EchoBool_Result) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type Corge_EchoString_Args ¶
type Corge_EchoString_Args struct {
Arg string `json:"arg,required"`
}
Corge_EchoString_Args represents the arguments for the Corge.echoString function.
The arguments for echoString are sent and received over the wire as this struct.
func (*Corge_EchoString_Args) EnvelopeType ¶
func (v *Corge_EchoString_Args) EnvelopeType() wire.EnvelopeType
EnvelopeType returns the kind of value inside this struct.
This will always be Call for this struct.
func (*Corge_EchoString_Args) Equals ¶
func (v *Corge_EchoString_Args) Equals(rhs *Corge_EchoString_Args) bool
Equals returns true if all the fields of this Corge_EchoString_Args match the provided Corge_EchoString_Args.
This function performs a deep comparison.
func (*Corge_EchoString_Args) FromWire ¶
func (v *Corge_EchoString_Args) FromWire(w wire.Value) error
FromWire deserializes a Corge_EchoString_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 Corge_EchoString_Args struct from the provided intermediate representation.
x, err := binaryProtocol.Decode(reader, wire.TStruct) if err != nil { return nil, err } var v Corge_EchoString_Args if err := v.FromWire(x); err != nil { return nil, err } return &v, nil
func (*Corge_EchoString_Args) GetArg ¶
func (v *Corge_EchoString_Args) GetArg() (o string)
GetArg returns the value of Arg if it is set or its zero value if it is unset.
func (Corge_EchoString_Args) MarshalEasyJSON ¶
func (v Corge_EchoString_Args) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (Corge_EchoString_Args) MarshalJSON ¶
func (v Corge_EchoString_Args) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*Corge_EchoString_Args) MarshalLogObject ¶
func (v *Corge_EchoString_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
MarshalLogObject implements zapcore.ObjectMarshaler, enabling fast logging of Corge_EchoString_Args.
func (*Corge_EchoString_Args) MethodName ¶
func (v *Corge_EchoString_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 "echoString" for this struct.
func (*Corge_EchoString_Args) String ¶
func (v *Corge_EchoString_Args) String() string
String returns a readable string representation of a Corge_EchoString_Args struct.
func (*Corge_EchoString_Args) ToWire ¶
func (v *Corge_EchoString_Args) ToWire() (wire.Value, error)
ToWire translates a Corge_EchoString_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 (*Corge_EchoString_Args) UnmarshalEasyJSON ¶
func (v *Corge_EchoString_Args) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Corge_EchoString_Args) UnmarshalJSON ¶
func (v *Corge_EchoString_Args) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type Corge_EchoString_Result ¶
type Corge_EchoString_Result struct { // Value returned by echoString after a successful execution. Success *string `json:"success,omitempty"` }
Corge_EchoString_Result represents the result of a Corge.echoString function call.
The result of a echoString execution is sent and received over the wire as this struct.
Success is set only if the function did not throw an exception.
func (*Corge_EchoString_Result) EnvelopeType ¶
func (v *Corge_EchoString_Result) EnvelopeType() wire.EnvelopeType
EnvelopeType returns the kind of value inside this struct.
This will always be Reply for this struct.
func (*Corge_EchoString_Result) Equals ¶
func (v *Corge_EchoString_Result) Equals(rhs *Corge_EchoString_Result) bool
Equals returns true if all the fields of this Corge_EchoString_Result match the provided Corge_EchoString_Result.
This function performs a deep comparison.
func (*Corge_EchoString_Result) FromWire ¶
func (v *Corge_EchoString_Result) FromWire(w wire.Value) error
FromWire deserializes a Corge_EchoString_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 Corge_EchoString_Result struct from the provided intermediate representation.
x, err := binaryProtocol.Decode(reader, wire.TStruct) if err != nil { return nil, err } var v Corge_EchoString_Result if err := v.FromWire(x); err != nil { return nil, err } return &v, nil
func (*Corge_EchoString_Result) GetSuccess ¶
func (v *Corge_EchoString_Result) GetSuccess() (o string)
GetSuccess returns the value of Success if it is set or its zero value if it is unset.
func (*Corge_EchoString_Result) IsSetSuccess ¶
func (v *Corge_EchoString_Result) IsSetSuccess() bool
IsSetSuccess returns true if Success is not nil.
func (Corge_EchoString_Result) MarshalEasyJSON ¶
func (v Corge_EchoString_Result) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (Corge_EchoString_Result) MarshalJSON ¶
func (v Corge_EchoString_Result) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*Corge_EchoString_Result) MarshalLogObject ¶
func (v *Corge_EchoString_Result) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
MarshalLogObject implements zapcore.ObjectMarshaler, enabling fast logging of Corge_EchoString_Result.
func (*Corge_EchoString_Result) MethodName ¶
func (v *Corge_EchoString_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 "echoString" for this struct.
func (*Corge_EchoString_Result) String ¶
func (v *Corge_EchoString_Result) String() string
String returns a readable string representation of a Corge_EchoString_Result struct.
func (*Corge_EchoString_Result) ToWire ¶
func (v *Corge_EchoString_Result) ToWire() (wire.Value, error)
ToWire translates a Corge_EchoString_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 (*Corge_EchoString_Result) UnmarshalEasyJSON ¶
func (v *Corge_EchoString_Result) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Corge_EchoString_Result) UnmarshalJSON ¶
func (v *Corge_EchoString_Result) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface