mirror of
https://github.com/EchoVault/SugarDB.git
synced 2025-10-14 12:13:54 +08:00
Return PONG response from server
This commit is contained in:
@@ -24,6 +24,10 @@ func tokenize(comm string) ([]string, error) {
|
||||
return r.Read()
|
||||
}
|
||||
|
||||
func EncodeSimpleString(wr *resp.Writer, token string) error {
|
||||
return wr.WriteSimpleString(token)
|
||||
}
|
||||
|
||||
func encodePingPong(wr *resp.Writer, tokens []string) error {
|
||||
switch len(tokens) {
|
||||
default:
|
||||
|
Reference in New Issue
Block a user