Documentation ¶
Index ¶
- type Storage
- func (_m *Storage) EndAllSessions(ctx context.Context, userId string) error
- func (_m *Storage) EndSession(ctx context.Context, userId string, sessionId int64) error
- func (_m *Storage) StartNewSession(ctx context.Context, userId string, ip string, agent string) (int64, string, error)
- func (_m *Storage) UserSessionsV1(ctx context.Context, userId string) (*models.UserSessionsV1, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
Storage is an autogenerated mock type for the Storage type
func NewStorage ¶
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 ¶
EndAllSessions provides a mock function with given fields: ctx, userId
func (*Storage) EndSession ¶
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
Click to show internal directories.
Click to hide internal directories.