Documentation ¶
Overview ¶
Package redis is a wrapper of the original "github.com/go-redis/redis/v8" library.
Only contains basic publish, subscribe, and close methods. Data will be encoded to JSON before publishing the message.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Channel ¶
type Channel struct {
// contains filtered or unexported fields
}
Channel is redis pubsub channel.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is redis pubsub client.
func NewFromGoRedis ¶
func NewFromGoRedis(client *redis.Client) *Client
NewFromGoRedis to create pubsub from go-redis client.
func NewWithConfig ¶
NewWithConfig to create pubsub from go-redis options.
Click to show internal directories.
Click to hide internal directories.