Versions in this module Expand all Collapse all v1 v1.0.1 Feb 24, 2020 Changes in this version + type DataStorage struct + DataToStoreDtoFactory DataToStoreDtoFactoryInterface + func InitializeDataStorage(databaseURL, databaseName string, isDebugModeOn bool) (*DataStorage, error) + func (storage *DataStorage) Add(dataToStoreDto DataToStoreDto) TraceableErrorInterface + func (storage *DataStorage) AddOrUpdate(dataToStoreDto DataToStoreDto) TraceableErrorInterface + func (storage *DataStorage) Delete(dataKey string, data interface{}) TraceableErrorInterface + func (storage *DataStorage) Load(dataKey string, dataPointer interface{}) TraceableErrorInterface + func (storage *DataStorage) Update(dataToStoreDto DataToStoreDto) TraceableErrorInterface + type DataToStoreDto struct + Data interface{} + DataKey string + ExpiresAt time.Time + type DataToStoreDtoFactory struct + func (factory *DataToStoreDtoFactory) Create(dataKey string, data interface{}, expiresAt time.Time) DataToStoreDto + func (factory *DataToStoreDtoFactory) CreateWithExistenceDuration(dataKey string, data interface{}, existenceDuration time.Duration) DataToStoreDto + type DataToStoreDtoFactoryInterface interface + Create func(dataKey string, data interface{}, expiresAt time.Time) DataToStoreDto + CreateWithExistenceDuration func(dataKey string, data interface{}, existenceDuration time.Duration) DataToStoreDto + type TraceableErrorInterface interface + Error func() string + Previous func() error