Documentation ¶
Overview ¶
Package redis is a generated GoMock package.
Index ¶
- Constants
- type MockSnowflakeRepository
- type MockSnowflakeRepositoryGetUniqIdCall
- func (c *MockSnowflakeRepositoryGetUniqIdCall) Do(f func(context.Context) (int64, error)) *MockSnowflakeRepositoryGetUniqIdCall
- func (c *MockSnowflakeRepositoryGetUniqIdCall) DoAndReturn(f func(context.Context) (int64, error)) *MockSnowflakeRepositoryGetUniqIdCall
- func (c *MockSnowflakeRepositoryGetUniqIdCall) Return(arg0 int64, arg1 error) *MockSnowflakeRepositoryGetUniqIdCall
- type MockSnowflakeRepositoryMockRecorder
- type SnowflakeRepository
Constants ¶
const (
// SnowflakeRepository_GetUniqId_FullMethodName is the full name of the method [snowflake.GetUniqId].
SnowflakeRepository_GetUniqId_FullMethodName = "github.com/go-kod/kod-mono/internal/infra/redis/SnowflakeRepository.GetUniqId"
)
Full method names for components.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockSnowflakeRepository ¶
type MockSnowflakeRepository struct {
// contains filtered or unexported fields
}
MockSnowflakeRepository is a mock of SnowflakeRepository interface.
func NewMockSnowflakeRepository ¶
func NewMockSnowflakeRepository(ctrl *gomock.Controller) *MockSnowflakeRepository
NewMockSnowflakeRepository creates a new mock instance.
func (*MockSnowflakeRepository) EXPECT ¶
func (m *MockSnowflakeRepository) EXPECT() *MockSnowflakeRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockSnowflakeRepositoryGetUniqIdCall ¶
MockSnowflakeRepositoryGetUniqIdCall wrap *gomock.Call
func (*MockSnowflakeRepositoryGetUniqIdCall) Do ¶
func (c *MockSnowflakeRepositoryGetUniqIdCall) Do(f func(context.Context) (int64, error)) *MockSnowflakeRepositoryGetUniqIdCall
Do rewrite *gomock.Call.Do
func (*MockSnowflakeRepositoryGetUniqIdCall) DoAndReturn ¶
func (c *MockSnowflakeRepositoryGetUniqIdCall) DoAndReturn(f func(context.Context) (int64, error)) *MockSnowflakeRepositoryGetUniqIdCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockSnowflakeRepositoryGetUniqIdCall) Return ¶
func (c *MockSnowflakeRepositoryGetUniqIdCall) Return(arg0 int64, arg1 error) *MockSnowflakeRepositoryGetUniqIdCall
Return rewrite *gomock.Call.Return
type MockSnowflakeRepositoryMockRecorder ¶
type MockSnowflakeRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockSnowflakeRepositoryMockRecorder is the mock recorder for MockSnowflakeRepository.
func (*MockSnowflakeRepositoryMockRecorder) GetUniqId ¶
func (mr *MockSnowflakeRepositoryMockRecorder) GetUniqId(ctx any) *MockSnowflakeRepositoryGetUniqIdCall
GetUniqId indicates an expected call of GetUniqId.
type SnowflakeRepository ¶
type SnowflakeRepository interface { // GetUniqId is implemented by [snowflake.GetUniqId] GetUniqId(ctx context.Context) (int64, error) }
SnowflakeRepository is implemented by [snowflake], which can be mocked with NewMockSnowflakeRepository.