Documentation ¶
Overview ¶
Code generated by MockGen. DO NOT EDIT. Source: models/member/lib.go
Generated by this command:
mockgen -source models/member/lib.go -destination tests/mocks/models/member/lib.go
Package mock_member is a generated GoMock package.
Index ¶
- type MockStorer
- func (m *MockStorer) Check(ctx context.Context, email, nickname string) (bool, error)
- func (m *MockStorer) CreateSession(ctx context.Context, member *member.Member) (string, error)
- func (m *MockStorer) Delete(ctx context.Context, member *member.Member) error
- func (m *MockStorer) EXPECT() *MockStorerMockRecorder
- func (m *MockStorer) GetID(ctx context.Context, key string) (uint32, error)
- func (m *MockStorer) GetPassHash(email, login string) (string, error)
- func (m *MockStorer) GetSessionTimeout(ctx context.Context, memberID int, deviceID v5.UUID) (int, error)
- func (m *MockStorer) LookupDevice(ctx context.Context, deviceID v5.UUID) error
- func (m *MockStorer) Read(ctx context.Context, key string, keyNames ...string) (*member.Member, error)
- func (m *MockStorer) RequestFollow(ctx context.Context, fr *member.FollowBlockRequest) error
- func (m *MockStorer) Save(ctx context.Context, member *member.Member) error
- func (m *MockStorer) Update(ctx context.Context, member *member.Member) error
- type MockStorerMockRecorder
- func (mr *MockStorerMockRecorder) Check(ctx, email, nickname any) *gomock.Call
- func (mr *MockStorerMockRecorder) CreateSession(ctx, member any) *gomock.Call
- func (mr *MockStorerMockRecorder) Delete(ctx, member any) *gomock.Call
- func (mr *MockStorerMockRecorder) GetID(ctx, key any) *gomock.Call
- func (mr *MockStorerMockRecorder) GetPassHash(email, login any) *gomock.Call
- func (mr *MockStorerMockRecorder) GetSessionTimeout(ctx, memberID, deviceID any) *gomock.Call
- func (mr *MockStorerMockRecorder) LookupDevice(ctx, deviceID any) *gomock.Call
- func (mr *MockStorerMockRecorder) Read(ctx, key any, keyNames ...any) *gomock.Call
- func (mr *MockStorerMockRecorder) RequestFollow(ctx, fr any) *gomock.Call
- func (mr *MockStorerMockRecorder) Save(ctx, member any) *gomock.Call
- func (mr *MockStorerMockRecorder) Update(ctx, member any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockStorer ¶ added in v0.9.0
type MockStorer struct {
// contains filtered or unexported fields
}
MockStorer is a mock of Storer interface.
func NewMockStorer ¶ added in v0.9.0
func NewMockStorer(ctrl *gomock.Controller) *MockStorer
NewMockStorer creates a new mock instance.
func (*MockStorer) CreateSession ¶ added in v0.9.0
CreateSession mocks base method.
func (*MockStorer) EXPECT ¶ added in v0.9.0
func (m *MockStorer) EXPECT() *MockStorerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockStorer) GetPassHash ¶ added in v0.9.0
func (m *MockStorer) GetPassHash(email, login string) (string, error)
GetPassHash mocks base method.
func (*MockStorer) GetSessionTimeout ¶ added in v0.9.0
func (m *MockStorer) GetSessionTimeout(ctx context.Context, memberID int, deviceID v5.UUID) (int, error)
GetSessionTimeout mocks base method.
func (*MockStorer) LookupDevice ¶ added in v0.9.0
LookupDevice mocks base method.
func (*MockStorer) Read ¶ added in v0.9.0
func (m *MockStorer) Read(ctx context.Context, key string, keyNames ...string) (*member.Member, error)
Read mocks base method.
func (*MockStorer) RequestFollow ¶ added in v0.9.0
func (m *MockStorer) RequestFollow(ctx context.Context, fr *member.FollowBlockRequest) error
RequestFollow mocks base method.
type MockStorerMockRecorder ¶ added in v0.9.0
type MockStorerMockRecorder struct {
// contains filtered or unexported fields
}
MockStorerMockRecorder is the mock recorder for MockStorer.
func (*MockStorerMockRecorder) Check ¶ added in v0.9.0
func (mr *MockStorerMockRecorder) Check(ctx, email, nickname any) *gomock.Call
Check indicates an expected call of Check.
func (*MockStorerMockRecorder) CreateSession ¶ added in v0.9.0
func (mr *MockStorerMockRecorder) CreateSession(ctx, member any) *gomock.Call
CreateSession indicates an expected call of CreateSession.
func (*MockStorerMockRecorder) Delete ¶ added in v0.9.0
func (mr *MockStorerMockRecorder) Delete(ctx, member any) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockStorerMockRecorder) GetID ¶ added in v0.9.0
func (mr *MockStorerMockRecorder) GetID(ctx, key any) *gomock.Call
GetID indicates an expected call of GetID.
func (*MockStorerMockRecorder) GetPassHash ¶ added in v0.9.0
func (mr *MockStorerMockRecorder) GetPassHash(email, login any) *gomock.Call
GetPassHash indicates an expected call of GetPassHash.
func (*MockStorerMockRecorder) GetSessionTimeout ¶ added in v0.9.0
func (mr *MockStorerMockRecorder) GetSessionTimeout(ctx, memberID, deviceID any) *gomock.Call
GetSessionTimeout indicates an expected call of GetSessionTimeout.
func (*MockStorerMockRecorder) LookupDevice ¶ added in v0.9.0
func (mr *MockStorerMockRecorder) LookupDevice(ctx, deviceID any) *gomock.Call
LookupDevice indicates an expected call of LookupDevice.
func (*MockStorerMockRecorder) Read ¶ added in v0.9.0
func (mr *MockStorerMockRecorder) Read(ctx, key any, keyNames ...any) *gomock.Call
Read indicates an expected call of Read.
func (*MockStorerMockRecorder) RequestFollow ¶ added in v0.9.0
func (mr *MockStorerMockRecorder) RequestFollow(ctx, fr any) *gomock.Call
RequestFollow indicates an expected call of RequestFollow.