message

package
v0.0.0-...-02b4230 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

*

*
* @author liangjf
* @create on 2020/5/26
* @version 1.0

Index

Constants

View Source
const (
	DefaultPayloadLength = 1024
	MaxPayloadLength     = 4 * 1024 * 1024
)

Variables

View Source
var (
	ErrMagicIsError     = errors.New("header magic is error")
	ErrMaxPayloadLength = errors.New("payload is too max")
	ErrReadLessThenNeed = errors.New("read less then need length")
)

Functions

This section is empty.

Types

type IFramer

type IFramer interface {
	ReadFramer() ([]byte, error)
}

func NewFramer

func NewFramer(rawConn net.Conn) IFramer

Jump to

Keyboard shortcuts

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