mocks

package
v0.0.0-...-effe065 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DriverMock

type DriverMock struct {
	CloseMock func() error
	GetMock   func(ctx context.Context, key string) (string, error)
	SetMock   func(ctx context.Context, key string, val string) error
	DelMock   func(ctx context.Context, key string) error
}

func NewDriverMock

func NewDriverMock() *DriverMock

func (*DriverMock) Close

func (d *DriverMock) Close() error

func (*DriverMock) Del

func (d *DriverMock) Del(ctx context.Context, key string) error

func (*DriverMock) Get

func (d *DriverMock) Get(ctx context.Context, key string) (string, error)

func (*DriverMock) Set

func (d *DriverMock) Set(ctx context.Context, key string, val string) error

Jump to

Keyboard shortcuts

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