Versions in this module Expand all Collapse all v1 v1.0.0 Jan 6, 2023 Changes in this version + type RedisDistributeStateService struct + func NewRedisDistributeStateService(url string, pass string, db int, logger log.Logger, lockerID string) (*RedisDistributeStateService, error) + func (s *RedisDistributeStateService) FetchDistLock(lockKey string, locker string, expiredInMS int) (bool, error) + func (s *RedisDistributeStateService) GetDistState(stateKey string) string + func (s *RedisDistributeStateService) GetLockerID() string + func (s *RedisDistributeStateService) ReleaseDistLock(lockKey string, locker string) (bool, error) + func (s *RedisDistributeStateService) SetDistState(stateKey string, stateValue string) error + func (s *RedisDistributeStateService) UnlockDistLockWithState(lockKey string, locker string, stateKey string, stateValue string) (bool, error)