oneway

package
v0.0.0-...-c99e383 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: MIT Imports: 6 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) Decode

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

Decode deserializes a Oneway_Echo_Args struct directly from its Thrift-level representation, without going through an intemediary type.

An error is returned if a Oneway_Echo_Args struct could not be generated from the wire representation.

func (*Oneway_Echo_Args) Encode

func (v *Oneway_Echo_Args) Encode(sw stream.Writer) error

Encode serializes a Oneway_Echo_Args struct directly into bytes, without going through an intermediary type.

An error is returned if a Oneway_Echo_Args struct could not be encoded.

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

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

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) IsSetToken

func (v *Oneway_Echo_Args) IsSetToken() bool

IsSetToken returns true if Token is not nil.

func (*Oneway_Echo_Args) MarshalLogObject

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

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

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
Package onewayfx provides better integration for Fx for services implementing or calling Oneway.
Package onewayfx provides better integration for Fx for services implementing or calling Oneway.

Jump to

Keyboard shortcuts

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