Documentation
¶
Index ¶
- type BazResponse
- func (v *BazResponse) Equals(rhs *BazResponse) bool
- func (v *BazResponse) FromWire(w wire.Value) error
- func (v *BazResponse) GetMessage() (o string)
- func (v *BazResponse) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
- func (v *BazResponse) String() string
- func (v *BazResponse) ToWire() (wire.Value, error)
- type NestHeaders
- func (v *NestHeaders) Equals(rhs *NestHeaders) bool
- func (v *NestHeaders) FromWire(w wire.Value) error
- func (v *NestHeaders) GetToken() (o string)
- func (v *NestHeaders) GetUUID() (o string)
- func (v *NestHeaders) IsSetToken() bool
- func (v *NestHeaders) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
- func (v *NestHeaders) String() string
- func (v *NestHeaders) ToWire() (wire.Value, error)
- type NestedStruct
- func (v *NestedStruct) Equals(rhs *NestedStruct) bool
- func (v *NestedStruct) FromWire(w wire.Value) error
- func (v *NestedStruct) GetCheck() (o int32)
- func (v *NestedStruct) GetMsg() (o string)
- func (v *NestedStruct) IsSetCheck() bool
- func (v *NestedStruct) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
- func (v *NestedStruct) String() string
- func (v *NestedStruct) ToWire() (wire.Value, error)
- type ServerErr
- func (v *ServerErr) Equals(rhs *ServerErr) bool
- func (v *ServerErr) Error() string
- func (*ServerErr) ErrorName() string
- func (v *ServerErr) FromWire(w wire.Value) error
- func (v *ServerErr) GetMessage() (o string)
- func (v *ServerErr) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
- func (v *ServerErr) String() string
- func (v *ServerErr) ToWire() (wire.Value, error)
- type TransHeaders
- func (v *TransHeaders) Equals(rhs *TransHeaders) bool
- func (v *TransHeaders) FromWire(w wire.Value) error
- func (v *TransHeaders) GetW1() (o *Wrapped)
- func (v *TransHeaders) GetW2() (o *Wrapped)
- func (v *TransHeaders) IsSetW1() bool
- func (v *TransHeaders) IsSetW2() bool
- func (v *TransHeaders) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
- func (v *TransHeaders) String() string
- func (v *TransHeaders) ToWire() (wire.Value, error)
- type TransStruct
- func (v *TransStruct) Equals(rhs *TransStruct) bool
- func (v *TransStruct) FromWire(w wire.Value) error
- func (v *TransStruct) GetDriver() (o *NestedStruct)
- func (v *TransStruct) GetMessage() (o string)
- func (v *TransStruct) GetRider() (o *NestedStruct)
- func (v *TransStruct) IsSetDriver() bool
- func (v *TransStruct) IsSetRider() bool
- func (v *TransStruct) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
- func (v *TransStruct) String() string
- func (v *TransStruct) ToWire() (wire.Value, error)
- type UUID
- type Wrapped
- func (v *Wrapped) Equals(rhs *Wrapped) bool
- func (v *Wrapped) FromWire(w wire.Value) error
- func (v *Wrapped) GetN1() (o *NestHeaders)
- func (v *Wrapped) GetN2() (o *NestHeaders)
- func (v *Wrapped) IsSetN1() bool
- func (v *Wrapped) IsSetN2() bool
- func (v *Wrapped) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
- func (v *Wrapped) String() string
- func (v *Wrapped) ToWire() (wire.Value, error)
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) GetMessage ¶
func (v *BazResponse) GetMessage() (o string)
GetMessage returns the value of Message if it is set or its zero value if it is unset.
func (*BazResponse) MarshalLogObject ¶
func (v *BazResponse) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
MarshalLogObject implements zapcore.ObjectMarshaler, enabling fast logging of BazResponse.
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) GetUUID ¶
func (v *NestHeaders) GetUUID() (o string)
GetUUID returns the value of UUID if it is set or its zero value if it is unset.
func (*NestHeaders) IsSetToken ¶
func (v *NestHeaders) IsSetToken() bool
IsSetToken returns true if Token is not nil.
func (*NestHeaders) MarshalLogObject ¶
func (v *NestHeaders) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
MarshalLogObject implements zapcore.ObjectMarshaler, enabling fast logging of NestHeaders.
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) GetMsg ¶
func (v *NestedStruct) GetMsg() (o string)
GetMsg returns the value of Msg if it is set or its zero value if it is unset.
func (*NestedStruct) IsSetCheck ¶
func (v *NestedStruct) IsSetCheck() bool
IsSetCheck returns true if Check is not nil.
func (*NestedStruct) MarshalLogObject ¶
func (v *NestedStruct) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
MarshalLogObject implements zapcore.ObjectMarshaler, enabling fast logging of NestedStruct.
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) GetMessage ¶
GetMessage returns the value of Message if it is set or its zero value if it is unset.
func (*ServerErr) MarshalLogObject ¶
func (v *ServerErr) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
MarshalLogObject implements zapcore.ObjectMarshaler, enabling fast logging of ServerErr.
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) GetW1 ¶
func (v *TransHeaders) GetW1() (o *Wrapped)
GetW1 returns the value of W1 if it is set or its zero value if it is unset.
func (*TransHeaders) GetW2 ¶
func (v *TransHeaders) GetW2() (o *Wrapped)
GetW2 returns the value of W2 if it is set or its zero value if it is unset.
func (*TransHeaders) IsSetW1 ¶
func (v *TransHeaders) IsSetW1() bool
IsSetW1 returns true if W1 is not nil.
func (*TransHeaders) IsSetW2 ¶
func (v *TransHeaders) IsSetW2() bool
IsSetW2 returns true if W2 is not nil.
func (*TransHeaders) MarshalLogObject ¶
func (v *TransHeaders) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
MarshalLogObject implements zapcore.ObjectMarshaler, enabling fast logging of TransHeaders.
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) GetDriver ¶
func (v *TransStruct) GetDriver() (o *NestedStruct)
GetDriver returns the value of Driver if it is set or its zero value if it is unset.
func (*TransStruct) GetMessage ¶
func (v *TransStruct) GetMessage() (o string)
GetMessage returns the value of Message if it is set or its zero value if it is unset.
func (*TransStruct) GetRider ¶
func (v *TransStruct) GetRider() (o *NestedStruct)
GetRider returns the value of Rider if it is set or its zero value if it is unset.
func (*TransStruct) IsSetDriver ¶
func (v *TransStruct) IsSetDriver() bool
IsSetDriver returns true if Driver is not nil.
func (*TransStruct) IsSetRider ¶
func (v *TransStruct) IsSetRider() bool
IsSetRider returns true if Rider is not nil.
func (*TransStruct) MarshalLogObject ¶
func (v *TransStruct) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
MarshalLogObject implements zapcore.ObjectMarshaler, enabling fast logging of TransStruct.
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) GetN1 ¶
func (v *Wrapped) GetN1() (o *NestHeaders)
GetN1 returns the value of N1 if it is set or its zero value if it is unset.
func (*Wrapped) GetN2 ¶
func (v *Wrapped) GetN2() (o *NestHeaders)
GetN2 returns the value of N2 if it is set or its zero value if it is unset.
func (*Wrapped) MarshalLogObject ¶
func (v *Wrapped) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
MarshalLogObject implements zapcore.ObjectMarshaler, enabling fast logging of Wrapped.
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 }