Documentation
¶
Index ¶
- Variables
- type BinarySet
- func (v *BinarySet) Decode(sr stream.Reader) error
- func (v BinarySet) Encode(sw stream.Writer) error
- func (lhs BinarySet) Equals(rhs BinarySet) bool
- func (v *BinarySet) FromWire(w wire.Value) error
- func (v BinarySet) MarshalLogArray(enc zapcore.ArrayEncoder) error
- func (v BinarySet) String() string
- func (v BinarySet) ToWire() (wire.Value, error)
- type DefaultPrimitiveTypedef
- func (v *DefaultPrimitiveTypedef) Decode(sr stream.Reader) error
- func (v *DefaultPrimitiveTypedef) Encode(sw stream.Writer) error
- func (v *DefaultPrimitiveTypedef) Equals(rhs *DefaultPrimitiveTypedef) bool
- func (v *DefaultPrimitiveTypedef) FromWire(w wire.Value) error
- func (v *DefaultPrimitiveTypedef) GetState() (o State)
- func (v *DefaultPrimitiveTypedef) IsSetState() bool
- func (v *DefaultPrimitiveTypedef) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
- func (v *DefaultPrimitiveTypedef) String() string
- func (v *DefaultPrimitiveTypedef) ToWire() (wire.Value, error)
- type EdgeMap
- func (v *EdgeMap) Decode(sr stream.Reader) error
- func (v EdgeMap) Encode(sw stream.Writer) error
- func (lhs EdgeMap) Equals(rhs EdgeMap) bool
- func (v *EdgeMap) FromWire(w wire.Value) error
- func (v EdgeMap) MarshalLogArray(enc zapcore.ArrayEncoder) error
- func (v EdgeMap) String() string
- func (v EdgeMap) ToWire() (wire.Value, error)
- type Event
- func (v *Event) Decode(sr stream.Reader) error
- func (v *Event) Encode(sw stream.Writer) error
- func (v *Event) Equals(rhs *Event) bool
- func (v *Event) FromWire(w wire.Value) error
- func (v *Event) GetTime() (o Timestamp)
- func (v *Event) GetUUID() (o *UUID)
- func (v *Event) IsSetTime() bool
- func (v *Event) IsSetUUID() bool
- func (v *Event) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
- func (v *Event) String() string
- func (v *Event) ToWire() (wire.Value, error)
- type EventGroup
- func (v *EventGroup) Decode(sr stream.Reader) error
- func (v EventGroup) Encode(sw stream.Writer) error
- func (lhs EventGroup) Equals(rhs EventGroup) bool
- func (v *EventGroup) FromWire(w wire.Value) error
- func (v EventGroup) MarshalLogArray(enc zapcore.ArrayEncoder) error
- func (v EventGroup) String() string
- func (v EventGroup) ToWire() (wire.Value, error)
- type FrameGroup
- func (v *FrameGroup) Decode(sr stream.Reader) error
- func (v FrameGroup) Encode(sw stream.Writer) error
- func (lhs FrameGroup) Equals(rhs FrameGroup) bool
- func (v *FrameGroup) FromWire(w wire.Value) error
- func (v FrameGroup) MarshalLogArray(enc zapcore.ArrayEncoder) error
- func (v FrameGroup) String() string
- func (v FrameGroup) ToWire() (wire.Value, error)
- type I128
- func (v *I128) Decode(sr stream.Reader) error
- func (v *I128) Encode(sw stream.Writer) error
- func (v *I128) Equals(rhs *I128) bool
- func (v *I128) FromWire(w wire.Value) error
- func (v *I128) GetHigh() (o int64)
- func (v *I128) GetLow() (o int64)
- func (v *I128) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
- func (v *I128) String() string
- func (v *I128) ToWire() (wire.Value, error)
- type MyEnum
- func (v *MyEnum) Decode(sr stream.Reader) error
- func (v MyEnum) Encode(sw stream.Writer) error
- func (lhs MyEnum) Equals(rhs MyEnum) bool
- func (v *MyEnum) FromWire(w wire.Value) error
- func (v MyEnum) MarshalLogObject(enc zapcore.ObjectEncoder) error
- func (v MyEnum) Ptr() *MyEnum
- func (v MyEnum) String() string
- func (v MyEnum) ToWire() (wire.Value, error)
- type MyUUID
- func (v *MyUUID) Decode(sr stream.Reader) error
- func (v *MyUUID) Encode(sw stream.Writer) error
- func (lhs *MyUUID) Equals(rhs *MyUUID) bool
- func (v *MyUUID) FromWire(w wire.Value) error
- func (v *MyUUID) MarshalLogObject(enc zapcore.ObjectEncoder) error
- func (v *MyUUID) String() string
- func (v *MyUUID) ToWire() (wire.Value, error)
- type PDF
- type PointMap
- func (v *PointMap) Decode(sr stream.Reader) error
- func (v PointMap) Encode(sw stream.Writer) error
- func (lhs PointMap) Equals(rhs PointMap) bool
- func (v *PointMap) FromWire(w wire.Value) error
- func (v PointMap) MarshalLogArray(enc zapcore.ArrayEncoder) error
- func (v PointMap) String() string
- func (v PointMap) ToWire() (wire.Value, error)
- type State
- type StateMap
- func (v *StateMap) Decode(sr stream.Reader) error
- func (v StateMap) Encode(sw stream.Writer) error
- func (lhs StateMap) Equals(rhs StateMap) bool
- func (v *StateMap) FromWire(w wire.Value) error
- func (v StateMap) MarshalLogObject(enc zapcore.ObjectEncoder) error
- func (v StateMap) String() string
- func (v StateMap) ToWire() (wire.Value, error)
- type StringReDef
- func (v *StringReDef) Decode(sr stream.Reader) error
- func (v StringReDef) Encode(sw stream.Writer) error
- func (lhs StringReDef) Equals(rhs StringReDef) bool
- func (v *StringReDef) FromWire(w wire.Value) error
- func (v StringReDef) Ptr() *StringReDef
- func (v StringReDef) String() string
- func (v StringReDef) ToWire() (wire.Value, error)
- type Timestampdeprecated
- func (v *Timestamp) Decode(sr stream.Reader) error
- func (v Timestamp) Encode(sw stream.Writer) error
- func (lhs Timestamp) Equals(rhs Timestamp) bool
- func (v *Timestamp) FromWire(w wire.Value) error
- func (v Timestamp) Ptr() *Timestamp
- func (v Timestamp) String() string
- func (v Timestamp) ToWire() (wire.Value, error)
- type Transition
- func (v *Transition) Decode(sr stream.Reader) error
- func (v *Transition) Encode(sw stream.Writer) error
- func (v *Transition) Equals(rhs *Transition) bool
- func (v *Transition) FromWire(w wire.Value) error
- func (v *Transition) GetEvents() (o EventGroup)
- func (v *Transition) GetFromState() (o State)
- func (v *Transition) GetToState() (o State)
- func (v *Transition) IsSetEvents() bool
- func (v *Transition) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
- func (v *Transition) String() string
- func (v *Transition) ToWire() (wire.Value, error)
- type TransitiveTypedefField
- func (v *TransitiveTypedefField) Decode(sr stream.Reader) error
- func (v *TransitiveTypedefField) Encode(sw stream.Writer) error
- func (v *TransitiveTypedefField) Equals(rhs *TransitiveTypedefField) bool
- func (v *TransitiveTypedefField) FromWire(w wire.Value) error
- func (v *TransitiveTypedefField) GetDefUUID() (o *MyUUID)
- func (v *TransitiveTypedefField) IsSetDefUUID() bool
- func (v *TransitiveTypedefField) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
- func (v *TransitiveTypedefField) String() string
- func (v *TransitiveTypedefField) ToWire() (wire.Value, error)
- type UUID
- func (v *UUID) Decode(sr stream.Reader) error
- func (v *UUID) Encode(sw stream.Writer) error
- func (lhs *UUID) Equals(rhs *UUID) bool
- func (v *UUID) FromWire(w wire.Value) error
- func (v *UUID) MarshalLogObject(enc zapcore.ObjectEncoder) error
- func (v *UUID) String() string
- func (v *UUID) ToWire() (wire.Value, error)
Constants ¶
This section is empty.
Variables ¶
var ThriftModule = &thriftreflect.ThriftModule{ Name: "typedefs", Package: "go.uber.org/thriftrw/gen/internal/tests/typedefs", FilePath: "typedefs.thrift", SHA1: "49d5bbfb109fd427820d1c1593fe41677b13dd69", Includes: []*thriftreflect.ThriftModule{ enums.ThriftModule, stringdef.ThriftModule, structs.ThriftModule, }, Raw: rawIDL, }
ThriftModule represents the IDL file used to generate this package.
Functions ¶
This section is empty.
Types ¶
type BinarySet ¶
type BinarySet [][]byte
func (*BinarySet) FromWire ¶
FromWire deserializes BinarySet from its Thrift-level representation. The Thrift-level representation may be obtained from a ThriftRW protocol implementation.
func (BinarySet) MarshalLogArray ¶
func (v BinarySet) MarshalLogArray(enc zapcore.ArrayEncoder) error
type DefaultPrimitiveTypedef ¶
type DefaultPrimitiveTypedef struct {
State *State `json:"state,omitempty"`
}
func Default_DefaultPrimitiveTypedef ¶ added in v1.24.0
func Default_DefaultPrimitiveTypedef() *DefaultPrimitiveTypedef
Default_DefaultPrimitiveTypedef constructs a new DefaultPrimitiveTypedef struct, pre-populating any fields with defined default values.
func (*DefaultPrimitiveTypedef) Decode ¶ added in v1.29.0
func (v *DefaultPrimitiveTypedef) Decode(sr stream.Reader) error
Decode deserializes a DefaultPrimitiveTypedef struct directly from its Thrift-level representation, without going through an intemediary type.
An error is returned if a DefaultPrimitiveTypedef struct could not be generated from the wire representation.
func (*DefaultPrimitiveTypedef) Encode ¶ added in v1.29.0
func (v *DefaultPrimitiveTypedef) Encode(sw stream.Writer) error
Encode serializes a DefaultPrimitiveTypedef struct directly into bytes, without going through an intermediary type.
An error is returned if a DefaultPrimitiveTypedef struct could not be encoded.
func (*DefaultPrimitiveTypedef) Equals ¶
func (v *DefaultPrimitiveTypedef) Equals(rhs *DefaultPrimitiveTypedef) bool
Equals returns true if all the fields of this DefaultPrimitiveTypedef match the provided DefaultPrimitiveTypedef.
This function performs a deep comparison.
func (*DefaultPrimitiveTypedef) FromWire ¶
func (v *DefaultPrimitiveTypedef) FromWire(w wire.Value) error
FromWire deserializes a DefaultPrimitiveTypedef 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 DefaultPrimitiveTypedef struct from the provided intermediate representation.
x, err := binaryProtocol.Decode(reader, wire.TStruct) if err != nil { return nil, err } var v DefaultPrimitiveTypedef if err := v.FromWire(x); err != nil { return nil, err } return &v, nil
func (*DefaultPrimitiveTypedef) GetState ¶
func (v *DefaultPrimitiveTypedef) GetState() (o State)
GetState returns the value of State if it is set or its default value if it is unset.
func (*DefaultPrimitiveTypedef) IsSetState ¶ added in v1.14.0
func (v *DefaultPrimitiveTypedef) IsSetState() bool
IsSetState returns true if State is not nil.
func (*DefaultPrimitiveTypedef) MarshalLogObject ¶
func (v *DefaultPrimitiveTypedef) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
MarshalLogObject implements zapcore.ObjectMarshaler, enabling fast logging of DefaultPrimitiveTypedef.
func (*DefaultPrimitiveTypedef) String ¶
func (v *DefaultPrimitiveTypedef) String() string
String returns a readable string representation of a DefaultPrimitiveTypedef struct.
func (*DefaultPrimitiveTypedef) ToWire ¶
func (v *DefaultPrimitiveTypedef) ToWire() (wire.Value, error)
ToWire translates a DefaultPrimitiveTypedef 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 EdgeMap ¶
func (*EdgeMap) FromWire ¶
FromWire deserializes EdgeMap from its Thrift-level representation. The Thrift-level representation may be obtained from a ThriftRW protocol implementation.
func (EdgeMap) MarshalLogArray ¶
func (v EdgeMap) MarshalLogArray(enc zapcore.ArrayEncoder) error
type Event ¶
func (*Event) Decode ¶ added in v1.29.0
Decode deserializes a Event struct directly from its Thrift-level representation, without going through an intemediary type.
An error is returned if a Event struct could not be generated from the wire representation.
func (*Event) Encode ¶ added in v1.29.0
Encode serializes a Event struct directly into bytes, without going through an intermediary type.
An error is returned if a Event struct could not be encoded.
func (*Event) Equals ¶
Equals returns true if all the fields of this Event match the provided Event.
This function performs a deep comparison.
func (*Event) FromWire ¶
FromWire deserializes a Event 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 Event struct from the provided intermediate representation.
x, err := binaryProtocol.Decode(reader, wire.TStruct) if err != nil { return nil, err } var v Event if err := v.FromWire(x); err != nil { return nil, err } return &v, nil
func (*Event) GetTime ¶
GetTime returns the value of Time if it is set or its zero value if it is unset.
func (*Event) GetUUID ¶
GetUUID returns the value of UUID if it is set or its zero value if it is unset.
func (*Event) MarshalLogObject ¶
func (v *Event) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
MarshalLogObject implements zapcore.ObjectMarshaler, enabling fast logging of Event.
func (*Event) ToWire ¶
ToWire translates a Event 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 EventGroup ¶
type EventGroup []*Event
func (*EventGroup) Decode ¶ added in v1.29.0
func (v *EventGroup) Decode(sr stream.Reader) error
Decode deserializes EventGroup directly off the wire.
func (EventGroup) Equals ¶
func (lhs EventGroup) Equals(rhs EventGroup) bool
Equals returns true if this EventGroup is equal to the provided EventGroup.
func (*EventGroup) FromWire ¶
func (v *EventGroup) FromWire(w wire.Value) error
FromWire deserializes EventGroup from its Thrift-level representation. The Thrift-level representation may be obtained from a ThriftRW protocol implementation.
func (EventGroup) MarshalLogArray ¶
func (v EventGroup) MarshalLogArray(enc zapcore.ArrayEncoder) error
func (EventGroup) String ¶
func (v EventGroup) String() string
String returns a readable string representation of EventGroup.
type FrameGroup ¶
func (*FrameGroup) Decode ¶ added in v1.29.0
func (v *FrameGroup) Decode(sr stream.Reader) error
Decode deserializes FrameGroup directly off the wire.
func (FrameGroup) Equals ¶
func (lhs FrameGroup) Equals(rhs FrameGroup) bool
Equals returns true if this FrameGroup is equal to the provided FrameGroup.
func (*FrameGroup) FromWire ¶
func (v *FrameGroup) FromWire(w wire.Value) error
FromWire deserializes FrameGroup from its Thrift-level representation. The Thrift-level representation may be obtained from a ThriftRW protocol implementation.
func (FrameGroup) MarshalLogArray ¶
func (v FrameGroup) MarshalLogArray(enc zapcore.ArrayEncoder) error
func (FrameGroup) String ¶
func (v FrameGroup) String() string
String returns a readable string representation of FrameGroup.
type I128 ¶
func (*I128) Decode ¶ added in v1.29.0
Decode deserializes a I128 struct directly from its Thrift-level representation, without going through an intemediary type.
An error is returned if a I128 struct could not be generated from the wire representation.
func (*I128) Encode ¶ added in v1.29.0
Encode serializes a I128 struct directly into bytes, without going through an intermediary type.
An error is returned if a I128 struct could not be encoded.
func (*I128) Equals ¶
Equals returns true if all the fields of this I128 match the provided I128.
This function performs a deep comparison.
func (*I128) FromWire ¶
FromWire deserializes a I128 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 I128 struct from the provided intermediate representation.
x, err := binaryProtocol.Decode(reader, wire.TStruct) if err != nil { return nil, err } var v I128 if err := v.FromWire(x); err != nil { return nil, err } return &v, nil
func (*I128) GetHigh ¶
GetHigh returns the value of High if it is set or its zero value if it is unset.
func (*I128) GetLow ¶
GetLow returns the value of Low if it is set or its zero value if it is unset.
func (*I128) MarshalLogObject ¶
func (v *I128) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
MarshalLogObject implements zapcore.ObjectMarshaler, enabling fast logging of I128.
func (*I128) ToWire ¶
ToWire translates a I128 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 MyEnum ¶
type MyEnum enums.EnumWithValues
func (*MyEnum) FromWire ¶
FromWire deserializes MyEnum from its Thrift-level representation. The Thrift-level representation may be obtained from a ThriftRW protocol implementation.
func (MyEnum) MarshalLogObject ¶
func (v MyEnum) MarshalLogObject(enc zapcore.ObjectEncoder) error
type MyUUID ¶ added in v1.26.0
type MyUUID UUID
func (*MyUUID) Equals ¶ added in v1.26.0
Equals returns true if this MyUUID is equal to the provided MyUUID.
func (*MyUUID) FromWire ¶ added in v1.26.0
FromWire deserializes MyUUID from its Thrift-level representation. The Thrift-level representation may be obtained from a ThriftRW protocol implementation.
func (*MyUUID) MarshalLogObject ¶ added in v1.26.0
func (v *MyUUID) MarshalLogObject(enc zapcore.ObjectEncoder) error
type PDF ¶
type PDF []byte
func (*PDF) FromWire ¶
FromWire deserializes PDF from its Thrift-level representation. The Thrift-level representation may be obtained from a ThriftRW protocol implementation.
type PointMap ¶
func (*PointMap) FromWire ¶
FromWire deserializes PointMap from its Thrift-level representation. The Thrift-level representation may be obtained from a ThriftRW protocol implementation.
func (PointMap) MarshalLogArray ¶
func (v PointMap) MarshalLogArray(enc zapcore.ArrayEncoder) error
type State ¶
type State string
func (*State) FromWire ¶
FromWire deserializes State from its Thrift-level representation. The Thrift-level representation may be obtained from a ThriftRW protocol implementation.
type StateMap ¶
func (*StateMap) FromWire ¶
FromWire deserializes StateMap from its Thrift-level representation. The Thrift-level representation may be obtained from a ThriftRW protocol implementation.
func (StateMap) MarshalLogObject ¶
func (v StateMap) MarshalLogObject(enc zapcore.ObjectEncoder) error
type StringReDef ¶ added in v1.30.0
func (*StringReDef) Decode ¶ added in v1.30.0
func (v *StringReDef) Decode(sr stream.Reader) error
Decode deserializes StringReDef directly off the wire.
func (StringReDef) Equals ¶ added in v1.30.0
func (lhs StringReDef) Equals(rhs StringReDef) bool
Equals returns true if this StringReDef is equal to the provided StringReDef.
func (*StringReDef) FromWire ¶ added in v1.30.0
func (v *StringReDef) FromWire(w wire.Value) error
FromWire deserializes StringReDef from its Thrift-level representation. The Thrift-level representation may be obtained from a ThriftRW protocol implementation.
func (StringReDef) Ptr ¶ added in v1.30.0
func (v StringReDef) Ptr() *StringReDef
StringReDefPtr returns a pointer to a StringReDef
func (StringReDef) String ¶ added in v1.30.0
func (v StringReDef) String() string
String returns a readable string representation of StringReDef.
type Timestamp
deprecated
type Timestamp int64
Number of seconds since epoch.
Deprecated: Use ISOTime instead.
func (*Timestamp) FromWire ¶
FromWire deserializes Timestamp from its Thrift-level representation. The Thrift-level representation may be obtained from a ThriftRW protocol implementation.
type Transition ¶
type Transition struct { FromState State `json:"fromState,required"` ToState State `json:"toState,required"` Events EventGroup `json:"events,omitempty"` }
func (*Transition) Decode ¶ added in v1.29.0
func (v *Transition) Decode(sr stream.Reader) error
Decode deserializes a Transition struct directly from its Thrift-level representation, without going through an intemediary type.
An error is returned if a Transition struct could not be generated from the wire representation.
func (*Transition) Encode ¶ added in v1.29.0
func (v *Transition) Encode(sw stream.Writer) error
Encode serializes a Transition struct directly into bytes, without going through an intermediary type.
An error is returned if a Transition struct could not be encoded.
func (*Transition) Equals ¶
func (v *Transition) Equals(rhs *Transition) bool
Equals returns true if all the fields of this Transition match the provided Transition.
This function performs a deep comparison.
func (*Transition) FromWire ¶
func (v *Transition) FromWire(w wire.Value) error
FromWire deserializes a Transition 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 Transition struct from the provided intermediate representation.
x, err := binaryProtocol.Decode(reader, wire.TStruct) if err != nil { return nil, err } var v Transition if err := v.FromWire(x); err != nil { return nil, err } return &v, nil
func (*Transition) GetEvents ¶
func (v *Transition) GetEvents() (o EventGroup)
GetEvents returns the value of Events if it is set or its zero value if it is unset.
func (*Transition) GetFromState ¶
func (v *Transition) GetFromState() (o State)
GetFromState returns the value of FromState if it is set or its zero value if it is unset.
func (*Transition) GetToState ¶
func (v *Transition) GetToState() (o State)
GetToState returns the value of ToState if it is set or its zero value if it is unset.
func (*Transition) IsSetEvents ¶ added in v1.14.0
func (v *Transition) IsSetEvents() bool
IsSetEvents returns true if Events is not nil.
func (*Transition) MarshalLogObject ¶
func (v *Transition) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
MarshalLogObject implements zapcore.ObjectMarshaler, enabling fast logging of Transition.
func (*Transition) String ¶
func (v *Transition) String() string
String returns a readable string representation of a Transition struct.
func (*Transition) ToWire ¶
func (v *Transition) ToWire() (wire.Value, error)
ToWire translates a Transition 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 TransitiveTypedefField ¶ added in v1.26.0
type TransitiveTypedefField struct {
DefUUID *MyUUID `json:"defUUID,required"`
}
func (*TransitiveTypedefField) Decode ¶ added in v1.29.0
func (v *TransitiveTypedefField) Decode(sr stream.Reader) error
Decode deserializes a TransitiveTypedefField struct directly from its Thrift-level representation, without going through an intemediary type.
An error is returned if a TransitiveTypedefField struct could not be generated from the wire representation.
func (*TransitiveTypedefField) Encode ¶ added in v1.29.0
func (v *TransitiveTypedefField) Encode(sw stream.Writer) error
Encode serializes a TransitiveTypedefField struct directly into bytes, without going through an intermediary type.
An error is returned if a TransitiveTypedefField struct could not be encoded.
func (*TransitiveTypedefField) Equals ¶ added in v1.26.0
func (v *TransitiveTypedefField) Equals(rhs *TransitiveTypedefField) bool
Equals returns true if all the fields of this TransitiveTypedefField match the provided TransitiveTypedefField.
This function performs a deep comparison.
func (*TransitiveTypedefField) FromWire ¶ added in v1.26.0
func (v *TransitiveTypedefField) FromWire(w wire.Value) error
FromWire deserializes a TransitiveTypedefField 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 TransitiveTypedefField struct from the provided intermediate representation.
x, err := binaryProtocol.Decode(reader, wire.TStruct) if err != nil { return nil, err } var v TransitiveTypedefField if err := v.FromWire(x); err != nil { return nil, err } return &v, nil
func (*TransitiveTypedefField) GetDefUUID ¶ added in v1.26.0
func (v *TransitiveTypedefField) GetDefUUID() (o *MyUUID)
GetDefUUID returns the value of DefUUID if it is set or its zero value if it is unset.
func (*TransitiveTypedefField) IsSetDefUUID ¶ added in v1.26.0
func (v *TransitiveTypedefField) IsSetDefUUID() bool
IsSetDefUUID returns true if DefUUID is not nil.
func (*TransitiveTypedefField) MarshalLogObject ¶ added in v1.26.0
func (v *TransitiveTypedefField) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
MarshalLogObject implements zapcore.ObjectMarshaler, enabling fast logging of TransitiveTypedefField.
func (*TransitiveTypedefField) String ¶ added in v1.26.0
func (v *TransitiveTypedefField) String() string
String returns a readable string representation of a TransitiveTypedefField struct.
func (*TransitiveTypedefField) ToWire ¶ added in v1.26.0
func (v *TransitiveTypedefField) ToWire() (wire.Value, error)
ToWire translates a TransitiveTypedefField 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 I128
func (*UUID) FromWire ¶
FromWire deserializes UUID from its Thrift-level representation. The Thrift-level representation may be obtained from a ThriftRW protocol implementation.
func (*UUID) MarshalLogObject ¶
func (v *UUID) MarshalLogObject(enc zapcore.ObjectEncoder) error