Documentation ¶
Index ¶
- type Cfg
- type Storage
- func (_m *Storage) GetAllData(ctx context.Context) (entity.MetricsType, error)
- func (_m *Storage) GetCounter(ctx context.Context, counterName string) (int64, error)
- func (_m *Storage) GetGauge(ctx context.Context, gaugeName string) (float64, error)
- func (_m *Storage) Ping(ctx context.Context) error
- func (_m *Storage) SaveAllData(ctx context.Context, metrics []entity.Metrics) error
- func (_m *Storage) SaveCounter(ctx context.Context, counterName string, counterValue int64) error
- func (_m *Storage) SaveGauge(ctx context.Context, gaugeName string, gaugeValue float64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cfg ¶
Cfg is an autogenerated mock type for the cfg type
func NewCfg ¶
NewCfg creates a new instance of Cfg. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Cfg) GetServerAddress ¶
GetServerAddress provides a mock function with given fields:
func (*Cfg) GetStoreInterval ¶
GetStoreInterval provides a mock function with given fields:
type Storage ¶
Storage is an autogenerated mock type for the storage type
func NewStorage ¶
NewStorage creates a new instance of Storage. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Storage) GetAllData ¶
GetAllData provides a mock function with given fields: ctx
func (*Storage) GetCounter ¶
GetCounter provides a mock function with given fields: ctx, counterName
func (*Storage) SaveAllData ¶
SaveAllData provides a mock function with given fields: ctx, metrics
func (*Storage) SaveCounter ¶
SaveCounter provides a mock function with given fields: ctx, counterName, counterValue