oneway

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Oneway_Echo_Helper = struct {
	// Args accepts the parameters of echo in-order and returns
	// the arguments struct for the function.
	Args func(
		token *string,
	) *Oneway_Echo_Args
}{}

Oneway_Echo_Helper provides functions that aid in handling the parameters and return values of the Oneway.echo function.

View Source
var ThriftModule = &thriftreflect.ThriftModule{
	Name:     "oneway",
	Package:  "go.uber.org/yarpc/internal/crossdock/thrift/oneway",
	FilePath: "oneway.thrift",
	SHA1:     "2eb401ce231c98a633b0731ea9c0cdd24d40d3ca",
	Raw:      rawIDL,
}

ThriftModule represents the IDL file used to generate this package.

Functions

This section is empty.

Types

type Oneway_Echo_Args

type Oneway_Echo_Args struct {
	Token *string `json:"token,omitempty"`
}

Oneway_Echo_Args represents the arguments for the Oneway.echo function.

The arguments for echo are sent and received over the wire as this struct.

func (*Oneway_Echo_Args) EnvelopeType

func (v *Oneway_Echo_Args) EnvelopeType() wire.EnvelopeType

EnvelopeType returns the kind of value inside this struct.

This will always be OneWay for this struct.

func (*Oneway_Echo_Args) Equals added in v1.8.0

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

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

This function performs a deep comparison.

func (*Oneway_Echo_Args) FromWire

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

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

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

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

func (*Oneway_Echo_Args) GetToken added in v1.14.0

func (v *Oneway_Echo_Args) GetToken() (o string)

GetToken returns the value of Token if it is set or its zero value if it is unset.

func (*Oneway_Echo_Args) MethodName

func (v *Oneway_Echo_Args) MethodName() string

MethodName returns the name of the Thrift function as specified in the IDL, for which this struct represent the arguments.

This will always be "echo" for this struct.

func (*Oneway_Echo_Args) String

func (v *Oneway_Echo_Args) String() string

String returns a readable string representation of a Oneway_Echo_Args struct.

func (*Oneway_Echo_Args) ToWire

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

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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