mirror of
https://github.com/HDT3213/godis.git
synced 2025-10-05 08:46:56 +08:00
refactor project structure
This commit is contained in:
11
interface/redis/client.go
Normal file
11
interface/redis/client.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package redis
|
||||
|
||||
type Connection interface {
|
||||
Write([]byte) error
|
||||
|
||||
// client should keep its subscribing channels
|
||||
SubsChannel(channel string)
|
||||
UnSubsChannel(channel string)
|
||||
SubsCount() int
|
||||
GetChannels() []string
|
||||
}
|
Reference in New Issue
Block a user