Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrMessageEmpty = errors.New("LRP: Cannot decode empty message")
)
Functions ¶
This section is empty.
Types ¶
type LRPDecoder ¶
type LRPDecoder interface {
Decode(msg []byte) (LRPMessage, error)
}
func NewDecoder ¶
func NewDecoder() LRPDecoder
type LRPDecoderImpl ¶
type LRPDecoderImpl struct{}
func (*LRPDecoderImpl) Decode ¶
func (e *LRPDecoderImpl) Decode(msg []byte) (LRPMessage, error)
type LRPEncoder ¶
type LRPEncoder interface {
Encode(msg LRPMessage) []byte
}
func NewEncoder ¶
func NewEncoder() LRPEncoder
type LRPEncoderImpl ¶
type LRPEncoderImpl struct{}
func (*LRPEncoderImpl) Encode ¶
func (e *LRPEncoderImpl) Encode(msg LRPMessage) []byte
type LRPMessage ¶
func NewMesssage ¶
func NewMesssage(operation LRPOpcode, payload []byte) LRPMessage
Click to show internal directories.
Click to hide internal directories.