diff options
| author | alex <[email protected]> | 2026-07-12 14:09:36 +0200 |
|---|---|---|
| committer | alex <[email protected]> | 2026-07-12 14:09:36 +0200 |
| commit | ce9d9f8b2183bc0a31bfa40e780ae07182bc7cf8 (patch) | |
| tree | 73eefd7228bb3ba820c618777495b60a3fb6860f /pkg/commands/publish.go | |
| parent | 89b3019a3ab77a3e72720342fc0e5bea996fa4f2 (diff) | |
| download | redis-clone-ce9d9f8b2183bc0a31bfa40e780ae07182bc7cf8.tar.xz redis-clone-ce9d9f8b2183bc0a31bfa40e780ae07182bc7cf8.zip | |
added pubsub command registrycommand-registry
Diffstat (limited to 'pkg/commands/publish.go')
| -rw-r--r-- | pkg/commands/publish.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/pkg/commands/publish.go b/pkg/commands/publish.go new file mode 100644 index 0000000..5959d57 --- /dev/null +++ b/pkg/commands/publish.go @@ -0,0 +1,12 @@ +package commands + +import ( + "net" + "redisClone/pkg/pubsub" +) + +func Publish(hub *pubsub.Hub, conn net.Conn, args []string) interface{}{ + channel := args[1] + msg := args[2] + return hub.Publish(channel, msg) +}
\ No newline at end of file |
