package
0.2.0
Repository: https://github.com/mervinkid/allspark.git
Documentation: pkg.go.dev

# Functions

NewApolloFrameDecoder create a new ApolloFrameDecoder instance with configuration.
NewApolloFrameEncoder create a new ApolloFrameEncoder instance with configuration.
NewDecodeError create instance of DecodeError with specified error message.
NewEncodeError create instance of EncodeError with specified error message.
NewStringFrameDecoder create a new StringFrameDecoder instance.
NewStringFrameEncoder create a new StringFrameEncoder instance.
NewTLVFrameDecoder create instance of TLVFrameDecoder with specified configuration.
NewTLVFrameEncoder create instance of TLVFrameEncoder with specified configuration.

# Constants

No description provided by the author
No description provided by the author

# Structs

No description provided by the author
ApolloFrameDecoder is a bytes to ApolloEntity decode implementation of FrameDecode based on TLVFrameDecoder using MessagePack for payload data deserialization.
ApolloFrameEncoder is a ApolloEntity to bytes encoder implementation of FrameEncode based on TLVFrameEncoder using MessagePack for payload data serialization.
DecodeError is a error implementation with detail error string output include decoder name and cause for decode exception.
EncodeError is a error implementation with detail error string output include encoder name and cause for encode exception.
StringFrameDecoder is a bytes to string decoder implementation of FrameDecoder interface that transform inbound data from []byte to string.
StringFrameEncoder is a string to bytes encoder implementation of FrameEncoder interface that transform outbound data from string to []byte.
TLVConfig is a data struct provide configuration properties for both TLVFrameDecoder and TLVFrameEncoder.
TLVFrameDecoder is a bytes to bytes decoder implementation of FrameDecoder with TLV format.
TLVFrameEncoder is a bytes to bytes encoder implementation of FrameEncoder with TLV format.

# Interfaces

No description provided by the author
FrameCodec is the interface that wraps the basic method for both encode and decode.
FrameDecoder is the interface that wraps the basic method for decode tcp stream.
FrameDecoder is the interface that wraps the basic method for encode tcp stream.