clientless

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2021 License: MIT Imports: 10 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Clientless_Beta_Helper = struct {
	// Args accepts the parameters of beta in-order and returns
	// the arguments struct for the function.
	Args func(
		request *Request,
		alpha *string,
	) *Clientless_Beta_Args

	// IsException returns true if the given error can be thrown
	// by beta.
	//
	// An error can be thrown by beta 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 beta
	// given its return value and error.
	//
	// This allows mapping values and errors returned by
	// beta into a serializable result struct.
	// WrapResponse returns a non-nil error if the provided
	// error cannot be thrown by beta
	//
	//   value, err := beta(args)
	//   result, err := Clientless_Beta_Helper.WrapResponse(value, err)
	//   if err != nil {
	//     return fmt.Errorf("unexpected error from beta: %v", err)
	//   }
	//   serialize(result)
	WrapResponse func(*Response, error) (*Clientless_Beta_Result, error)

	// UnwrapResponse takes the result struct for beta
	// and returns the value or error returned by it.
	//
	// The error is non-nil only if beta threw an
	// exception.
	//
	//   result := deserialize(bytes)
	//   value, err := Clientless_Beta_Helper.UnwrapResponse(result)
	UnwrapResponse func(*Clientless_Beta_Result) (*Response, error)
}{}

Clientless_Beta_Helper provides functions that aid in handling the parameters and return values of the Clientless.beta function.

View Source
var Clientless_ClientlessArgWithHeaders_Helper = struct {
	// Args accepts the parameters of clientlessArgWithHeaders in-order and returns
	// the arguments struct for the function.
	Args func(
		name string,
		userUUID *string,
	) *Clientless_ClientlessArgWithHeaders_Args

	// IsException returns true if the given error can be thrown
	// by clientlessArgWithHeaders.
	//
	// An error can be thrown by clientlessArgWithHeaders 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 clientlessArgWithHeaders
	// given its return value and error.
	//
	// This allows mapping values and errors returned by
	// clientlessArgWithHeaders into a serializable result struct.
	// WrapResponse returns a non-nil error if the provided
	// error cannot be thrown by clientlessArgWithHeaders
	//
	//   value, err := clientlessArgWithHeaders(args)
	//   result, err := Clientless_ClientlessArgWithHeaders_Helper.WrapResponse(value, err)
	//   if err != nil {
	//     return fmt.Errorf("unexpected error from clientlessArgWithHeaders: %v", err)
	//   }
	//   serialize(result)
	WrapResponse func(*Response, error) (*Clientless_ClientlessArgWithHeaders_Result, error)

	// UnwrapResponse takes the result struct for clientlessArgWithHeaders
	// and returns the value or error returned by it.
	//
	// The error is non-nil only if clientlessArgWithHeaders threw an
	// exception.
	//
	//   result := deserialize(bytes)
	//   value, err := Clientless_ClientlessArgWithHeaders_Helper.UnwrapResponse(result)
	UnwrapResponse func(*Clientless_ClientlessArgWithHeaders_Result) (*Response, error)
}{}

Clientless_ClientlessArgWithHeaders_Helper provides functions that aid in handling the parameters and return values of the Clientless.clientlessArgWithHeaders function.

View Source
var Clientless_EmptyclientlessRequest_Helper = struct {
	// Args accepts the parameters of emptyclientlessRequest in-order and returns
	// the arguments struct for the function.
	Args func(
		testString *string,
	) *Clientless_EmptyclientlessRequest_Args

	// IsException returns true if the given error can be thrown
	// by emptyclientlessRequest.
	//
	// An error can be thrown by emptyclientlessRequest 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 emptyclientlessRequest
	// given the error returned by it. The provided error may
	// be nil if emptyclientlessRequest did not fail.
	//
	// This allows mapping errors returned by emptyclientlessRequest into a
	// serializable result struct. WrapResponse returns a
	// non-nil error if the provided error cannot be thrown by
	// emptyclientlessRequest
	//
	//   err := emptyclientlessRequest(args)
	//   result, err := Clientless_EmptyclientlessRequest_Helper.WrapResponse(err)
	//   if err != nil {
	//     return fmt.Errorf("unexpected error from emptyclientlessRequest: %v", err)
	//   }
	//   serialize(result)
	WrapResponse func(error) (*Clientless_EmptyclientlessRequest_Result, error)

	// UnwrapResponse takes the result struct for emptyclientlessRequest
	// and returns the erorr returned by it (if any).
	//
	// The error is non-nil only if emptyclientlessRequest threw an
	// exception.
	//
	//   result := deserialize(bytes)
	//   err := Clientless_EmptyclientlessRequest_Helper.UnwrapResponse(result)
	UnwrapResponse func(*Clientless_EmptyclientlessRequest_Result) error
}{}

