Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BazResponse ¶
type BazResponse struct {
Message string `json:"message,required"`
}
func (*BazResponse) Equals ¶
func (v *BazResponse) Equals(rhs *BazResponse) bool
Equals returns true if all the fields of this BazResponse match the provided BazResponse.
This function performs a deep comparison.
func (*BazResponse) FromWire ¶
func (v *BazResponse) FromWire(w wire.Value) error
FromWire deserializes a BazResponse 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 BazResponse struct from the provided intermediate representation.
x, err := binaryProtocol.Decode(reader, wire.TStruct) if err != nil { return nil, err } var v BazResponse if err := v.FromWire(x); err != nil { return nil, err } return &v, nil
func (*BazResponse) String ¶
func (v *BazResponse) String() string
String returns a readable string representation of a BazResponse struct.
func (*BazResponse) ToWire ¶
func (v *BazResponse) ToWire() (wire.Value, error)
ToWire translates a BazResponse 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 }
type NestHeaders ¶
type NestHeaders struct { UUID string `json:"UUID,required"` Token *string `json:"token,omitempty"` }
func (*NestHeaders) Equals ¶
func (v *NestHeaders) Equals(rhs *NestHeaders) bool
Equals returns true if all the fields of this NestHeaders match the provided NestHeaders.
This function performs a deep comparison.
func (*NestHeaders) FromWire ¶
func (v *NestHeaders) FromWire(w wire.Value) error
FromWire deserializes a NestHeaders 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 NestHeaders struct from the provided intermediate representation.
x, err := binaryProtocol.Decode(reader, wire.TStruct) if err != nil { return nil, err } var v NestHeaders if err := v.FromWire(x); err != nil { return nil, err } return &v, nil
func (*NestHeaders) GetToken ¶
func (v *NestHeaders) GetToken() (o string)
GetToken returns the value of Token if it is set or its zero value if it is unset.
func (*NestHeaders) String ¶
func (v *NestHeaders) String() string
String returns a readable string representation of a NestHeaders struct.
func (*NestHeaders) ToWire ¶
func (v *NestHeaders) ToWire() (wire.Value, error)
ToWire translates a NestHeaders 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 }
type NestedStruct ¶
func (*NestedStruct) Equals ¶
func (v *NestedStruct) Equals(rhs *NestedStruct) bool
Equals returns true if all the fields of this NestedStruct match the provided NestedStruct.
This function performs a deep comparison.
func (*NestedStruct) FromWire ¶
func (v *NestedStruct) FromWire(w wire.Value) error
FromWire deserializes a NestedStruct 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 NestedStruct struct from the provided intermediate representation.
x, err := binaryProtocol.Decode(reader, wire.TStruct) if err != nil { return nil, err } var v NestedStruct if err := v.FromWire(x); err != nil { return nil, err } return &v, nil
func (*NestedStruct) GetCheck ¶
func (v *NestedStruct) GetCheck() (o int32)
GetCheck returns the value of Check if it is set or its zero value if it is unset.
func (*NestedStruct) String ¶
func (v *NestedStruct) String() string
String returns a readable string representation of a NestedStruct struct.
func (*NestedStruct) ToWire ¶
func (v *NestedStruct) ToWire() (wire.Value, error)
ToWire translates a NestedStruct 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 }
type ServerErr ¶
type ServerErr struct {
Message string `json:"message,required"`
}
func (*ServerErr) Equals ¶
Equals returns true if all the fields of this ServerErr match the provided ServerErr.
This function performs a deep comparison.
func (*ServerErr) FromWire ¶
FromWire deserializes a ServerErr 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 ServerErr struct from the provided intermediate representation.
x, err := binaryProtocol.Decode(reader, wire.TStruct) if err != nil { return nil, err } var v ServerErr if err := v.FromWire(x); err != nil { return nil, err } return &v, nil
func (*ServerErr) ToWire ¶
ToWire translates a ServerErr 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 }
type TransHeaders ¶
func (*TransHeaders) Equals ¶
func (v *TransHeaders) Equals(rhs *TransHeaders) bool
Equals returns true if all the fields of this TransHeaders match the provided TransHeaders.
This function performs a deep comparison.
func (*TransHeaders) FromWire ¶
func (v *TransHeaders) FromWire(w wire.Value) error
FromWire deserializes a TransHeaders 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 TransHeaders struct from the provided intermediate representation.
x, err := binaryProtocol.Decode(reader, wire.TStruct) if err != nil { return nil, err } var v TransHeaders if err := v.FromWire(x); err != nil { return nil, err } return &v, nil
func (*TransHeaders) String ¶
func (v *TransHeaders) String() string
String returns a readable string representation of a TransHeaders struct.
func (*TransHeaders) ToWire ¶
func (v *TransHeaders) ToWire() (wire.Value, error)
ToWire translates a TransHeaders 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 }
type TransStruct ¶
type TransStruct struct { Message string `json:"message,required"` Driver *NestedStruct `json:"driver,omitempty"` Rider *NestedStruct `json:"rider,required"` }
func (*TransStruct) Equals ¶
func (v *TransStruct) Equals(rhs *TransStruct) bool
Equals returns true if all the fields of this TransStruct match the provided TransStruct.
This function performs a deep comparison.
func (*TransStruct) FromWire ¶
func (v *TransStruct) FromWire(w wire.Value) error
FromWire deserializes a TransStruct 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 TransStruct struct from the provided intermediate representation.
x, err := binaryProtocol.Decode(reader, wire.TStruct) if err != nil { return nil, err } var v TransStruct if err := v.FromWire(x); err != nil { return nil, err } return &v, nil
func (*TransStruct) String ¶
func (v *TransStruct) String() string
String returns a readable string representation of a TransStruct struct.
func (*TransStruct) ToWire ¶
func (v *TransStruct) ToWire() (wire.Value, error)
ToWire translates a TransStruct 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 }
type UUID ¶
type UUID string
func (*UUID) FromWire ¶
FromWire deserializes UUID from its Thrift-level representation. The Thrift-level representation may be obtained from a ThriftRW protocol implementation.
type Wrapped ¶
type Wrapped struct { N1 *NestHeaders `json:"n1,required"` N2 *NestHeaders `json:"n2,omitempty"` }
func (*Wrapped) Equals ¶
Equals returns true if all the fields of this Wrapped match the provided Wrapped.
This function performs a deep comparison.
func (*Wrapped) FromWire ¶
FromWire deserializes a Wrapped 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 Wrapped struct from the provided intermediate representation.
x, err := binaryProtocol.Decode(reader, wire.TStruct) if err != nil { return nil, err } var v Wrapped if err := v.FromWire(x); err != nil { return nil, err } return &v, nil
func (*Wrapped) ToWire ¶
ToWire translates a Wrapped 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 }