Documentation ¶
Index ¶
- type Cfg
- type Usecase
- func (_m *Usecase) GetAllDataUsecase(ctx context.Context) (entity.MetricsType, error)
- func (_m *Usecase) GetCounterUsecase(ctx context.Context, counterName string) (int64, error)
- func (_m *Usecase) GetGaugeUsecase(ctx context.Context, gaugeName string) (float64, error)
- func (_m *Usecase) Ping(ctx context.Context) error
- func (_m *Usecase) SaveAllDataBatchUsecase(ctx context.Context, metrics []entity.Metrics) error
- func (_m *Usecase) SaveAllDataUsecase(ctx context.Context, metrics []entity.Metrics) error
- func (_m *Usecase) SaveCounterUsecase(ctx context.Context, counterName string, counterValue int64) error
- func (_m *Usecase) SaveGaugeUsecase(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) UseCryptoKey ¶
UseCryptoKey provides a mock function with given fields:
type Usecase ¶
Usecase is an autogenerated mock type for the usecase type
func NewUsecase ¶
NewUsecase creates a new instance of Usecase. 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 (*Usecase) GetAllDataUsecase ¶
GetAllDataUsecase provides a mock function with given fields: ctx
func (*Usecase) GetCounterUsecase ¶
GetCounterUsecase provides a mock function with given fields: ctx, counterName
func (*Usecase) GetGaugeUsecase ¶
GetGaugeUsecase provides a mock function with given fields: ctx, gaugeName
func (*Usecase) SaveAllDataBatchUsecase ¶
SaveAllDataBatchUsecase provides a mock function with given fields: ctx, metrics
func (*Usecase) SaveAllDataUsecase ¶
SaveAllDataUsecase provides a mock function with given fields: ctx, metrics