Back to

Package envelope

Latest Go to latest

The latest major version is .

Published: Sep 10, 2020 | License: MIT | Module:


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.

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.

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier