Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTimestamp ¶
func GetTimestamp() int64
func NewLogger ¶
func NewLogger() *zap.SugaredLogger
Types ¶
type Idempotence ¶
type Idempotence struct {
// contains filtered or unexported fields
}
func NewIdempotence ¶
func NewIdempotence(storage IdempotenceStorage) Idempotence
func (Idempotence) Remove ¶
func (ide Idempotence) Remove(key, group string) error
func (Idempotence) SaveIfAbsent ¶
func (ide Idempotence) SaveIfAbsent(key, group string) error
type IdempotenceStorage ¶
type RedisIdempotenceStorage ¶
type RedisIdempotenceStorage struct {
// contains filtered or unexported fields
}
func NewRedisIdempotenceStorage ¶
func NewRedisIdempotenceStorage(config RedisIdempotenceStorageConfig) (RedisIdempotenceStorage, error)
func (RedisIdempotenceStorage) Remove ¶
func (storage RedisIdempotenceStorage) Remove(key, group string) error
func (RedisIdempotenceStorage) SaveIfAbsent ¶
func (storage RedisIdempotenceStorage) SaveIfAbsent(key, group string) error
Click to show internal directories.
Click to hide internal directories.