Clientless_EmptyclientlessRequest_Helper provides functions that aid in handling the parameters and return values of the Clientless.emptyclientlessRequest function.

Functions

This section is empty.

Types

type Clientless_Beta_Args

type Clientless_Beta_Args struct {
	Request *Request `json:"request,omitempty"`
	Alpha   *string  `json:"alpha,omitempty"`
}

Clientless_Beta_Args represents the arguments for the Clientless.beta function.

The arguments for beta are sent and received over the wire as this struct.

func (*Clientless_Beta_Args) EnvelopeType

func (v *Clientless_Beta_Args) EnvelopeType() wire.EnvelopeType

EnvelopeType returns the kind of value inside this struct.

This will always be Call for this struct.

func (*Clientless_Beta_Args) Equals

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

This function performs a deep comparison.

func (*Clientless_Beta_Args) FromWire

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

FromWire deserializes a Clientless_Beta_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 Clientless_Beta_Args struct from the provided intermediate representation.

x, err := binaryProtocol.Decode(reader, wire.TStruct)
if err != nil {
  return nil, err
}

var v Clientless_Beta_Args
if err := v.FromWire(x); err != nil {
  return nil, err
}
return &v, nil

func (*Clientless_Beta_Args) GetAlpha

func (v *Clientless_Beta_Args) GetAlpha() (o string)

GetAlpha returns the value of Alpha if it is set or its zero value if it is unset.

func (*Clientless_Beta_Args) GetRequest

func (v *Clientless_Beta_Args) GetRequest() (o *Request)

GetRequest returns the value of Request if it is set or its zero value if it is unset.

func (*Clientless_Beta_Args) IsSetAlpha

func (v *Clientless_Beta_Args) IsSetAlpha() bool

IsSetAlpha returns true if Alpha is not nil.

func (*Clientless_Beta_Args) IsSetRequest

func (v *Clientless_Beta_Args) IsSetRequest() bool

IsSetRequest returns true if Request is not nil.

func (Clientless_Beta_Args) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (Clientless_Beta_Args) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*Clientless_Beta_Args) MarshalLogObject

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

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

func (*Clientless_Beta_Args) MethodName

func (v *Clientless_Beta_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 "beta" for this struct.

func (*Clientless_Beta_Args) String

func (v *Clientless_Beta_Args) String() string

String returns a readable string representation of a Clientless_Beta_Args struct.

func (*Clientless_Beta_Args) ToWire

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

ToWire translates a Clientless_Beta_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 (*Clientless_Beta_Args) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Clientless_Beta_Args) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type Clientless_Beta_Result

type Clientless_Beta_Result struct {
	// Value returned by beta after a successful execution.
	Success *Response `json:"success,omitempty"`
}

Clientless_Beta_Result represents the result of a Clientless.beta function call.

The result of a beta execution is sent and received over the wire as this struct.

Success is set only if the function did not throw an exception.

func (*Clientless_Beta_Result) EnvelopeType

func (v *Clientless_Beta_Result) EnvelopeType() wire.EnvelopeType

EnvelopeType returns the kind of value inside this struct.

This will always be Reply for this struct.

func (*Clientless_Beta_Result) Equals

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

This function performs a deep comparison.

func (*Clientless_Beta_Result) FromWire

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

FromWire deserializes a Clientless_Beta_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 Clientless_Beta_Result struct from the provided intermediate representation.

x, err := binaryProtocol.Decode(reader, wire.TStruct)
if err != nil {
  return nil, err
}

var v Clientless_Beta_Result
if err := v.FromWire(x); err != nil {
  return nil, err
}
return &v, nil

func (*Clientless_Beta_Result) GetSuccess

func (v *Clientless_Beta_Result) GetSuccess() (o *Response)

GetSuccess returns the value of Success if it is set or its zero value if it is unset.

func (*Clientless_Beta_Result) IsSetSuccess

func (v *Clientless_Beta_Result) IsSetSuccess() bool

IsSetSuccess returns true if Success is not nil.

