thriftrw: go.uber.org/thriftrw/gen/internal/tests/non_hyphenated Index | Files

package non_hyphenated

import "go.uber.org/thriftrw/gen/internal/tests/non_hyphenated"

Index

Package Files

non_hyphenated.go

Variables

var ThriftModule = &thriftreflect.ThriftModule{
    Name:     "non_hyphenated",
    Package:  "go.uber.org/thriftrw/gen/internal/tests/non_hyphenated",
    FilePath: "non_hyphenated.thrift",
    SHA1:     "5cbe76400805b1c5a248631c4ad87e3dfe6f183e",
    Raw:      rawIDL,
}

ThriftModule represents the IDL file used to generate this package.

type First Uses

type First struct {
}

func (*First) Equals Uses

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

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

This function performs a deep comparison.

func (*First) FromWire Uses

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

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

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

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

func (*First) MarshalLogObject Uses

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

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

func (*First) String Uses

func (v *First) String() string

String returns a readable string representation of a First struct.

func (*First) ToWire Uses

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

ToWire translates a First 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 Second Uses

type Second struct {
}

func (*Second) Equals Uses

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

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

This function performs a deep comparison.

func (*Second) FromWire Uses

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

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

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

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

func (*Second) MarshalLogObject Uses

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

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

func (*Second) String Uses

func (v *Second) String() string

String returns a readable string representation of a Second struct.

func (*Second) ToWire Uses

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

ToWire translates a Second 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
}

Package non_hyphenated imports 5 packages (graph) and is imported by 4 packages. Updated 2020-04-01. Refresh now. Tools for package owners.