mocks

package
v0.0.0-...-b4b79d4 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

type Storage struct {
	mock.Mock
}

Storage is an autogenerated mock type for the Storage type

func NewStorage

func NewStorage(t interface {
	mock.TestingT
	Cleanup(func())
}) *Storage

NewStorage creates a new instance of Storage. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Storage) EndAllSessions

func (_m *Storage) EndAllSessions(ctx context.Context, userId string) error

EndAllSessions provides a mock function with given fields: ctx, userId

func (*Storage) EndSession

func (_m *Storage) EndSession(ctx context.Context, userId string, sessionId int64) error

EndSession provides a mock function with given fields: ctx, userId, sessionId

func (*Storage) StartNewSession

func (_m *Storage) StartNewSession(ctx context.Context, userId string, ip string, agent string) (int64, string, error)

StartNewSession provides a mock function with given fields: ctx, userId, ip, agent

func (*Storage) UserSessionsV1

func (_m *Storage) UserSessionsV1(ctx context.Context, userId string) (*models.UserSessionsV1, error)

UserSessionsV1 provides a mock function with given fields: ctx, userId

Jump to

Keyboard shortcuts

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