mocks

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2023 License: MIT Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package mocks is a generated GoMock package.

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 MockService added in v0.1.1

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

MockService is a mock of Service interface.

func NewMockService added in v0.1.1

func NewMockService(ctrl *gomock.Controller) *MockService

NewMockService creates a new mock instance.

func (*MockService) AddAttributes added in v0.1.2

func (m *MockService) AddAttributes(ctx context.Context, sid string, keyAndValues ...interface{}) (*session.Session, error)

AddAttributes mocks base method.

func (*MockService) CreateAnonymSession added in v0.1.1

func (m *MockService) CreateAnonymSession(ctx context.Context, cc session.CookieConf, sc session.Conf, keyAndValues ...interface{}) (*session.Session, error)

CreateAnonymSession mocks base method.

func (*MockService) CreateUserSession added in v0.1.1

func (m *MockService) CreateUserSession(ctx context.Context, uid string, cc session.CookieConf, sc session.Conf, keyAndValues ...interface{}) (*session.Session, error)

CreateUserSession mocks base method.

func (*MockService) EXPECT added in v0.1.1

func (m *MockService) EXPECT() *MockServiceMockRecorder

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

func (*MockService) InvalidateSession added in v0.1.1

func (m *MockService) InvalidateSession(ctx context.Context, sid string) error

InvalidateSession mocks base method.

func (*MockService) LoadSession added in v0.1.1

func (m *MockService) LoadSession(ctx context.Context, sid string) (*session.Session, error)

LoadSession mocks base method.

func (*MockService) RemoveAttributes added in v0.1.2

func (m *MockService) RemoveAttributes(ctx context.Context, sid string, keys ...string) (*session.Session, error)

RemoveAttributes mocks base method.

type MockServiceMockRecorder added in v0.1.1

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

MockServiceMockRecorder is the mock recorder for MockService.

func (*MockServiceMockRecorder) AddAttributes added in v0.1.2

func (mr *MockServiceMockRecorder) AddAttributes(ctx, sid interface{}, keyAndValues ...interface{}) *gomock.Call

AddAttributes indicates an expected call of AddAttributes.

func (*MockServiceMockRecorder) CreateAnonymSession added in v0.1.1

func (mr *MockServiceMockRecorder) CreateAnonymSession(ctx, cc, sc interface{}, keyAndValues ...interface{}) *gomock.Call

CreateAnonymSession indicates an expected call of CreateAnonymSession.

func (*MockServiceMockRecorder) CreateUserSession added in v0.1.1

func (mr *MockServiceMockRecorder) CreateUserSession(ctx, uid, cc, sc interface{}, keyAndValues ...interface{}) *gomock.Call

CreateUserSession indicates an expected call of CreateUserSession.

func (*MockServiceMockRecorder) InvalidateSession added in v0.1.1

func (mr *MockServiceMockRecorder) InvalidateSession(ctx, sid interface{}) *gomock.Call

InvalidateSession indicates an expected call of InvalidateSession.

func (*MockServiceMockRecorder) LoadSession added in v0.1.1

func (mr *MockServiceMockRecorder) LoadSession(ctx, sid interface{}) *gomock.Call

LoadSession indicates an expected call of LoadSession.

func (*MockServiceMockRecorder) RemoveAttributes added in v0.1.2

func (mr *MockServiceMockRecorder) RemoveAttributes(ctx, sid interface{}, keys ...interface{}) *gomock.Call

RemoveAttributes indicates an expected call of RemoveAttributes.

type MockStore added in v0.1.1

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

MockStore is a mock of Store interface.

func NewMockStore added in v0.1.1

func NewMockStore(ctrl *gomock.Controller) *MockStore

NewMockStore creates a new mock instance.

func (*MockStore) AddAttributes added in v0.1.2

func (m *MockStore) AddAttributes(ctx context.Context, sid string, data map[string]interface{}) (*session.Session, error)

AddAttributes mocks base method.

func (*MockStore) EXPECT added in v0.1.1

func (m *MockStore) EXPECT() *MockStoreMockRecorder

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

func (*MockStore) Invalidate added in v0.1.1

func (m *MockStore) Invalidate(ctx context.Context, sid string) error

Invalidate mocks base method.

func (*MockStore) Load added in v0.1.1

func (m *MockStore) Load(ctx context.Context, sid string) (*session.Session, error)

Load mocks base method.

func (*MockStore) RemoveAttributes added in v0.1.2

func (m *MockStore) RemoveAttributes(ctx context.Context, sid string, keys ...string) (*session.Session, error)

RemoveAttributes mocks base method.

func (*MockStore) Save added in v0.1.1

Save mocks base method.

type MockStoreMockRecorder added in v0.1.1

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

MockStoreMockRecorder is the mock recorder for MockStore.

func (*MockStoreMockRecorder) AddAttributes added in v0.1.2

func (mr *MockStoreMockRecorder) AddAttributes(ctx, sid, data interface{}) *gomock.Call

AddAttributes indicates an expected call of AddAttributes.

func (*MockStoreMockRecorder) Invalidate added in v0.1.1

func (mr *MockStoreMockRecorder) Invalidate(ctx, sid interface{}) *gomock.Call

Invalidate indicates an expected call of Invalidate.

func (*MockStoreMockRecorder) Load added in v0.1.1

func (mr *MockStoreMockRecorder) Load(ctx, sid interface{}) *gomock.Call

Load indicates an expected call of Load.

func (*MockStoreMockRecorder) RemoveAttributes added in v0.1.2

func (mr *MockStoreMockRecorder) RemoveAttributes(ctx, sid interface{}, keys ...interface{}) *gomock.Call

RemoveAttributes indicates an expected call of RemoveAttributes.

func (*MockStoreMockRecorder) Save added in v0.1.1

func (mr *MockStoreMockRecorder) Save(ctx, s interface{}) *gomock.Call

Save indicates an expected call of Save.

Jump to

Keyboard shortcuts

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