corge

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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) 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

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 added in v0.1.1

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 added in v0.2.0

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

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 added in v0.2.0

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 added in v0.2.0

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

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 added in v0.1.1

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 added in v0.2.0

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

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 added in v0.2.0

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 added in v0.2.0

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 added in v0.4.3

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) EnvelopeType added in v0.4.3

EnvelopeType returns the kind of value inside this struct.

This will always be Call for this struct.

func (*Corge_NoContentNoException_Args) Equals added in v0.4.3

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 added in v0.4.3

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 added in v0.4.3

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 added in v0.4.3

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (Corge_NoContentNoException_Args) MarshalJSON added in v0.4.3

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

MarshalJSON supports json.Marshaler interface

func (*Corge_NoContentNoException_Args) MarshalLogObject added in v0.4.3

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 added in v0.4.3

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 added in v0.4.3

String returns a readable string representation of a Corge_NoContentNoException_Args struct.

func (*Corge_NoContentNoException_Args) ToWire added in v0.4.3

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 added in v0.4.3

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Corge_NoContentNoException_Args) UnmarshalJSON added in v0.4.3

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

UnmarshalJSON supports json.Unmarshaler interface

type Corge_NoContentNoException_Result added in v0.4.3

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) EnvelopeType added in v0.4.3

EnvelopeType returns the kind of value inside this struct.

This will always be Reply for this struct.

func (*Corge_NoContentNoException_Result) Equals added in v0.4.3

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 added in v0.4.3

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 added in v0.4.3

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (Corge_NoContentNoException_Result) MarshalJSON added in v0.4.3

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

MarshalJSON supports json.Marshaler interface

func (*Corge_NoContentNoException_Result) MarshalLogObject added in v0.4.3

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 added in v0.4.3

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 added in v0.4.3

String returns a readable string representation of a Corge_NoContentNoException_Result struct.

func (*Corge_NoContentNoException_Result) ToWire added in v0.4.3

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 added in v0.4.3

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Corge_NoContentNoException_Result) UnmarshalJSON added in v0.4.3

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

UnmarshalJSON supports json.Unmarshaler interface

type Corge_NoContentOnException_Args added in v0.4.3

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) EnvelopeType added in v0.4.3

EnvelopeType returns the kind of value inside this struct.

This will always be Call for this struct.

func (*Corge_NoContentOnException_Args) Equals added in v0.4.3

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 added in v0.4.3

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 added in v0.4.3

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 added in v0.4.3

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (Corge_NoContentOnException_Args) MarshalJSON added in v0.4.3

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

MarshalJSON supports json.Marshaler interface

func (*Corge_NoContentOnException_Args) MarshalLogObject added in v0.4.3

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 added in v0.4.3

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 added in v0.4.3

String returns a readable string representation of a Corge_NoContentOnException_Args struct.

func (*Corge_NoContentOnException_Args) ToWire added in v0.4.3

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 added in v0.4.3

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Corge_NoContentOnException_Args) UnmarshalJSON added in v0.4.3

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

UnmarshalJSON supports json.Unmarshaler interface

type Corge_NoContentOnException_Result added in v0.4.3

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) EnvelopeType added in v0.4.3

EnvelopeType returns the kind of value inside this struct.

This will always be Reply for this struct.

func (*Corge_NoContentOnException_Result) Equals added in v0.4.3

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 added in v0.4.3

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 added in v0.4.3

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 added in v0.4.3

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 added in v0.4.3

func (v *Corge_NoContentOnException_Result) IsSetNotModified() bool

IsSetNotModified returns true if NotModified is not nil.

func (*Corge_NoContentOnException_Result) IsSetSuccess added in v0.4.3

func (v *Corge_NoContentOnException_Result) IsSetSuccess() bool

IsSetSuccess returns true if Success is not nil.

func (Corge_NoContentOnException_Result) MarshalEasyJSON added in v0.4.3

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (Corge_NoContentOnException_Result) MarshalJSON added in v0.4.3

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

