Help us shape the future of Go! Take the 2026 Go Developer Survey

mocks

package
v0.9.82 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockcacheAccessor

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

MockcacheAccessor is a mock of cacheAccessor interface.

func NewMockcacheAccessor

func NewMockcacheAccessor(ctrl *gomock.Controller) *MockcacheAccessor

NewMockcacheAccessor creates a new mock instance.

func (*MockcacheAccessor) EXPECT

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

func (*MockcacheAccessor) Get

func (m *MockcacheAccessor) Get(ctx context.Context, key string) (string, bool, error)

Get mocks base method.

func (*MockcacheAccessor) Invalidate

func (m *MockcacheAccessor) Invalidate(ctx context.Context, key string) error

Invalidate mocks base method.

func (*MockcacheAccessor) Set

func (m *MockcacheAccessor) Set(ctx context.Context, key, value string, ttl time.Duration) error

Set mocks base method.

type MockcacheAccessorMockRecorder

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

MockcacheAccessorMockRecorder is the mock recorder for MockcacheAccessor.

func (*MockcacheAccessorMockRecorder) Get

func (mr *MockcacheAccessorMockRecorder) Get(ctx, key any) *gomock.Call

Get indicates an expected call of Get.

func (*MockcacheAccessorMockRecorder) Invalidate

func (mr *MockcacheAccessorMockRecorder) Invalidate(ctx, key any) *gomock.Call

Invalidate indicates an expected call of Invalidate.

func (*MockcacheAccessorMockRecorder) Set

func (mr *MockcacheAccessorMockRecorder) Set(ctx, key, value, ttl any) *gomock.Call

Set indicates an expected call of Set.

Jump to

Keyboard shortcuts

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