stringdef

package
v1.31.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 9, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ThriftModule = &thriftreflect.ThriftModule{
	Name:     "stringdef",
	Package:  "go.uber.org/thriftrw/gen/internal/tests/stringdef",
	FilePath: "stringdef.thrift",
	SHA1:     "313c35c10839a4442eb270df8e6acda528af9293",
	Raw:      rawIDL,
}

ThriftModule represents the IDL file used to generate this package.

Functions

This section is empty.

Types

type StringDef

type StringDef string

func (*StringDef) Decode

func (v *StringDef) Decode(sr stream.Reader) error

Decode deserializes StringDef directly off the wire.

func (StringDef) Encode

func (v StringDef) Encode(sw stream.Writer) error

func (StringDef) Equals

func (lhs StringDef) Equals(rhs StringDef) bool

Equals returns true if this StringDef is equal to the provided StringDef.

func (*StringDef) FromWire

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

FromWire deserializes StringDef from its Thrift-level representation. The Thrift-level representation may be obtained from a ThriftRW protocol implementation.

func (StringDef) Ptr

func (v StringDef) Ptr() *StringDef

StringDefPtr returns a pointer to a StringDef

func (StringDef) String

func (v StringDef) String() string

String returns a readable string representation of StringDef.

func (StringDef) ToWire

func (v StringDef) ToWire() (wire.Value, error)

ToWire translates StringDef into a Thrift-level intermediate representation. This intermediate representation may be serialized into bytes using a ThriftRW protocol implementation.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL