Documentation ¶ Index ¶ type DB type RdClient func GetClient() *RdClient func InitClient(cfg structure.RedisConfiguration) *RdClient func (c *RdClient) UseDb(dbIndex DB, f func(p rd.Pipeliner) error) ([]rd.Cmder, error) func (c *RdClient) UseDbTx(dbIndex DB, f func(p rd.Pipeliner) error) ([]rd.Cmder, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type DB ¶ type DB int const ( ApplicationTokenDb DB = iota ApplicationPermissionDb UserTokenDb UserPermissionDb DeviceTokenDb DevicePermissionDb ) type RdClient ¶ type RdClient struct { *rd.Client } func GetClient ¶ func GetClient() *RdClient func InitClient ¶ func InitClient(cfg structure.RedisConfiguration) *RdClient func (*RdClient) UseDb ¶ func (c *RdClient) UseDb(dbIndex DB, f func(p rd.Pipeliner) error) ([]rd.Cmder, error) func (*RdClient) UseDbTx ¶ func (c *RdClient) UseDbTx(dbIndex DB, f func(p rd.Pipeliner) error) ([]rd.Cmder, error) Source Files ¶ View all Source files client.go Click to show internal directories. Click to hide internal directories.