From f4fdc789b3c75e202d56e88b1311aee215adc8cc Mon Sep 17 00:00:00 2001 From: Kelvin Mwinuka Date: Mon, 1 Jul 2024 09:23:58 +0800 Subject: [PATCH] Added description for the HELLO command --- internal/modules/connection/commands.go | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/internal/modules/connection/commands.go b/internal/modules/connection/commands.go index f9ed255..182a345 100644 --- a/internal/modules/connection/commands.go +++ b/internal/modules/connection/commands.go @@ -223,11 +223,13 @@ Otherwise, the server will return "PONG".`, HandlerFunc: handleEcho, }, { - Command: "hello", - Module: constants.ConnectionModule, - Categories: []string{constants.FastCategory, constants.ConnectionCategory}, - Description: `(HELLO [protover [AUTH username password] [SETNAME clientname]])`, - Sync: false, + Command: "hello", + Module: constants.ConnectionModule, + Categories: []string{constants.FastCategory, constants.ConnectionCategory}, + Description: `(HELLO [protover [AUTH username password] [SETNAME clientname]]) +Switch to a different protocol, optionally authenticating and setting the connection's name, +or provide a contextual client report.`, + Sync: false, KeyExtractionFunc: func(cmd []string) (internal.KeyExtractionFuncResult, error) { return internal.KeyExtractionFuncResult{ Channels: make([]string, 0),