MarshalJSON supports json.Marshaler interface

func (*Corge_NoContentOnException_Result) MarshalLogObject added in v0.4.3

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 added in v0.4.3

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 added in v0.4.3

String returns a readable string representation of a Corge_NoContentOnException_Result struct.

func (*Corge_NoContentOnException_Result) ToWire added in v0.4.3

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 added in v0.4.3

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Corge_NoContentOnException_Result) UnmarshalJSON added in v0.4.3

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

UnmarshalJSON supports json.Unmarshaler interface

type Corge_NoContent_Args added in v0.4.3

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) EnvelopeType added in v0.4.3

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 added in v0.4.3

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 added in v0.4.3

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 added in v0.4.3

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 added in v0.4.3

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (Corge_NoContent_Args) MarshalJSON added in v0.4.3

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

MarshalJSON supports json.Marshaler interface

func (*Corge_NoContent_Args) MarshalLogObject added in v0.4.3

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 added in v0.4.3

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 added in v0.4.3

func (v *Corge_NoContent_Args) String() string

String returns a readable string representation of a Corge_NoContent_Args struct.

func (*Corge_NoContent_Args) ToWire added in v0.4.3

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 added in v0.4.3

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Corge_NoContent_Args) UnmarshalJSON added in v0.4.3

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

UnmarshalJSON supports json.Unmarshaler interface

type Corge_NoContent_Result added in v0.4.3

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) EnvelopeType added in v0.4.3

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 added in v0.4.3

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 added in v0.4.3

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 added in v0.4.3

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 added in v0.4.3

func (v *Corge_NoContent_Result) IsSetNotModified() bool

IsSetNotModified returns true if NotModified is not nil.

func (Corge_NoContent_Result) MarshalEasyJSON added in v0.4.3

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (Corge_NoContent_Result) MarshalJSON added in v0.4.3

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

MarshalJSON supports json.Marshaler interface

func (*Corge_NoContent_Result) MarshalLogObject added in v0.4.3

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 added in v0.4.3

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 added in v0.4.3

func (v *Corge_NoContent_Result) String() string

String returns a readable string representation of a Corge_NoContent_Result struct.

func (*Corge_NoContent_Result) ToWire added in v0.4.3

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 added in v0.4.3

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Corge_NoContent_Result) UnmarshalJSON added in v0.4.3

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

UnmarshalJSON supports json.Unmarshaler interface

type Foo added in v0.4.3

type Foo struct {
}

func (*Foo) Equals added in v0.4.3

func (v *Foo) Equals(rhs *Foo) bool

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

This function performs a deep comparison.

func (*Foo) FromWire added in v0.4.3

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

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 added in v0.4.3

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (Foo) MarshalJSON added in v0.4.3

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

MarshalJSON supports json.Marshaler interface

func (*Foo) MarshalLogObject added in v0.4.3

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

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

func (*Foo) String added in v0.4.3

func (v *Foo) String() string

String returns a readable string representation of a Foo struct.

func (*Foo) ToWire added in v0.4.3

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

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 added in v0.4.3

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Foo) UnmarshalJSON added in v0.4.3

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

UnmarshalJSON supports json.Unmarshaler interface

type NotModified added in v0.4.3

type NotModified struct {
}

func (*NotModified) Equals added in v0.4.3

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 added in v0.4.3

func (v *NotModified) Error() string

func (*NotModified) FromWire added in v0.4.3

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 added in v0.4.3

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (NotModified) MarshalJSON added in v0.4.3

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

MarshalJSON supports json.Marshaler interface

func (*NotModified) MarshalLogObject added in v0.4.3

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

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

func (*NotModified) String added in v0.4.3

func (v *NotModified) String() string

String returns a readable string representation of a NotModified struct.

func (*NotModified) ToWire added in v0.4.3

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 added in v0.4.3

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*NotModified) UnmarshalJSON added in v0.4.3

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

UnmarshalJSON supports json.Unmarshaler interface

Jump to

Keyboard shortcuts

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