Versions in this module Expand all Collapse all v0 v0.0.1 Apr 10, 2021 Changes in this version + func FormateDate(t time.Time) string + type DefaultIdempotentKey struct + IgnoreError bool + Keys FuncKeys + KeysTmpl string + Target interface{} + func NewIdempotent(keys string) (*DefaultIdempotentKey, error) + func (d DefaultIdempotentKey) IdempotentKey() (interface{}, error) + type FuncKeys func(obj interface{}) (interface{}, error) + type Idempotent struct + Key *DefaultIdempotentKey + Service IdempotentService + func GetIdempotentWithKeys(keys string, service IdempotentService) (*Idempotent, error) + func (factory Idempotent) Duplicated(obj interface{}) (bool, error) + type IdempotentKey interface + IdempotentKey func() (interface{}, error) + type IdempotentService interface + Duplicated func(key interface{}) (bool, error) + Save func(key interface{}) error + type InMemoryMap struct + func NewInMemoryMap() *InMemoryMap + func (mem *InMemoryMap) Duplicated(key interface{}) (bool, error) + func (mem *InMemoryMap) Save(key interface{}) error + type PersistedIdempotent struct + Batch uint + File string + Interval string + Retry uint + func (f *PersistedIdempotent) Duplicated(key interface{}) (bool, error) + func (f *PersistedIdempotent) Init() error + func (f *PersistedIdempotent) Save(key interface{}) error