Discover Packages
github.com/liangjfblue/gpusher
common
message
package
Version:
v0.0.0-...-02b4230
Opens a new window with list of versions in this module.
Published: Sep 10, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
*
*
* @author liangjf
* @create on 2020/5/26
* @version 1.0
View Source
const (
DefaultPayloadLength = 1024
MaxPayloadLength = 4 * 1024 * 1024
)
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")
)
type IFramer interface {
ReadFramer() ([]byte , error )
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.