repository

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 9, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package repository is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IFCounterRepository

type IFCounterRepository interface {
	BeginTx(ctx context.Context) error
	CommitTx() error
	TxRead(key string) (*domain.Counter, error)
	TxWrite(key string, value *domain.Counter) (interface{}, error)
}

type MockIFCounterRepository

type MockIFCounterRepository struct {
	// contains filtered or unexported fields
}

MockIFCounterRepository is a mock of IFCounterRepository interface.

func NewMockIFCounterRepository

func NewMockIFCounterRepository(ctrl *gomock.Controller) *MockIFCounterRepository

NewMockIFCounterRepository creates a new mock instance.

func (*MockIFCounterRepository) BeginTx

func (m *MockIFCounterRepository) BeginTx(ctx context.Context) error

BeginTx mocks base method.

func (*MockIFCounterRepository) CommitTx

func (m *MockIFCounterRepository) CommitTx() error

CommitTx mocks base method.

func (*MockIFCounterRepository) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockIFCounterRepository) TxRead

func (m *MockIFCounterRepository) TxRead(key string) (*domain.Counter, error)

TxRead mocks base method.

func (*MockIFCounterRepository) TxWrite

func (m *MockIFCounterRepository) TxWrite(key string, value *domain.Counter) (interface{}, error)

TxWrite mocks base method.

type MockIFCounterRepositoryMockRecorder

type MockIFCounterRepositoryMockRecorder struct {
	// contains filtered or unexported fields
}

MockIFCounterRepositoryMockRecorder is the mock recorder for MockIFCounterRepository.

func (*MockIFCounterRepositoryMockRecorder) BeginTx

func (mr *MockIFCounterRepositoryMockRecorder) BeginTx(ctx interface{}) *gomock.Call

BeginTx indicates an expected call of BeginTx.

func (*MockIFCounterRepositoryMockRecorder) CommitTx

CommitTx indicates an expected call of CommitTx.

func (*MockIFCounterRepositoryMockRecorder) TxRead

func (mr *MockIFCounterRepositoryMockRecorder) TxRead(key interface{}) *gomock.Call

TxRead indicates an expected call of TxRead.

func (*MockIFCounterRepositoryMockRecorder) TxWrite

func (mr *MockIFCounterRepositoryMockRecorder) TxWrite(key, value interface{}) *gomock.Call

TxWrite indicates an expected call of TxWrite.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL