1
0
mirror of https://github.com/redis/go-redis.git synced 2025-06-12 14:21:52 +03:00

Check that clients implement scripter interface.

This commit is contained in:
Vladimir Mihailenco
2016-12-14 12:12:50 +02:00
parent c6acf2ed15
commit 34122bffa8
6 changed files with 9 additions and 8 deletions

View File

@ -236,6 +236,11 @@ type Cmdable interface {
Command() *CommandsInfoCmd
}
var _ Cmdable = (*Client)(nil)
var _ Cmdable = (*Tx)(nil)
var _ Cmdable = (*Ring)(nil)
var _ Cmdable = (*ClusterClient)(nil)
type cmdable struct {
process func(cmd Cmder) error
}