func (Clientless_Beta_Result) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (Clientless_Beta_Result) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*Clientless_Beta_Result) MarshalLogObject

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

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

func (*Clientless_Beta_Result) MethodName

func (v *Clientless_Beta_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 "beta" for this struct.

func (*Clientless_Beta_Result) String

func (v *Clientless_Beta_Result) String() string

String returns a readable string representation of a Clientless_Beta_Result struct.

func (*Clientless_Beta_Result) ToWire

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

ToWire translates a Clientless_Beta_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 (*Clientless_Beta_Result) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Clientless_Beta_Result) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type Clientless_ClientlessArgWithHeaders_Args

type Clientless_ClientlessArgWithHeaders_Args struct {
	Name     string  `json:"-"`
	UserUUID *string `json:"-"`
}

Clientless_ClientlessArgWithHeaders_Args represents the arguments for the Clientless.clientlessArgWithHeaders function.

The arguments for clientlessArgWithHeaders are sent and received over the wire as this struct.

func (*Clientless_ClientlessArgWithHeaders_Args) EnvelopeType

EnvelopeType returns the kind of value inside this struct.

This will always be Call for this struct.

func (*Clientless_ClientlessArgWithHeaders_Args) Equals

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

This function performs a deep comparison.

func (*Clientless_ClientlessArgWithHeaders_Args) FromWire

FromWire deserializes a Clientless_ClientlessArgWithHeaders_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 Clientless_ClientlessArgWithHeaders_Args struct from the provided intermediate representation.

x, err := binaryProtocol.Decode(reader, wire.TStruct)
if err != nil {
  return nil, err
}

var v Clientless_ClientlessArgWithHeaders_Args
if err := v.FromWire(x); err != nil {
  return nil, err
}
return &v, nil

func (*Clientless_ClientlessArgWithHeaders_Args) GetName

GetName returns the value of Name if it is set or its zero value if it is unset.

func (*Clientless_ClientlessArgWithHeaders_Args) GetUserUUID

func (v *Clientless_ClientlessArgWithHeaders_Args) GetUserUUID() (o string)

GetUserUUID returns the value of UserUUID if it is set or its zero value if it is unset.

func (*Clientless_ClientlessArgWithHeaders_Args) IsSetUserUUID

IsSetUserUUID returns true if UserUUID is not nil.

func (Clientless_ClientlessArgWithHeaders_Args) MarshalEasyJSON

MarshalEasyJSON supports easyjson.Marshaler interface

func (Clientless_ClientlessArgWithHeaders_Args) MarshalJSON

MarshalJSON supports json.Marshaler interface

func (*Clientless_ClientlessArgWithHeaders_Args) MarshalLogObject

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

func (*Clientless_ClientlessArgWithHeaders_Args) MethodName

MethodName returns the name of the Thrift function as specified in the IDL, for which this struct represent the arguments.

This will always be "clientlessArgWithHeaders" for this struct.

func (*Clientless_ClientlessArgWithHeaders_Args) String

String returns a readable string representation of a Clientless_ClientlessArgWithHeaders_Args struct.

func (*Clientless_ClientlessArgWithHeaders_Args) ToWire

ToWire translates a Clientless_ClientlessArgWithHeaders_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 (*Clientless_ClientlessArgWithHeaders_Args) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Clientless_ClientlessArgWithHeaders_Args) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type Clientless_ClientlessArgWithHeaders_Result

type Clientless_ClientlessArgWithHeaders_Result struct {
	// Value returned by clientlessArgWithHeaders after a successful execution.
	Success *Response `json:"success,omitempty"`
}

Clientless_ClientlessArgWithHeaders_Result represents the result of a Clientless.clientlessArgWithHeaders function call.

The result of a clientlessArgWithHeaders execution is sent and received over the wire as this struct.

Success is set only if the function did not throw an exception.

func (*Clientless_ClientlessArgWithHeaders_Result) EnvelopeType

EnvelopeType returns the kind of value inside this struct.

This will always be Reply for this struct.

func (*Clientless_ClientlessArgWithHeaders_Result) Equals

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

This function performs a deep comparison.

func (*Clientless_ClientlessArgWithHeaders_Result) FromWire

FromWire deserializes a Clientless_ClientlessArgWithHeaders_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 Clientless_ClientlessArgWithHeaders_Result struct from the provided intermediate representation.

x, err := binaryProtocol.Decode(reader, wire.TStruct)
if err != nil {
  return nil, err
}

var v Clientless_ClientlessArgWithHeaders_Result
if err := v.FromWire(x); err != nil {
  return nil, err
}
return &v, nil

func (*Clientless_ClientlessArgWithHeaders_Result) GetSuccess

GetSuccess returns the value of Success if it is set or its zero value if it is unset.

func (*Clientless_ClientlessArgWithHeaders_Result) IsSetSuccess

IsSetSuccess returns true if Success is not nil.

func (Clientless_ClientlessArgWithHeaders_Result) MarshalEasyJSON

MarshalEasyJSON supports easyjson.Marshaler interface

func (Clientless_ClientlessArgWithHeaders_Result) MarshalJSON

MarshalJSON supports json.Marshaler interface

func (*Clientless_ClientlessArgWithHeaders_Result) MarshalLogObject

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

func (*Clientless_ClientlessArgWithHeaders_Result) MethodName

MethodName returns the name of the Thrift function as specified in the IDL, for which this struct represent the result.

This will always be "clientlessArgWithHeaders" for this struct.

func (*Clientless_ClientlessArgWithHeaders_Result) String

String returns a readable string representation of a Clientless_ClientlessArgWithHeaders_Result struct.

func (*Clientless_ClientlessArgWithHeaders_Result) ToWire

ToWire translates a Clientless_ClientlessArgWithHeaders_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 (*Clientless_ClientlessArgWithHeaders_Result) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Clientless_ClientlessArgWithHeaders_Result) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type Clientless_EmptyclientlessRequest_Args

type Clientless_EmptyclientlessRequest_Args struct {
	TestString *string `json:"testString,omitempty"`
}

Clientless_EmptyclientlessRequest_Args represents the arguments for the Clientless.emptyclientlessRequest function.

The arguments for emptyclientlessRequest are sent and received over the wire as this struct.

func (*Clientless_EmptyclientlessRequest_Args) EnvelopeType

EnvelopeType returns the kind of value inside this struct.

This will always be Call for this struct.

func (*Clientless_EmptyclientlessRequest_Args) Equals

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

This function performs a deep comparison.

func (*Clientless_EmptyclientlessRequest_Args) FromWire

FromWire deserializes a Clientless_EmptyclientlessRequest_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 Clientless_EmptyclientlessRequest_Args struct from the provided intermediate representation.

x, err := binaryProtocol.Decode(reader, wire.TStruct)
if err != nil {
  return nil, err
}

var v Clientless_EmptyclientlessRequest_Args
if err := v.FromWire(x); err != nil {
  return nil, err
}
return &v, nil

func (*Clientless_EmptyclientlessRequest_Args) GetTestString

func (v *Clientless_EmptyclientlessRequest_Args) GetTestString() (o string)

GetTestString returns the value of TestString if it is set or its zero value if it is unset.

func (*Clientless_EmptyclientlessRequest_Args) IsSetTestString

func (v *Clientless_EmptyclientlessRequest_Args) IsSetTestString() bool

IsSetTestString returns true if TestString is not nil.

func (Clientless_EmptyclientlessRequest_Args) MarshalEasyJSON

MarshalEasyJSON supports easyjson.Marshaler interface

func (Clientless_EmptyclientlessRequest_Args) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*Clientless_EmptyclientlessRequest_Args) MarshalLogObject

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

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

func (*Clientless_EmptyclientlessRequest_Args) MethodName

MethodName returns the name of the Thrift function as specified in the IDL, for which this struct represent the arguments.

This will always be "emptyclientlessRequest" for this struct.

func (*Clientless_EmptyclientlessRequest_Args) String

String returns a readable string representation of a Clientless_EmptyclientlessRequest_Args struct.

func (*Clientless_EmptyclientlessRequest_Args) ToWire

ToWire translates a Clientless_EmptyclientlessRequest_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 (*Clientless_EmptyclientlessRequest_Args) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Clientless_EmptyclientlessRequest_Args) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type Clientless_EmptyclientlessRequest_Result

type Clientless_EmptyclientlessRequest_Result struct {
}

Clientless_EmptyclientlessRequest_Result represents the result of a Clientless.emptyclientlessRequest function call.

The result of a emptyclientlessRequest execution is sent and received over the wire as this struct.

func (*Clientless_EmptyclientlessRequest_Result) EnvelopeType

EnvelopeType returns the kind of value inside this struct.

