Documentation ¶
Index ¶
- Variables
- func ForeachSet(ctx context.Context, c *redis.Client, key string, cursor uint64, ...) (err error)
- func NewRedisClient(ctx context.Context, option *RedisOptions) (*redis.Client, error)
- type Client
- func (r Client) Marshal() ([]byte, error)
- func (r Client) MarshalJSON() ([]byte, error)
- func (r *Client) Merge(src proto.Message)
- func (r *Client) ProtoMessage()
- func (r *Client) Redis(ctx context.Context) *redis.Client
- func (r *Client) Reset()
- func (r Client) String() string
- func (r *Client) Unmarshal(data []byte) (err error)
- func (r *Client) UnmarshalJSON(data []byte) (err error)
- type Cmder
- type RedisOptions
- func (*RedisOptions) Descriptor() ([]byte, []int)
- func (o *RedisOptions) GetPeer() (string, int)
- func (m *RedisOptions) GetUrl() string
- func (*RedisOptions) ProtoMessage()
- func (m *RedisOptions) Reset()
- func (m *RedisOptions) String() string
- func (o *RedisOptions) UnmarshalJSON(data []byte) (err error)
- func (m *RedisOptions) XXX_DiscardUnknown()
- func (m *RedisOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RedisOptions) XXX_Merge(src proto.Message)
- func (m *RedisOptions) XXX_Size() int
- func (m *RedisOptions) XXX_Unmarshal(b []byte) error
- type Session
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrStopLoop = errors.New("stop")
Functions ¶
func ForeachSet ¶
func NewRedisClient ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (Client) MarshalJSON ¶
func (*Client) UnmarshalJSON ¶
type RedisOptions ¶
type RedisOptions struct { Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RedisOptions) Descriptor ¶
func (*RedisOptions) Descriptor() ([]byte, []int)
func (*RedisOptions) GetPeer ¶
func (o *RedisOptions) GetPeer() (string, int)
func (*RedisOptions) GetUrl ¶
func (m *RedisOptions) GetUrl() string
func (*RedisOptions) ProtoMessage ¶
func (*RedisOptions) ProtoMessage()
func (*RedisOptions) Reset ¶
func (m *RedisOptions) Reset()
func (*RedisOptions) String ¶
func (m *RedisOptions) String() string
func (*RedisOptions) UnmarshalJSON ¶
func (o *RedisOptions) UnmarshalJSON(data []byte) (err error)
func (*RedisOptions) XXX_DiscardUnknown ¶
func (m *RedisOptions) XXX_DiscardUnknown()
func (*RedisOptions) XXX_Marshal ¶
func (m *RedisOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RedisOptions) XXX_Merge ¶
func (m *RedisOptions) XXX_Merge(src proto.Message)
func (*RedisOptions) XXX_Size ¶
func (m *RedisOptions) XXX_Size() int
func (*RedisOptions) XXX_Unmarshal ¶
func (m *RedisOptions) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.