Documentation ¶
Index ¶
- Constants
- Variables
- func Disconnect() error
- func InitRedis(cfg *RedisConfig) error
- type RedisConfig
- type RedisDB
- func (r *RedisDB) CommitTransaction(serverTransactionID uuid.UUID, status metrics.Status) error
- func (r *RedisDB) DelKey(serverTransactionID uuid.UUID)
- func (r *RedisDB) ExistsTransaction(serverTransactionID uuid.UUID) bool
- func (r *RedisDB) GetTransactionStatus(serverTransactionID uuid.UUID, status metrics.Status) (metrics.Status, error)
- func (r *RedisDB) UpdateStatus(serverTransactionID uuid.UUID, status metrics.Status) error
Constants ¶
View Source
const (
TransactionTable = "transactionTable"
)
Variables ¶
Functions ¶
func Disconnect ¶
func Disconnect() error
func InitRedis ¶
func InitRedis(cfg *RedisConfig) error
Types ¶
type RedisConfig ¶
func LoadRedisConfig ¶
func LoadRedisConfig() (*RedisConfig, error)
type RedisDB ¶
type RedisDB struct {
// contains filtered or unexported fields
}
func GetCurrRedisDB ¶
func (*RedisDB) CommitTransaction ¶
func (*RedisDB) ExistsTransaction ¶
func (*RedisDB) GetTransactionStatus ¶
Click to show internal directories.
Click to hide internal directories.