codec

package
v0.0.0-...-e41513e Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2020 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Overview

Test codec

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