codec

package
v0.0.0-...-440800f Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLengthBasedFrame

func NewLengthBasedFrame(readBuf int) net2.Protocol

Types

type LengthBasedFrame

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

func (*LengthBasedFrame) NewCodec

func (b *LengthBasedFrame) NewCodec(rw io.ReadWriter) (cc net2.Codec, err error)

type LengthBasedFrameCodec

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

func (*LengthBasedFrameCodec) Close

func (c *LengthBasedFrameCodec) Close() error

func (*LengthBasedFrameCodec) Context

func (c *LengthBasedFrameCodec) Context() interface{}

func (*LengthBasedFrameCodec) Receive

func (c *LengthBasedFrameCodec) Receive() (interface{}, error)

func (*LengthBasedFrameCodec) Send

func (c *LengthBasedFrameCodec) Send(msg interface{}) error

type LengthBasedFrameStream

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

Jump to

Keyboard shortcuts

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