internal

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2025 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProtobufTCPWire added in v1.0.7

type ProtobufTCPWire struct {
	// contains filtered or unexported fields
}

func NewProtobufTCPWire added in v1.0.7

func NewProtobufTCPWire(maxMsgSize int, conn net.Conn) *ProtobufTCPWire

func (*ProtobufTCPWire) Close added in v1.0.7

func (w *ProtobufTCPWire) Close()

func (*ProtobufTCPWire) Receive added in v1.0.7

func (w *ProtobufTCPWire) Receive(dst proto.Message) *wire.WireError

func (*ProtobufTCPWire) Send added in v1.0.7

func (w *ProtobufTCPWire) Send(msg proto.Message) *wire.WireError

type Status added in v1.0.7

type Status int
const (
	Open   Status = 1
	Closed Status = 2
)

type TCPWire added in v1.0.7

type TCPWire struct {
	// contains filtered or unexported fields
}

func NewTCPWire added in v1.0.7

func NewTCPWire(maxMsgSize int, conn net.Conn) *TCPWire

func (*TCPWire) Close added in v1.0.7

func (w *TCPWire) Close()

func (*TCPWire) Receive added in v1.0.7

func (w *TCPWire) Receive() ([]byte, *wire.WireError)

func (*TCPWire) Send added in v1.0.7

func (w *TCPWire) Send(msg []byte) *wire.WireError

type Wire added in v1.0.7

type Wire interface {
	Send([]byte) *wire.WireError
	Receive() ([]byte, *wire.WireError)
	Close()
}

Jump to

Keyboard shortcuts

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