Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dgx ¶
type Dgx struct { S1 string `json:"s1,required"` I2 int32 `json:"i2,required"` B3 *bool `json:"b3,omitempty"` }
func (*Dgx) Equals ¶
Equals returns true if all the fields of this Dgx match the provided Dgx.
This function performs a deep comparison.
func (*Dgx) FromWire ¶
FromWire deserializes a Dgx 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 Dgx struct from the provided intermediate representation.
x, err := binaryProtocol.Decode(reader, wire.TStruct) if err != nil { return nil, err } var v Dgx if err := v.FromWire(x); err != nil { return nil, err } return &v, nil
func (*Dgx) ToWire ¶
ToWire translates a Dgx 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 Fred ¶
type Fred struct { ContentType string `json:"contentType,required"` Auth string `json:"auth,required"` }
func (*Fred) Equals ¶
Equals returns true if all the fields of this Fred match the provided Fred.
This function performs a deep comparison.
func (*Fred) FromWire ¶
FromWire deserializes a Fred 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 Fred struct from the provided intermediate representation.
x, err := binaryProtocol.Decode(reader, wire.TStruct) if err != nil { return nil, err } var v Fred if err := v.FromWire(x); err != nil { return nil, err } return &v, nil
func (*Fred) ToWire ¶
ToWire translates a Fred 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 Garply ¶
func (*Garply) Equals ¶
Equals returns true if all the fields of this Garply match the provided Garply.
This function performs a deep comparison.
func (*Garply) FromWire ¶
FromWire deserializes a Garply 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 Garply struct from the provided intermediate representation.
x, err := binaryProtocol.Decode(reader, wire.TStruct) if err != nil { return nil, err } var v Garply if err := v.FromWire(x); err != nil { return nil, err } return &v, nil
func (*Garply) GetToken ¶
GetToken returns the value of Token if it is set or its zero value if it is unset.
func (*Garply) GetUUID ¶
GetUUID returns the value of UUID if it is set or its zero value if it is unset.
func (*Garply) ToWire ¶
ToWire translates a Garply 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 Grault ¶
func (*Grault) Equals ¶
Equals returns true if all the fields of this Grault match the provided Grault.
This function performs a deep comparison.
func (*Grault) FromWire ¶
FromWire deserializes a Grault 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 Grault struct from the provided intermediate representation.
x, err := binaryProtocol.Decode(reader, wire.TStruct) if err != nil { return nil, err } var v Grault if err := v.FromWire(x); err != nil { return nil, err } return &v, nil
func (*Grault) GetToken ¶
GetToken returns the value of Token if it is set or its zero value if it is unset.
func (*Grault) GetUUID ¶
GetUUID returns the value of UUID if it is set or its zero value if it is unset.
func (*Grault) ToWire ¶
ToWire translates a Grault 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 Thud ¶
type Thud struct {
SomeResHeader *string `json:"someResHeader,omitempty"`
}
func (*Thud) Equals ¶
Equals returns true if all the fields of this Thud match the provided Thud.
This function performs a deep comparison.
func (*Thud) FromWire ¶
FromWire deserializes a Thud 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 Thud struct from the provided intermediate representation.
x, err := binaryProtocol.Decode(reader, wire.TStruct) if err != nil { return nil, err } var v Thud if err := v.FromWire(x); err != nil { return nil, err } return &v, nil
func (*Thud) GetSomeResHeader ¶
GetSomeResHeader returns the value of SomeResHeader if it is set or its zero value if it is unset.
func (*Thud) ToWire ¶
ToWire translates a Thud 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 TokenOnly ¶
type TokenOnly struct {
Token string `json:"Token,required"`
}
func (*TokenOnly) Equals ¶
Equals returns true if all the fields of this TokenOnly match the provided TokenOnly.
This function performs a deep comparison.
func (*TokenOnly) FromWire ¶
FromWire deserializes a TokenOnly 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 TokenOnly struct from the provided intermediate representation.
x, err := binaryProtocol.Decode(reader, wire.TStruct) if err != nil { return nil, err } var v TokenOnly if err := v.FromWire(x); err != nil { return nil, err } return &v, nil
func (*TokenOnly) ToWire ¶
ToWire translates a TokenOnly 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 UUIDOnly ¶
type UUIDOnly struct {
UUID string `json:"UUID,required"`
}
func (*UUIDOnly) Equals ¶
Equals returns true if all the fields of this UUIDOnly match the provided UUIDOnly.
This function performs a deep comparison.
func (*UUIDOnly) FromWire ¶
FromWire deserializes a UUIDOnly 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 UUIDOnly struct from the provided intermediate representation.
x, err := binaryProtocol.Decode(reader, wire.TStruct) if err != nil { return nil, err } var v UUIDOnly if err := v.FromWire(x); err != nil { return nil, err } return &v, nil
func (*UUIDOnly) ToWire ¶
ToWire translates a UUIDOnly 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 }