mock

package
v0.0.0-...-3c0f6d4 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAuthRedis

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

MockAuthRedis is a mock of AuthRedis interface.

func NewMockAuthRedis

func NewMockAuthRedis(ctrl *gomock.Controller) *MockAuthRedis

NewMockAuthRedis creates a new mock instance.

func (*MockAuthRedis) DeleteUserCtx

func (m *MockAuthRedis) DeleteUserCtx(ctx context.Context, key string) error

DeleteUserCtx mocks base method.

func (*MockAuthRedis) EXPECT

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

func (*MockAuthRedis) GetByIDCtx

func (m *MockAuthRedis) GetByIDCtx(ctx context.Context, key string) (*entity.User, error)

GetByIDCtx mocks base method.

func (*MockAuthRedis) SetUserCtx

func (m *MockAuthRedis) SetUserCtx(ctx context.Context, key string, seconds int, user *entity.User) error

SetUserCtx mocks base method.

type MockAuthRedisMockRecorder

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

MockAuthRedisMockRecorder is the mock recorder for MockAuthRedis.

func (*MockAuthRedisMockRecorder) DeleteUserCtx

func (mr *MockAuthRedisMockRecorder) DeleteUserCtx(ctx, key interface{}) *gomock.Call

DeleteUserCtx indicates an expected call of DeleteUserCtx.

func (*MockAuthRedisMockRecorder) GetByIDCtx

func (mr *MockAuthRedisMockRecorder) GetByIDCtx(ctx, key interface{}) *gomock.Call

GetByIDCtx indicates an expected call of GetByIDCtx.

func (*MockAuthRedisMockRecorder) SetUserCtx

func (mr *MockAuthRedisMockRecorder) SetUserCtx(ctx, key, seconds, user interface{}) *gomock.Call

SetUserCtx indicates an expected call of SetUserCtx.

type MockNewsRedis

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

MockNewsRedis is a mock of NewsRedis interface.

func NewMockNewsRedis

func NewMockNewsRedis(ctrl *gomock.Controller) *MockNewsRedis

NewMockNewsRedis creates a new mock instance.

func (*MockNewsRedis) DeleteNewsCtx

func (m *MockNewsRedis) DeleteNewsCtx(ctx context.Context, key string) error

DeleteNewsCtx mocks base method.

func (*MockNewsRedis) EXPECT

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

func (*MockNewsRedis) GetNewsByIDCtx

func (m *MockNewsRedis) GetNewsByIDCtx(ctx context.Context, key string) (*entity.NewsBase, error)

GetNewsByIDCtx mocks base method.

func (*MockNewsRedis) SetNewsCtx

func (m *MockNewsRedis) SetNewsCtx(ctx context.Context, key string, seconds int, news *entity.NewsBase) error

SetNewsCtx mocks base method.

type MockNewsRedisMockRecorder

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

MockNewsRedisMockRecorder is the mock recorder for MockNewsRedis.

func (*MockNewsRedisMockRecorder) DeleteNewsCtx

func (mr *MockNewsRedisMockRecorder) DeleteNewsCtx(ctx, key interface{}) *gomock.Call

DeleteNewsCtx indicates an expected call of DeleteNewsCtx.

func (*MockNewsRedisMockRecorder) GetNewsByIDCtx

func (mr *MockNewsRedisMockRecorder) GetNewsByIDCtx(ctx, key interface{}) *gomock.Call

GetNewsByIDCtx indicates an expected call of GetNewsByIDCtx.

func (*MockNewsRedisMockRecorder) SetNewsCtx

func (mr *MockNewsRedisMockRecorder) SetNewsCtx(ctx, key, seconds, news interface{}) *gomock.Call

SetNewsCtx indicates an expected call of SetNewsCtx.

type MockSessionredis

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

MockSessionredis is a mock of Sessionredis interface.

func NewMockSessionredis

func NewMockSessionredis(ctrl *gomock.Controller) *MockSessionredis

NewMockSessionredis creates a new mock instance.

func (*MockSessionredis) CreateSession

func (m *MockSessionredis) CreateSession(ctx context.Context, session *entity.Session, expire int) (string, error)

CreateSession mocks base method.

func (*MockSessionredis) DeleteSessionByID

func (m *MockSessionredis) DeleteSessionByID(ctx context.Context, sessionID string) error

DeleteSessionByID mocks base method.

func (*MockSessionredis) EXPECT

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

func (*MockSessionredis) GetSessionByID

func (m *MockSessionredis) GetSessionByID(ctx context.Context, sessionID string) (*entity.Session, error)

GetSessionByID mocks base method.

type MockSessionredisMockRecorder

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

MockSessionredisMockRecorder is the mock recorder for MockSessionredis.

func (*MockSessionredisMockRecorder) CreateSession

func (mr *MockSessionredisMockRecorder) CreateSession(ctx, session, expire interface{}) *gomock.Call

CreateSession indicates an expected call of CreateSession.

func (*MockSessionredisMockRecorder) DeleteSessionByID

func (mr *MockSessionredisMockRecorder) DeleteSessionByID(ctx, sessionID interface{}) *gomock.Call

DeleteSessionByID indicates an expected call of DeleteSessionByID.

func (*MockSessionredisMockRecorder) GetSessionByID

func (mr *MockSessionredisMockRecorder) GetSessionByID(ctx, sessionID interface{}) *gomock.Call

GetSessionByID indicates an expected call of GetSessionByID.

Jump to

Keyboard shortcuts

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