A compact library for tracking and committing changes to your entities.
unit.WithCacheClient
options that allows consumers to provide their own cache clients.work.UnitLogger
and work.UnitScope
to work.UnitZapLogger
and work.UnitTallyMetricScope
.work.UnitOptions
.github.com/stretchr/testify
from 1.8.1
to 1.8.2
in /v4
github.com/stretchr/testify
from 1.8.1
to 1.8.2
in /v3
github.com/avast/retry-go/v4
from 4.1.0
to 4.3.3
in /v4
github.com/uber-go/tally/v4
from 4.1.3
to 4.1.6 in /v4
go.uber.org/multierr
from 1.8.0
to 1.9.0
in /v4
go.uber.org/multierr
from 1.8.0
to 1.9.0
in /v3
go.uber.org/zap
from 1.23.0
to 1.24.0
in /v4
unit.InsertFunc
, unit.UpdateFunc
, and unit.DeleteFunc
options.unit.DataMapperFunc
instead of unit.DataMapper
.DataMappers
property from unit.Options
.work.DataMapper
to work.UnitDataMapper
for consistency.Register
method is called, the provided entities will be placed in a cache if deemed eligible (have implemented the identifierer
or ider
interfaces).Alter
or Remove
.github.com/uber-go/tally
dependency to version v3.4.2
.github.com/stretchr/testify
dependency to version v1.8.0
.go.uber.org/zap dependency
to version v1.21.1
.github.com/uber-go/tally
dependency to version v3.4.2
.github.com/stretchr/testify
dependency to version v1.8.0
.go.uber.org/zap dependency
to version v1.21.1
.coveralls
to codecov
.unit.retry.attempt
unit.insert
unit.update
unit.delete
pkg.go.dev
.make demo
unit
package for aliasing.
DataMapper
interface.MapperContext
.Save
to be context.Context
aware.work.NewUnit
to dynamically choose which type of work unit to
create based on provided options.