This will always be Reply for this struct.

func (*Clientless_EmptyclientlessRequest_Result) Equals

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

This function performs a deep comparison.

func (*Clientless_EmptyclientlessRequest_Result) FromWire

FromWire deserializes a Clientless_EmptyclientlessRequest_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 Clientless_EmptyclientlessRequest_Result struct from the provided intermediate representation.

x, err := binaryProtocol.Decode(reader, wire.TStruct)
if err != nil {
  return nil, err
}

var v Clientless_EmptyclientlessRequest_Result
if err := v.FromWire(x); err != nil {
  return nil, err
}
return &v, nil

func (Clientless_EmptyclientlessRequest_Result) MarshalEasyJSON

MarshalEasyJSON supports easyjson.Marshaler interface

func (Clientless_EmptyclientlessRequest_Result) MarshalJSON

MarshalJSON supports json.Marshaler interface

func (*Clientless_EmptyclientlessRequest_Result) MarshalLogObject

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

func (*Clientless_EmptyclientlessRequest_Result) MethodName

MethodName returns the name of the Thrift function as specified in the IDL, for which this struct represent the result.

This will always be "emptyclientlessRequest" for this struct.

func (*Clientless_EmptyclientlessRequest_Result) String

String returns a readable string representation of a Clientless_EmptyclientlessRequest_Result struct.

func (*Clientless_EmptyclientlessRequest_Result) ToWire

ToWire translates a Clientless_EmptyclientlessRequest_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 (*Clientless_EmptyclientlessRequest_Result) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Clientless_EmptyclientlessRequest_Result) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type Request

type Request struct {
	FirstName *string `json:"firstName,omitempty"`
	LastName  *string `json:"lastName,omitempty"`
}

func (*Request) Equals

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

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

This function performs a deep comparison.

func (*Request) FromWire

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

FromWire deserializes a Request 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 Request struct from the provided intermediate representation.

x, err := binaryProtocol.Decode(reader, wire.TStruct)
if err != nil {
  return nil, err
}

var v Request
if err := v.FromWire(x); err != nil {
  return nil, err
}
return &v, nil

func (*Request) GetFirstName

func (v *Request) GetFirstName() (o string)

GetFirstName returns the value of FirstName if it is set or its zero value if it is unset.

func (*Request) GetLastName

func (v *Request) GetLastName() (o string)

GetLastName returns the value of LastName if it is set or its zero value if it is unset.

func (*Request) IsSetFirstName

func (v *Request) IsSetFirstName() bool

IsSetFirstName returns true if FirstName is not nil.

func (*Request) IsSetLastName

func (v *Request) IsSetLastName() bool

IsSetLastName returns true if LastName is not nil.

func (Request) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (Request) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*Request) MarshalLogObject

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

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

func (*Request) String

func (v *Request) String() string

String returns a readable string representation of a Request struct.

func (*Request) ToWire

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

ToWire translates a Request 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 (*Request) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Request) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type Response

type Response struct {
	FirstName *string `json:"firstName,omitempty"`
	LastName1 *string `json:"lastName1,omitempty"`
}

func (*Response) Equals

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

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

This function performs a deep comparison.

func (*Response) FromWire

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

FromWire deserializes a Response 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 Response struct from the provided intermediate representation.

x, err := binaryProtocol.Decode(reader, wire.TStruct)
if err != nil {
  return nil, err
}

var v Response
if err := v.FromWire(x); err != nil {
  return nil, err
}
return &v, nil

func (*Response) GetFirstName

func (v *Response) GetFirstName() (o string)

GetFirstName returns the value of FirstName if it is set or its zero value if it is unset.

func (*Response) GetLastName1

func (v *Response) GetLastName1() (o string)

GetLastName1 returns the value of LastName1 if it is set or its zero value if it is unset.

func (*Response) IsSetFirstName

func (v *Response) IsSetFirstName() bool

IsSetFirstName returns true if FirstName is not nil.

func (*Response) IsSetLastName1

func (v *Response) IsSetLastName1() bool

IsSetLastName1 returns true if LastName1 is not nil.

func (Response) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (Response) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*Response) MarshalLogObject

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

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

func (*Response) String

func (v *Response) String() string

String returns a readable string representation of a Response struct.

func (*Response) ToWire

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

ToWire translates a Response 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 (*Response) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Response) UnmarshalJSON

func (v *Response) 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