envelope

package
Version: v1.29.2 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2021 License: MIT Imports: 5 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadReply

func ReadReply(p protocol.Protocol, r io.ReaderAt) (_ wire.Value, seqID int32, _ error)

ReadReply reads enveloped responses from the given reader.

func Write

func Write(p protocol.Protocol, w io.Writer, seqID int32, e Enveloper) error

Write writes an Envelope to the given writer.

Types

type Enveloper

type Enveloper interface {
	MethodName() string
	EnvelopeType() wire.EnvelopeType
	ToWire() (wire.Value, error)
}

Enveloper is the interface implemented by a type that can be written with an envelope.

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL