Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrMismatchBytes = errors.New("number of bytes received mismatch") ErrTimeoutRead = errors.New("read timeout expired") ErrUnexpectedChar = errors.New("unexpected char after escape character") ErrResponseLength = errors.New("invalid response length") ErrResponseStatusLength = errors.New("invalid response status length") )
Functions ¶
Types ¶
type ResponseObj ¶
type ResponseObj struct { Status bool ErrorCode code.ErrType // contains filtered or unexported fields }
func Response ¶
func Response(data []byte) (*ResponseObj, error)
func (*ResponseObj) Checksum ¶
func (r *ResponseObj) Checksum() []byte
func (*ResponseObj) Data ¶
func (r *ResponseObj) Data() []byte
func (*ResponseObj) String ¶
func (r *ResponseObj) String() string
Click to show internal directories.
Click to hide internal directories.