Back to

Package hyphenated_file

Latest Go to latest
Published: Oct 17, 2019 | License: MIT | Module:


Package Files


var ThriftModule = &thriftreflect.ThriftModule{
	Name:     "hyphenated_file",
	Package:  "",
	FilePath: "hyphenated_file.thrift",
	SHA1:     "efdcd233efa65e3d451cdf36c518da9e2d0c40b1",
	Includes: []*thriftreflect.ThriftModule{
	Raw: rawIDL,

ThriftModule represents the IDL file used to generate this package.

type DocumentStructure

type DocumentStructure struct {
	R2 *non_hyphenated.Second `json:"r2,required"`

func (*DocumentStructure) Equals

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

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

This function performs a deep comparison.

func (*DocumentStructure) FromWire

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

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

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

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

func (*DocumentStructure) GetR2

func (v *DocumentStructure) GetR2() (o *non_hyphenated.Second)

GetR2 returns the value of R2 if it is set or its zero value if it is unset.

func (*DocumentStructure) IsSetR2

func (v *DocumentStructure) IsSetR2() bool

IsSetR2 returns true if R2 is not nil.

func (*DocumentStructure) MarshalLogObject

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

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

func (*DocumentStructure) String

func (v *DocumentStructure) String() string

String returns a readable string representation of a DocumentStructure struct.

func (*DocumentStructure) ToWire

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

ToWire translates a DocumentStructure 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
Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier