Documentation ¶
Index ¶
Constants ¶
View Source
const ( STRING = '+' ERROR = '-' INTEGER = ':' BULK = '$' ARRAY = '*' SET = '~' )
View Source
const ( TYPE_ARRAY = "array" TYPE_INTEGER = "integer" TYPE_BULK = "bulk" TYPE_ERROR = "error" TYPE_STRING = "string" TYPE_NULL = "null" TYPE_SET = "set" TYPE_VOID = "void" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RespReader ¶
type RespReader struct {
// contains filtered or unexported fields
}
func NewRespReader ¶
func NewRespReader(reader io.Reader) *RespReader
func (*RespReader) ReadResp ¶
func (r *RespReader) ReadResp() (RespValue, error)
type RespValue ¶
func NewRespValue ¶
func NewRespValue() *RespValue
type RespWriter ¶
type RespWriter struct {
// contains filtered or unexported fields
}
func NewRespWriter ¶
func NewRespWriter(writer io.Writer) *RespWriter
func (*RespWriter) WriteErrorResp ¶
func (w *RespWriter) WriteErrorResp(e error) error
func (*RespWriter) WriteResp ¶
func (w *RespWriter) WriteResp(v RespValue) error
Click to show internal directories.
Click to hide internal directories.