Documentation ¶
Index ¶
- type RedisDistributeStateService
- 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)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RedisDistributeStateService ¶
type RedisDistributeStateService struct {
// contains filtered or unexported fields
}
func (*RedisDistributeStateService) FetchDistLock ¶
func (*RedisDistributeStateService) GetDistState ¶
func (s *RedisDistributeStateService) GetDistState(stateKey string) string
func (*RedisDistributeStateService) GetLockerID ¶
func (s *RedisDistributeStateService) GetLockerID() string
func (*RedisDistributeStateService) ReleaseDistLock ¶
func (s *RedisDistributeStateService) ReleaseDistLock(lockKey string, locker string) (bool, error)
func (*RedisDistributeStateService) SetDistState ¶
func (s *RedisDistributeStateService) SetDistState(stateKey string, stateValue string) error
func (*RedisDistributeStateService) UnlockDistLockWithState ¶
Click to show internal directories.
Click to hide internal directories.