forked from redis/go-redis
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expose internals and add an option to disable AUTH/HELLO on new conne…
…ction (#16) * Expose internals for Redis proxy (v9.0.0-rc.1) * Add an option to disable AUTH and HELLO on new connection
- Loading branch information
Showing
5 changed files
with
68 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package redis | ||
|
||
import ( | ||
"bytes" | ||
"io" | ||
|
||
"github.com/go-redis/redis/v9/internal/proto" | ||
) | ||
|
||
type Reader = proto.Reader | ||
type Writer = proto.Writer | ||
type RedisError = proto.RedisError | ||
|
||
const RespArray = proto.RespArray | ||
const RespInt = proto.RespInt | ||
|
||
func NewReader(rd io.Reader) *Reader { | ||
return proto.NewReader(rd) | ||
} | ||
|
||
func NewWriter(wr *bytes.Buffer) *Writer { | ||
return proto.NewWriter(wr) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters