redis

package
v0.0.0-...-dcc7ea8 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package redis is a generated GoMock package.

Index

Constants

View Source
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

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

func (*MockSnowflakeRepository) GetUniqId

func (m *MockSnowflakeRepository) GetUniqId(ctx context.Context) (int64, error)

GetUniqId mocks base method.

type MockSnowflakeRepositoryGetUniqIdCall

type MockSnowflakeRepositoryGetUniqIdCall struct {
	*gomock.Call
}

MockSnowflakeRepositoryGetUniqIdCall wrap *gomock.Call

func (*MockSnowflakeRepositoryGetUniqIdCall) Do

Do rewrite *gomock.Call.Do

func (*MockSnowflakeRepositoryGetUniqIdCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockSnowflakeRepositoryGetUniqIdCall) Return

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

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.

Jump to

Keyboard shortcuts

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