Documentation ¶
Index ¶
- Variables
- type Corge_EchoBool_Args
- func (v *Corge_EchoBool_Args) Decode(sr stream.Reader) error
- func (v *Corge_EchoBool_Args) Encode(sw stream.Writer) error
- 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) Decode(sr stream.Reader) error
- func (v *Corge_EchoBool_Result) Encode(sw stream.Writer) error
- 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) Decode(sr stream.Reader) error
- func (v *Corge_EchoString_Args) Encode(sw stream.Writer) error
- 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) Decode(sr stream.Reader) error
- func (v *Corge_EchoString_Result) Encode(sw stream.Writer) error
- 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
- type Corge_NoContentNoException_Args
- func (v *Corge_NoContentNoException_Args) Decode(sr stream.Reader) error
- func (v *Corge_NoContentNoException_Args) Encode(sw stream.Writer) error
- func (v *Corge_NoContentNoException_Args) EnvelopeType() wire.EnvelopeType
- func (v *Corge_NoContentNoException_Args) Equals(rhs *Corge_NoContentNoException_Args) bool
- func (v *Corge_NoContentNoException_Args) FromWire(w wire.Value) error
- func (v *Corge_NoContentNoException_Args) GetArg() (o bool)
- func (v Corge_NoContentNoException_Args) MarshalEasyJSON(w *jwriter.Writer)
- func (v Corge_NoContentNoException_Args) MarshalJSON() ([]byte, error)
- func (v *Corge_NoContentNoException_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
- func (v *Corge_NoContentNoException_Args) MethodName() string
- func (v *Corge_NoContentNoException_Args) String() string
- func (v *Corge_NoContentNoException_Args) ToWire() (wire.Value, error)
- func (v *Corge_NoContentNoException_Args) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *Corge_NoContentNoException_Args) UnmarshalJSON(data []byte) error
- type Corge_NoContentNoException_Result
- func (v *Corge_NoContentNoException_Result) Decode(sr stream.Reader) error
- func (v *Corge_NoContentNoException_Result) Encode(sw stream.Writer) error
- func (v *Corge_NoContentNoException_Result) EnvelopeType() wire.EnvelopeType
- func (v *Corge_NoContentNoException_Result) Equals(rhs *Corge_NoContentNoException_Result) bool
- func (v *Corge_NoContentNoException_Result) FromWire(w wire.Value) error
- func (v Corge_NoContentNoException_Result) MarshalEasyJSON(w *jwriter.Writer)
- func (v Corge_NoContentNoException_Result) MarshalJSON() ([]byte, error)
- func (v *Corge_NoContentNoException_Result) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
- func (v *Corge_NoContentNoException_Result) MethodName() string
- func (v *Corge_NoContentNoException_Result) String() string
- func (v *Corge_NoContentNoException_Result) ToWire() (wire.Value, error)
- func (v *Corge_NoContentNoException_Result) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *Corge_NoContentNoException_Result) UnmarshalJSON(data []byte) error
- type Corge_NoContentOnException_Args
- func (v *Corge_NoContentOnException_Args) Decode(sr stream.Reader) error
- func (v *Corge_NoContentOnException_Args) Encode(sw stream.Writer) error
- func (v *Corge_NoContentOnException_Args) EnvelopeType() wire.EnvelopeType
- func (v *Corge_NoContentOnException_Args) Equals(rhs *Corge_NoContentOnException_Args) bool
- func (v *Corge_NoContentOnException_Args) FromWire(w wire.Value) error
- func (v *Corge_NoContentOnException_Args) GetArg() (o bool)
- func (v Corge_NoContentOnException_Args) MarshalEasyJSON(w *jwriter.Writer)
- func (v Corge_NoContentOnException_Args) MarshalJSON() ([]byte, error)
- func (v *Corge_NoContentOnException_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
- func (v *Corge_NoContentOnException_Args) MethodName() string
- func (v *Corge_NoContentOnException_Args) String() string
- func (v *Corge_NoContentOnException_Args) ToWire() (wire.Value, error)
- func (v *Corge_NoContentOnException_Args) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *Corge_NoContentOnException_Args) UnmarshalJSON(data []byte) error
- type Corge_NoContentOnException_Result
- func (v *Corge_NoContentOnException_Result) Decode(sr stream.Reader) error
- func (v *Corge_NoContentOnException_Result) Encode(sw stream.Writer) error
- func (v *Corge_NoContentOnException_Result) EnvelopeType() wire.EnvelopeType
- func (v *Corge_NoContentOnException_Result) Equals(rhs *Corge_NoContentOnException_Result) bool
- func (v *Corge_NoContentOnException_Result) FromWire(w wire.Value) error
- func (v *Corge_NoContentOnException_Result) GetNotModified() (o *NotModified)
- func (v *Corge_NoContentOnException_Result) GetSuccess() (o *Foo)
- func (v *Corge_NoContentOnException_Result) IsSetNotModified() bool
- func (v *Corge_NoContentOnException_Result) IsSetSuccess() bool
- func (v Corge_NoContentOnException_Result) MarshalEasyJSON(w *jwriter.Writer)
- func (v Corge_NoContentOnException_Result) MarshalJSON() ([]byte, error)
- func (v *Corge_NoContentOnException_Result) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
- func (v *Corge_NoContentOnException_Result) MethodName() string
- func (v *Corge_NoContentOnException_Result) String() string
- func (v *Corge_NoContentOnException_Result) ToWire() (wire.Value, error)
- func (v *Corge_NoContentOnException_Result) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *Corge_NoContentOnException_Result) UnmarshalJSON(data []byte) error
- type Corge_NoContent_Args
- func (v *Corge_NoContent_Args) Decode(sr stream.Reader) error
- func (v *Corge_NoContent_Args) Encode(sw stream.Writer) error
- func (v *Corge_NoContent_Args) EnvelopeType() wire.EnvelopeType
- func (v *Corge_NoContent_Args) Equals(rhs *Corge_NoContent_Args) bool
- func (v *Corge_NoContent_Args) FromWire(w wire.Value) error
- func (v *Corge_NoContent_Args) GetArg() (o bool)
- func (v Corge_NoContent_Args) MarshalEasyJSON(w *jwriter.Writer)
- func (v Corge_NoContent_Args) MarshalJSON() ([]byte, error)
- func (v *Corge_NoContent_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
- func (v *Corge_NoContent_Args) MethodName() string
- func (v *Corge_NoContent_Args) String() string
- func (v *Corge_NoContent_Args) ToWire() (wire.Value, error)
- func (v *Corge_NoContent_Args) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *Corge_NoContent_Args) UnmarshalJSON(data []byte) error
- type Corge_NoContent_Result
- func (v *Corge_NoContent_Result) Decode(sr stream.Reader) error
- func (v *Corge_NoContent_Result) Encode(sw stream.Writer) error
- func (v *Corge_NoContent_Result) EnvelopeType() wire.EnvelopeType
- func (v *Corge_NoContent_Result) Equals(rhs *Corge_NoContent_Result) bool
- func (v *Corge_NoContent_Result) FromWire(w wire.Value) error
- func (v *Corge_NoContent_Result) GetNotModified() (o *NotModified)
- func (v *Corge_NoContent_Result) IsSetNotModified() bool
- func (v Corge_NoContent_Result) MarshalEasyJSON(w *jwriter.Writer)
- func (v Corge_NoContent_Result) MarshalJSON() ([]byte, error)
- func (v *Corge_NoContent_Result) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
- func (v *Corge_NoContent_Result) MethodName() string
- func (v *Corge_NoContent_Result) String() string
- func (v *Corge_NoContent_Result) ToWire() (wire.Value, error)
- func (v *Corge_NoContent_Result) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *Corge_NoContent_Result) UnmarshalJSON(data []byte) error
- type Foo
- func (v *Foo) Decode(sr stream.Reader) error
- func (v *Foo) Encode(sw stream.Writer) error
- func (v *Foo) Equals(rhs *Foo) bool
- func (v *Foo) FromWire(w wire.Value) error
- func (v Foo) MarshalEasyJSON(w *jwriter.Writer)
- func (v Foo) MarshalJSON() ([]byte, error)
- func (v *Foo) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
- func (v *Foo) String() string
- func (v *Foo) ToWire() (wire.Value, error)
- func (v *Foo) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *Foo) UnmarshalJSON(data []byte) error
- type NotModified
- func (v *NotModified) Decode(sr stream.Reader) error
- func (v *NotModified) Encode(sw stream.Writer) error
- func (v *NotModified) Equals(rhs *NotModified) bool
- func (v *NotModified) Error() string
- func (*NotModified) ErrorName() string
- func (v *NotModified) FromWire(w wire.Value) error
- func (v NotModified) MarshalEasyJSON(w *jwriter.Writer)
- func (v NotModified) MarshalJSON() ([]byte, error)
- func (v *NotModified) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
- func (v *NotModified) String() string
- func (v *NotModified) ToWire() (wire.Value, error)
- func (v *NotModified) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *NotModified) 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.
var Corge_NoContentNoException_Helper = struct { // Args accepts the parameters of noContentNoException in-order and returns // the arguments struct for the function. Args func( arg bool, ) *Corge_NoContentNoException_Args // IsException returns true if the given error can be thrown // by noContentNoException. // // An error can be thrown by noContentNoException 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 noContentNoException // given the error returned by it. The provided error may // be nil if noContentNoException did not fail. // // This allows mapping errors returned by noContentNoException into a // serializable result struct. WrapResponse returns a // non-nil error if the provided error cannot be thrown by // noContentNoException // // err := noContentNoException(args) // result, err := Corge_NoContentNoException_Helper.WrapResponse(err) // if err != nil { // return fmt.Errorf("unexpected error from noContentNoException: %v", err) // } // serialize(result) WrapResponse func(error) (*Corge_NoContentNoException_Result, error) // UnwrapResponse takes the result struct for noContentNoException // and returns the erorr returned by it (if any). // // The error is non-nil only if noContentNoException threw an // exception. // // result := deserialize(bytes) // err := Corge_NoContentNoException_Helper.UnwrapResponse(result) UnwrapResponse func(*Corge_NoContentNoException_Result) error }{}
Corge_NoContentNoException_Helper provides functions that aid in handling the parameters and return values of the Corge.noContentNoException function.
var Corge_NoContentOnException_Helper = struct { // Args accepts the parameters of noContentOnException in-order and returns // the arguments struct for the function. Args func( arg bool, ) *Corge_NoContentOnException_Args // IsException returns true if the given error can be thrown // by noContentOnException. // // An error can be thrown by noContentOnException 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 noContentOnException // given its return value and error. // // This allows mapping values and errors returned by // noContentOnException into a serializable result struct. // WrapResponse returns a non-nil error if the provided // error cannot be thrown by noContentOnException // // value, err := noContentOnException(args) // result, err := Corge_NoContentOnException_Helper.WrapResponse(value, err) // if err != nil { // return fmt.Errorf("unexpected error from noContentOnException: %v", err) // } // serialize(result) WrapResponse func(*Foo, error) (*Corge_NoContentOnException_Result, error) // UnwrapResponse takes the result struct for noContentOnException // and returns the value or error returned by it. // // The error is non-nil only if noContentOnException threw an // exception. // // result := deserialize(bytes) // value, err := Corge_NoContentOnException_Helper.UnwrapResponse(result) UnwrapResponse func(*Corge_NoContentOnException_Result) (*Foo, error) }{}
Corge_NoContentOnException_Helper provides functions that aid in handling the parameters and return values of the Corge.noContentOnException function.
var Corge_NoContent_Helper = struct { // Args accepts the parameters of noContent in-order and returns // the arguments struct for the function. Args func( arg bool, ) *Corge_NoContent_Args // IsException returns true if the given error can be thrown // by noContent. // // An error can be thrown by noContent 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 noContent // given the error returned by it. The provided error may // be nil if noContent did not fail. // // This allows mapping errors returned by noContent into a // serializable result struct. WrapResponse returns a // non-nil error if the provided error cannot be thrown by // noContent // // err := noContent(args) // result, err := Corge_NoContent_Helper.WrapResponse(err) // if err != nil { // return fmt.Errorf("unexpected error from noContent: %v", err) // } // serialize(result) WrapResponse func(error) (*Corge_NoContent_Result, error) // UnwrapResponse takes the result struct for noContent // and returns the erorr returned by it (if any). // // The error is non-nil only if noContent threw an // exception. // // result := deserialize(bytes) // err := Corge_NoContent_Helper.UnwrapResponse(result) UnwrapResponse func(*Corge_NoContent_Result) error }{}
Corge_NoContent_Helper provides functions that aid in handling the parameters and return values of the Corge.noContent 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) Decode ¶
func (v *Corge_EchoBool_Args) Decode(sr stream.Reader) error
Decode deserializes a Corge_EchoBool_Args struct directly from its Thrift-level representation, without going through an intemediary type.
An error is returned if a Corge_EchoBool_Args struct could not be generated from the wire representation.
func (*Corge_EchoBool_Args) Encode ¶
func (v *Corge_EchoBool_Args) Encode(sw stream.Writer) error
Encode serializes a Corge_EchoBool_Args struct directly into bytes, without going through an intermediary type.
An error is returned if a Corge_EchoBool_Args struct could not be encoded.
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) Decode ¶
func (v *Corge_EchoBool_Result) Decode(sr stream.Reader) error
Decode deserializes a Corge_EchoBool_Result struct directly from its Thrift-level representation, without going through an intemediary type.
An error is returned if a Corge_EchoBool_Result struct could not be generated from the wire representation.
func (*Corge_EchoBool_Result) Encode ¶
func (v *Corge_EchoBool_Result) Encode(sw stream.Writer) error
Encode serializes a Corge_EchoBool_Result struct directly into bytes, without going through an intermediary type.
An error is returned if a Corge_EchoBool_Result struct could not be encoded.
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) Decode ¶
func (v *Corge_EchoString_Args) Decode(sr stream.Reader) error
Decode deserializes a Corge_EchoString_Args struct directly from its Thrift-level representation, without going through an intemediary type.
An error is returned if a Corge_EchoString_Args struct could not be generated from the wire representation.
func (*Corge_EchoString_Args) Encode ¶
func (v *Corge_EchoString_Args) Encode(sw stream.Writer) error
Encode serializes a Corge_EchoString_Args struct directly into bytes, without going through an intermediary type.
An error is returned if a Corge_EchoString_Args struct could not be encoded.
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) Decode ¶
func (v *Corge_EchoString_Result) Decode(sr stream.Reader) error
Decode deserializes a Corge_EchoString_Result struct directly from its Thrift-level representation, without going through an intemediary type.
An error is returned if a Corge_EchoString_Result struct could not be generated from the wire representation.
func (*Corge_EchoString_Result) Encode ¶
func (v *Corge_EchoString_Result) Encode(sw stream.Writer) error
Encode serializes a Corge_EchoString_Result struct directly into bytes, without going through an intermediary type.
An error is returned if a Corge_EchoString_Result struct could not be encoded.
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
type Corge_NoContentNoException_Args ¶
type Corge_NoContentNoException_Args struct {
Arg bool `json:"arg,required"`
}
Corge_NoContentNoException_Args represents the arguments for the Corge.noContentNoException function.
The arguments for noContentNoException are sent and received over the wire as this struct.
func (*Corge_NoContentNoException_Args) Decode ¶
func (v *Corge_NoContentNoException_Args) Decode(sr stream.Reader) error
Decode deserializes a Corge_NoContentNoException_Args struct directly from its Thrift-level representation, without going through an intemediary type.
An error is returned if a Corge_NoContentNoException_Args struct could not be generated from the wire representation.
func (*Corge_NoContentNoException_Args) Encode ¶
func (v *Corge_NoContentNoException_Args) Encode(sw stream.Writer) error
Encode serializes a Corge_NoContentNoException_Args struct directly into bytes, without going through an intermediary type.
An error is returned if a Corge_NoContentNoException_Args struct could not be encoded.
func (*Corge_NoContentNoException_Args) EnvelopeType ¶
func (v *Corge_NoContentNoException_Args) EnvelopeType() wire.EnvelopeType
EnvelopeType returns the kind of value inside this struct.
This will always be Call for this struct.
func (*Corge_NoContentNoException_Args) Equals ¶
func (v *Corge_NoContentNoException_Args) Equals(rhs *Corge_NoContentNoException_Args) bool
Equals returns true if all the fields of this Corge_NoContentNoException_Args match the provided Corge_NoContentNoException_Args.
This function performs a deep comparison.
func (*Corge_NoContentNoException_Args) FromWire ¶
func (v *Corge_NoContentNoException_Args) FromWire(w wire.Value) error
FromWire deserializes a Corge_NoContentNoException_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_NoContentNoException_Args struct from the provided intermediate representation.
x, err := binaryProtocol.Decode(reader, wire.TStruct) if err != nil { return nil, err } var v Corge_NoContentNoException_Args if err := v.FromWire(x); err != nil { return nil, err } return &v, nil
func (*Corge_NoContentNoException_Args) GetArg ¶
func (v *Corge_NoContentNoException_Args) GetArg() (o bool)
GetArg returns the value of Arg if it is set or its zero value if it is unset.
func (Corge_NoContentNoException_Args) MarshalEasyJSON ¶
func (v Corge_NoContentNoException_Args) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (Corge_NoContentNoException_Args) MarshalJSON ¶
func (v Corge_NoContentNoException_Args) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*Corge_NoContentNoException_Args) MarshalLogObject ¶
func (v *Corge_NoContentNoException_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
MarshalLogObject implements zapcore.ObjectMarshaler, enabling fast logging of Corge_NoContentNoException_Args.
func (*Corge_NoContentNoException_Args) MethodName ¶
func (v *Corge_NoContentNoException_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 "noContentNoException" for this struct.
func (*Corge_NoContentNoException_Args) String ¶
func (v *Corge_NoContentNoException_Args) String() string
String returns a readable string representation of a Corge_NoContentNoException_Args struct.
func (*Corge_NoContentNoException_Args) ToWire ¶
func (v *Corge_NoContentNoException_Args) ToWire() (wire.Value, error)
ToWire translates a Corge_NoContentNoException_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_NoContentNoException_Args) UnmarshalEasyJSON ¶
func (v *Corge_NoContentNoException_Args) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Corge_NoContentNoException_Args) UnmarshalJSON ¶
func (v *Corge_NoContentNoException_Args) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type Corge_NoContentNoException_Result ¶
type Corge_NoContentNoException_Result struct { }
Corge_NoContentNoException_Result represents the result of a Corge.noContentNoException function call.
The result of a noContentNoException execution is sent and received over the wire as this struct.
func (*Corge_NoContentNoException_Result) Decode ¶
func (v *Corge_NoContentNoException_Result) Decode(sr stream.Reader) error
Decode deserializes a Corge_NoContentNoException_Result struct directly from its Thrift-level representation, without going through an intemediary type.
An error is returned if a Corge_NoContentNoException_Result struct could not be generated from the wire representation.
func (*Corge_NoContentNoException_Result) Encode ¶
func (v *Corge_NoContentNoException_Result) Encode(sw stream.Writer) error
Encode serializes a Corge_NoContentNoException_Result struct directly into bytes, without going through an intermediary type.
An error is returned if a Corge_NoContentNoException_Result struct could not be encoded.
func (*Corge_NoContentNoException_Result) EnvelopeType ¶
func (v *Corge_NoContentNoException_Result) EnvelopeType() wire.EnvelopeType
EnvelopeType returns the kind of value inside this struct.
This will always be Reply for this struct.
func (*Corge_NoContentNoException_Result) Equals ¶
func (v *Corge_NoContentNoException_Result) Equals(rhs *Corge_NoContentNoException_Result) bool
Equals returns true if all the fields of this Corge_NoContentNoException_Result match the provided Corge_NoContentNoException_Result.
This function performs a deep comparison.
func (*Corge_NoContentNoException_Result) FromWire ¶
func (v *Corge_NoContentNoException_Result) FromWire(w wire.Value) error
FromWire deserializes a Corge_NoContentNoException_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_NoContentNoException_Result struct from the provided intermediate representation.
x, err := binaryProtocol.Decode(reader, wire.TStruct) if err != nil { return nil, err } var v Corge_NoContentNoException_Result if err := v.FromWire(x); err != nil { return nil, err } return &v, nil
func (Corge_NoContentNoException_Result) MarshalEasyJSON ¶
func (v Corge_NoContentNoException_Result) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (Corge_NoContentNoException_Result) MarshalJSON ¶
func (v Corge_NoContentNoException_Result) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*Corge_NoContentNoException_Result) MarshalLogObject ¶
func (v *Corge_NoContentNoException_Result) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
MarshalLogObject implements zapcore.ObjectMarshaler, enabling fast logging of Corge_NoContentNoException_Result.
func (*Corge_NoContentNoException_Result) MethodName ¶
func (v *Corge_NoContentNoException_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 "noContentNoException" for this struct.
func (*Corge_NoContentNoException_Result) String ¶
func (v *Corge_NoContentNoException_Result) String() string
String returns a readable string representation of a Corge_NoContentNoException_Result struct.
func (*Corge_NoContentNoException_Result) ToWire ¶
func (v *Corge_NoContentNoException_Result) ToWire() (wire.Value, error)
ToWire translates a Corge_NoContentNoException_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_NoContentNoException_Result) UnmarshalEasyJSON ¶
func (v *Corge_NoContentNoException_Result) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Corge_NoContentNoException_Result) UnmarshalJSON ¶
func (v *Corge_NoContentNoException_Result) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type Corge_NoContentOnException_Args ¶
type Corge_NoContentOnException_Args struct {
Arg bool `json:"arg,required"`
}
Corge_NoContentOnException_Args represents the arguments for the Corge.noContentOnException function.
The arguments for noContentOnException are sent and received over the wire as this struct.
func (*Corge_NoContentOnException_Args) Decode ¶
func (v *Corge_NoContentOnException_Args) Decode(sr stream.Reader) error
Decode deserializes a Corge_NoContentOnException_Args struct directly from its Thrift-level representation, without going through an intemediary type.
An error is returned if a Corge_NoContentOnException_Args struct could not be generated from the wire representation.
func (*Corge_NoContentOnException_Args) Encode ¶
func (v *Corge_NoContentOnException_Args) Encode(sw stream.Writer) error
Encode serializes a Corge_NoContentOnException_Args struct directly into bytes, without going through an intermediary type.
An error is returned if a Corge_NoContentOnException_Args struct could not be encoded.
func (*Corge_NoContentOnException_Args) EnvelopeType ¶
func (v *Corge_NoContentOnException_Args) EnvelopeType() wire.EnvelopeType
EnvelopeType returns the kind of value inside this struct.
This will always be Call for this struct.
func (*Corge_NoContentOnException_Args) Equals ¶
func (v *Corge_NoContentOnException_Args) Equals(rhs *Corge_NoContentOnException_Args) bool
Equals returns true if all the fields of this Corge_NoContentOnException_Args match the provided Corge_NoContentOnException_Args.
This function performs a deep comparison.
func (*Corge_NoContentOnException_Args) FromWire ¶
func (v *Corge_NoContentOnException_Args) FromWire(w wire.Value) error
FromWire deserializes a Corge_NoContentOnException_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_NoContentOnException_Args struct from the provided intermediate representation.
x, err := binaryProtocol.Decode(reader, wire.TStruct) if err != nil { return nil, err } var v Corge_NoContentOnException_Args if err := v.FromWire(x); err != nil { return nil, err } return &v, nil
func (*Corge_NoContentOnException_Args) GetArg ¶
func (v *Corge_NoContentOnException_Args) GetArg() (o bool)
GetArg returns the value of Arg if it is set or its zero value if it is unset.
func (Corge_NoContentOnException_Args) MarshalEasyJSON ¶
func (v Corge_NoContentOnException_Args) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (Corge_NoContentOnException_Args) MarshalJSON ¶
func (v Corge_NoContentOnException_Args) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*Corge_NoContentOnException_Args) MarshalLogObject ¶
func (v *Corge_NoContentOnException_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
MarshalLogObject implements zapcore.ObjectMarshaler, enabling fast logging of Corge_NoContentOnException_Args.
func (*Corge_NoContentOnException_Args) MethodName ¶
func (v *Corge_NoContentOnException_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 "noContentOnException" for this struct.
func (*Corge_NoContentOnException_Args) String ¶
func (v *Corge_NoContentOnException_Args) String() string
String returns a readable string representation of a Corge_NoContentOnException_Args struct.
func (*Corge_NoContentOnException_Args) ToWire ¶
func (v *Corge_NoContentOnException_Args) ToWire() (wire.Value, error)
ToWire translates a Corge_NoContentOnException_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_NoContentOnException_Args) UnmarshalEasyJSON ¶
func (v *Corge_NoContentOnException_Args) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Corge_NoContentOnException_Args) UnmarshalJSON ¶
func (v *Corge_NoContentOnException_Args) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type Corge_NoContentOnException_Result ¶
type Corge_NoContentOnException_Result struct { // Value returned by noContentOnException after a successful execution. Success *Foo `json:"success,omitempty"` NotModified *NotModified `json:"notModified,omitempty"` }
Corge_NoContentOnException_Result represents the result of a Corge.noContentOnException function call.
The result of a noContentOnException 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_NoContentOnException_Result) Decode ¶
func (v *Corge_NoContentOnException_Result) Decode(sr stream.Reader) error
Decode deserializes a Corge_NoContentOnException_Result struct directly from its Thrift-level representation, without going through an intemediary type.
An error is returned if a Corge_NoContentOnException_Result struct could not be generated from the wire representation.
func (*Corge_NoContentOnException_Result) Encode ¶
func (v *Corge_NoContentOnException_Result) Encode(sw stream.Writer) error
Encode serializes a Corge_NoContentOnException_Result struct directly into bytes, without going through an intermediary type.
An error is returned if a Corge_NoContentOnException_Result struct could not be encoded.
func (*Corge_NoContentOnException_Result) EnvelopeType ¶
func (v *Corge_NoContentOnException_Result) EnvelopeType() wire.EnvelopeType
EnvelopeType returns the kind of value inside this struct.
This will always be Reply for this struct.
func (*Corge_NoContentOnException_Result) Equals ¶
func (v *Corge_NoContentOnException_Result) Equals(rhs *Corge_NoContentOnException_Result) bool
Equals returns true if all the fields of this Corge_NoContentOnException_Result match the provided Corge_NoContentOnException_Result.
This function performs a deep comparison.
func (*Corge_NoContentOnException_Result) FromWire ¶
func (v *Corge_NoContentOnException_Result) FromWire(w wire.Value) error
FromWire deserializes a Corge_NoContentOnException_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_NoContentOnException_Result struct from the provided intermediate representation.
x, err := binaryProtocol.Decode(reader, wire.TStruct) if err != nil { return nil, err } var v Corge_NoContentOnException_Result if err := v.FromWire(x); err != nil { return nil, err } return &v, nil
func (*Corge_NoContentOnException_Result) GetNotModified ¶
func (v *Corge_NoContentOnException_Result) GetNotModified() (o *NotModified)
GetNotModified returns the value of NotModified if it is set or its zero value if it is unset.
func (*Corge_NoContentOnException_Result) GetSuccess ¶
func (v *Corge_NoContentOnException_Result) GetSuccess() (o *Foo)
GetSuccess returns the value of Success if it is set or its zero value if it is unset.
func (*Corge_NoContentOnException_Result) IsSetNotModified ¶
func (v *Corge_NoContentOnException_Result) IsSetNotModified() bool
IsSetNotModified returns true if NotModified is not nil.
func (*Corge_NoContentOnException_Result) IsSetSuccess ¶
func (v *Corge_NoContentOnException_Result) IsSetSuccess() bool
IsSetSuccess returns true if Success is not nil.
func (Corge_NoContentOnException_Result) MarshalEasyJSON ¶
func (v Corge_NoContentOnException_Result) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (Corge_NoContentOnException_Result) MarshalJSON ¶
func (v Corge_NoContentOnException_Result) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*Corge_NoContentOnException_Result) MarshalLogObject ¶
func (v *Corge_NoContentOnException_Result) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
MarshalLogObject implements zapcore.ObjectMarshaler, enabling fast logging of Corge_NoContentOnException_Result.
func (*Corge_NoContentOnException_Result) MethodName ¶
func (v *Corge_NoContentOnException_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 "noContentOnException" for this struct.
func (*Corge_NoContentOnException_Result) String ¶
func (v *Corge_NoContentOnException_Result) String() string
String returns a readable string representation of a Corge_NoContentOnException_Result struct.
func (*Corge_NoContentOnException_Result) ToWire ¶
func (v *Corge_NoContentOnException_Result) ToWire() (wire.Value, error)
ToWire translates a Corge_NoContentOnException_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_NoContentOnException_Result) UnmarshalEasyJSON ¶
func (v *Corge_NoContentOnException_Result) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Corge_NoContentOnException_Result) UnmarshalJSON ¶
func (v *Corge_NoContentOnException_Result) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type Corge_NoContent_Args ¶
type Corge_NoContent_Args struct {
Arg bool `json:"arg,required"`
}
Corge_NoContent_Args represents the arguments for the Corge.noContent function.
The arguments for noContent are sent and received over the wire as this struct.
func (*Corge_NoContent_Args) Decode ¶
func (v *Corge_NoContent_Args) Decode(sr stream.Reader) error
Decode deserializes a Corge_NoContent_Args struct directly from its Thrift-level representation, without going through an intemediary type.
An error is returned if a Corge_NoContent_Args struct could not be generated from the wire representation.
func (*Corge_NoContent_Args) Encode ¶
func (v *Corge_NoContent_Args) Encode(sw stream.Writer) error
Encode serializes a Corge_NoContent_Args struct directly into bytes, without going through an intermediary type.
An error is returned if a Corge_NoContent_Args struct could not be encoded.
func (*Corge_NoContent_Args) EnvelopeType ¶
func (v *Corge_NoContent_Args) EnvelopeType() wire.EnvelopeType
EnvelopeType returns the kind of value inside this struct.
This will always be Call for this struct.
func (*Corge_NoContent_Args) Equals ¶
func (v *Corge_NoContent_Args) Equals(rhs *Corge_NoContent_Args) bool
Equals returns true if all the fields of this Corge_NoContent_Args match the provided Corge_NoContent_Args.
This function performs a deep comparison.
func (*Corge_NoContent_Args) FromWire ¶
func (v *Corge_NoContent_Args) FromWire(w wire.Value) error
FromWire deserializes a Corge_NoContent_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_NoContent_Args struct from the provided intermediate representation.
x, err := binaryProtocol.Decode(reader, wire.TStruct) if err != nil { return nil, err } var v Corge_NoContent_Args if err := v.FromWire(x); err != nil { return nil, err } return &v, nil
func (*Corge_NoContent_Args) GetArg ¶
func (v *Corge_NoContent_Args) GetArg() (o bool)
GetArg returns the value of Arg if it is set or its zero value if it is unset.
func (Corge_NoContent_Args) MarshalEasyJSON ¶
func (v Corge_NoContent_Args) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (Corge_NoContent_Args) MarshalJSON ¶
func (v Corge_NoContent_Args) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*Corge_NoContent_Args) MarshalLogObject ¶
func (v *Corge_NoContent_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
MarshalLogObject implements zapcore.ObjectMarshaler, enabling fast logging of Corge_NoContent_Args.
func (*Corge_NoContent_Args) MethodName ¶
func (v *Corge_NoContent_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 "noContent" for this struct.
func (*Corge_NoContent_Args) String ¶
func (v *Corge_NoContent_Args) String() string
String returns a readable string representation of a Corge_NoContent_Args struct.
func (*Corge_NoContent_Args) ToWire ¶
func (v *Corge_NoContent_Args) ToWire() (wire.Value, error)
ToWire translates a Corge_NoContent_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_NoContent_Args) UnmarshalEasyJSON ¶
func (v *Corge_NoContent_Args) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Corge_NoContent_Args) UnmarshalJSON ¶
func (v *Corge_NoContent_Args) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type Corge_NoContent_Result ¶
type Corge_NoContent_Result struct {
NotModified *NotModified `json:"notModified,omitempty"`
}
Corge_NoContent_Result represents the result of a Corge.noContent function call.
The result of a noContent execution is sent and received over the wire as this struct.
func (*Corge_NoContent_Result) Decode ¶
func (v *Corge_NoContent_Result) Decode(sr stream.Reader) error
Decode deserializes a Corge_NoContent_Result struct directly from its Thrift-level representation, without going through an intemediary type.
An error is returned if a Corge_NoContent_Result struct could not be generated from the wire representation.
func (*Corge_NoContent_Result) Encode ¶
func (v *Corge_NoContent_Result) Encode(sw stream.Writer) error
Encode serializes a Corge_NoContent_Result struct directly into bytes, without going through an intermediary type.
An error is returned if a Corge_NoContent_Result struct could not be encoded.
func (*Corge_NoContent_Result) EnvelopeType ¶
func (v *Corge_NoContent_Result) EnvelopeType() wire.EnvelopeType
EnvelopeType returns the kind of value inside this struct.
This will always be Reply for this struct.
func (*Corge_NoContent_Result) Equals ¶
func (v *Corge_NoContent_Result) Equals(rhs *Corge_NoContent_Result) bool
Equals returns true if all the fields of this Corge_NoContent_Result match the provided Corge_NoContent_Result.
This function performs a deep comparison.
func (*Corge_NoContent_Result) FromWire ¶
func (v *Corge_NoContent_Result) FromWire(w wire.Value) error
FromWire deserializes a Corge_NoContent_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_NoContent_Result struct from the provided intermediate representation.
x, err := binaryProtocol.Decode(reader, wire.TStruct) if err != nil { return nil, err } var v Corge_NoContent_Result if err := v.FromWire(x); err != nil { return nil, err } return &v, nil
func (*Corge_NoContent_Result) GetNotModified ¶
func (v *Corge_NoContent_Result) GetNotModified() (o *NotModified)
GetNotModified returns the value of NotModified if it is set or its zero value if it is unset.
func (*Corge_NoContent_Result) IsSetNotModified ¶
func (v *Corge_NoContent_Result) IsSetNotModified() bool
IsSetNotModified returns true if NotModified is not nil.
func (Corge_NoContent_Result) MarshalEasyJSON ¶
func (v Corge_NoContent_Result) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (Corge_NoContent_Result) MarshalJSON ¶
func (v Corge_NoContent_Result) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*Corge_NoContent_Result) MarshalLogObject ¶
func (v *Corge_NoContent_Result) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
MarshalLogObject implements zapcore.ObjectMarshaler, enabling fast logging of Corge_NoContent_Result.
func (*Corge_NoContent_Result) MethodName ¶
func (v *Corge_NoContent_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 "noContent" for this struct.
func (*Corge_NoContent_Result) String ¶
func (v *Corge_NoContent_Result) String() string
String returns a readable string representation of a Corge_NoContent_Result struct.
func (*Corge_NoContent_Result) ToWire ¶
func (v *Corge_NoContent_Result) ToWire() (wire.Value, error)
ToWire translates a Corge_NoContent_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_NoContent_Result) UnmarshalEasyJSON ¶
func (v *Corge_NoContent_Result) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Corge_NoContent_Result) UnmarshalJSON ¶
func (v *Corge_NoContent_Result) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type Foo ¶
type Foo struct { }
func (*Foo) Decode ¶
Decode deserializes a Foo struct directly from its Thrift-level representation, without going through an intemediary type.
An error is returned if a Foo struct could not be generated from the wire representation.
func (*Foo) Encode ¶
Encode serializes a Foo struct directly into bytes, without going through an intermediary type.
An error is returned if a Foo struct could not be encoded.
func (*Foo) Equals ¶
Equals returns true if all the fields of this Foo match the provided Foo.
This function performs a deep comparison.
func (*Foo) FromWire ¶
FromWire deserializes a Foo 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 Foo struct from the provided intermediate representation.
x, err := binaryProtocol.Decode(reader, wire.TStruct) if err != nil { return nil, err } var v Foo if err := v.FromWire(x); err != nil { return nil, err } return &v, nil
func (Foo) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Foo) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Foo) MarshalLogObject ¶
func (v *Foo) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
MarshalLogObject implements zapcore.ObjectMarshaler, enabling fast logging of Foo.
func (*Foo) ToWire ¶
ToWire translates a Foo 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 (*Foo) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Foo) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type NotModified ¶
type NotModified struct { }
func (*NotModified) Decode ¶
func (v *NotModified) Decode(sr stream.Reader) error
Decode deserializes a NotModified struct directly from its Thrift-level representation, without going through an intemediary type.
An error is returned if a NotModified struct could not be generated from the wire representation.
func (*NotModified) Encode ¶
func (v *NotModified) Encode(sw stream.Writer) error
Encode serializes a NotModified struct directly into bytes, without going through an intermediary type.
An error is returned if a NotModified struct could not be encoded.
func (*NotModified) Equals ¶
func (v *NotModified) Equals(rhs *NotModified) bool
Equals returns true if all the fields of this NotModified match the provided NotModified.
This function performs a deep comparison.
func (*NotModified) Error ¶
func (v *NotModified) Error() string
func (*NotModified) ErrorName ¶
func (*NotModified) ErrorName() string
ErrorName is the name of this type as defined in the Thrift file.
func (*NotModified) FromWire ¶
func (v *NotModified) FromWire(w wire.Value) error
FromWire deserializes a NotModified 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 NotModified struct from the provided intermediate representation.
x, err := binaryProtocol.Decode(reader, wire.TStruct) if err != nil { return nil, err } var v NotModified if err := v.FromWire(x); err != nil { return nil, err } return &v, nil
func (NotModified) MarshalEasyJSON ¶
func (v NotModified) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (NotModified) MarshalJSON ¶
func (v NotModified) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*NotModified) MarshalLogObject ¶
func (v *NotModified) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
MarshalLogObject implements zapcore.ObjectMarshaler, enabling fast logging of NotModified.
func (*NotModified) String ¶
func (v *NotModified) String() string
String returns a readable string representation of a NotModified struct.
func (*NotModified) ToWire ¶
func (v *NotModified) ToWire() (wire.Value, error)
ToWire translates a NotModified 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 (*NotModified) UnmarshalEasyJSON ¶
func (v *NotModified) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*NotModified) UnmarshalJSON ¶
func (v *NotModified) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface