Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
Host string
Port int
Timeout time.Duration
// contains filtered or unexported fields
}
Client represents a TCP client for testing
func (*Client) IsConnected ¶
IsConnected returns whether the client is currently connected
func (*Client) Recv ¶
Recv receives data from the TCP connection Returns the raw bytes received (without any parsing)
type RESPValue ¶
type RESPValue struct {
Type RESPType
RawValue string // Raw string value (for + and -)
JSONValue interface{} // Parsed JSON value (for $)
IsNull bool // True if $-1\r\n
BulkLength int // Length of bulk string
}
RESPValue represents a parsed RESP value
Click to show internal directories.
Click to hide internal directories.