userAccount

package
v0.0.0-...-4834045 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package userAccount ユーザーアカウント

Package userAccount ユーザーアカウント

Package userAccount is a generated GoMock package.

Package userAccount ユーザーアカウント

Package userAccount is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockUserAccountMysqlRepository

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

MockUserAccountMysqlRepository is a mock of UserAccountMysqlRepository interface.

func NewMockUserAccountMysqlRepository

func NewMockUserAccountMysqlRepository(ctrl *gomock.Controller) *MockUserAccountMysqlRepository

NewMockUserAccountMysqlRepository creates a new mock instance.

func (*MockUserAccountMysqlRepository) Create

Create mocks base method.

func (*MockUserAccountMysqlRepository) CreateList

CreateList mocks base method.

func (*MockUserAccountMysqlRepository) Delete

Delete mocks base method.

func (*MockUserAccountMysqlRepository) DeleteList

DeleteList mocks base method.

func (*MockUserAccountMysqlRepository) EXPECT

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

func (*MockUserAccountMysqlRepository) Find

Find mocks base method.

func (*MockUserAccountMysqlRepository) FindList

FindList mocks base method.

func (*MockUserAccountMysqlRepository) FindOrNil

func (m *MockUserAccountMysqlRepository) FindOrNil(ctx context.Context, userId string) (*UserAccount, error)

FindOrNil mocks base method.

func (*MockUserAccountMysqlRepository) Update

Update mocks base method.

func (*MockUserAccountMysqlRepository) UpdateList

UpdateList mocks base method.

type MockUserAccountMysqlRepositoryMockRecorder

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

MockUserAccountMysqlRepositoryMockRecorder is the mock recorder for MockUserAccountMysqlRepository.

func (*MockUserAccountMysqlRepositoryMockRecorder) Create

func (mr *MockUserAccountMysqlRepositoryMockRecorder) Create(ctx, tx, m interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockUserAccountMysqlRepositoryMockRecorder) CreateList

func (mr *MockUserAccountMysqlRepositoryMockRecorder) CreateList(ctx, tx, ms interface{}) *gomock.Call

CreateList indicates an expected call of CreateList.

func (*MockUserAccountMysqlRepositoryMockRecorder) Delete

func (mr *MockUserAccountMysqlRepositoryMockRecorder) Delete(ctx, tx, m interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockUserAccountMysqlRepositoryMockRecorder) DeleteList

func (mr *MockUserAccountMysqlRepositoryMockRecorder) DeleteList(ctx, tx, ms interface{}) *gomock.Call

DeleteList indicates an expected call of DeleteList.

func (*MockUserAccountMysqlRepositoryMockRecorder) Find

func (mr *MockUserAccountMysqlRepositoryMockRecorder) Find(ctx, userId interface{}) *gomock.Call

Find indicates an expected call of Find.

func (*MockUserAccountMysqlRepositoryMockRecorder) FindList

func (mr *MockUserAccountMysqlRepositoryMockRecorder) FindList(ctx, userId interface{}) *gomock.Call

FindList indicates an expected call of FindList.

func (*MockUserAccountMysqlRepositoryMockRecorder) FindOrNil

func (mr *MockUserAccountMysqlRepositoryMockRecorder) FindOrNil(ctx, userId interface{}) *gomock.Call

FindOrNil indicates an expected call of FindOrNil.

func (*MockUserAccountMysqlRepositoryMockRecorder) Update

func (mr *MockUserAccountMysqlRepositoryMockRecorder) Update(ctx, tx, m interface{}) *gomock.Call

Update indicates an expected call of Update.

func (*MockUserAccountMysqlRepositoryMockRecorder) UpdateList

func (mr *MockUserAccountMysqlRepositoryMockRecorder) UpdateList(ctx, tx, ms interface{}) *gomock.Call

UpdateList indicates an expected call of UpdateList.

type MockUserAccountRedisRepository

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

MockUserAccountRedisRepository is a mock of UserAccountRedisRepository interface.

func NewMockUserAccountRedisRepository

func NewMockUserAccountRedisRepository(ctrl *gomock.Controller) *MockUserAccountRedisRepository

NewMockUserAccountRedisRepository creates a new mock instance.

func (*MockUserAccountRedisRepository) Delete

Delete mocks base method.

func (*MockUserAccountRedisRepository) EXPECT

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

func (*MockUserAccountRedisRepository) Find

Find mocks base method.

func (*MockUserAccountRedisRepository) FindOrNil

func (m *MockUserAccountRedisRepository) FindOrNil(ctx context.Context, userId string) (*UserAccount, error)

FindOrNil mocks base method.

func (*MockUserAccountRedisRepository) Set

Set mocks base method.

type MockUserAccountRedisRepositoryMockRecorder

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

MockUserAccountRedisRepositoryMockRecorder is the mock recorder for MockUserAccountRedisRepository.

func (*MockUserAccountRedisRepositoryMockRecorder) Delete

func (mr *MockUserAccountRedisRepositoryMockRecorder) Delete(ctx, tx, m interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockUserAccountRedisRepositoryMockRecorder) Find

func (mr *MockUserAccountRedisRepositoryMockRecorder) Find(ctx, userId interface{}) *gomock.Call

Find indicates an expected call of Find.

func (*MockUserAccountRedisRepositoryMockRecorder) FindOrNil

func (mr *MockUserAccountRedisRepositoryMockRecorder) FindOrNil(ctx, userId interface{}) *gomock.Call

FindOrNil indicates an expected call of FindOrNil.

func (*MockUserAccountRedisRepositoryMockRecorder) Set

func (mr *MockUserAccountRedisRepositoryMockRecorder) Set(ctx, tx, m interface{}) *gomock.Call

Set indicates an expected call of Set.

type UserAccount

type UserAccount struct {
	UserId   string
	Name     string
	Password string
	LoginAt  time.Time
	LogoutAt time.Time
}

func NewUserAccount

func NewUserAccount() *UserAccount

func SetUserAccount

func SetUserAccount(userId string, name string, password string, loginAt time.Time, logoutAt time.Time) *UserAccount

type UserAccountMysqlRepository

type UserAccountMysqlRepository interface {
	Find(ctx context.Context, userId string) (*UserAccount, error)
	FindOrNil(ctx context.Context, userId string) (*UserAccount, error)
	FindList(ctx context.Context, userId string) (UserAccounts, error)
	Create(ctx context.Context, tx *gorm.DB, m *UserAccount) (*UserAccount, error)
	CreateList(ctx context.Context, tx *gorm.DB, ms UserAccounts) (UserAccounts, error)
	Update(ctx context.Context, tx *gorm.DB, m *UserAccount) (*UserAccount, error)
	UpdateList(ctx context.Context, tx *gorm.DB, ms UserAccounts) (UserAccounts, error)
	Delete(ctx context.Context, tx *gorm.DB, m *UserAccount) error
	DeleteList(ctx context.Context, tx *gorm.DB, ms UserAccounts) error
}

type UserAccountRedisRepository

type UserAccountRedisRepository interface {
	Find(ctx context.Context, userId string) (*UserAccount, error)
	FindOrNil(ctx context.Context, userId string) (*UserAccount, error)
	Set(ctx context.Context, tx redis.Pipeliner, m *UserAccount) (*UserAccount, error)
	Delete(ctx context.Context, tx redis.Pipeliner, m *UserAccount) error
}

type UserAccounts

type UserAccounts []*UserAccount

func NewUserAccounts

func NewUserAccounts() UserAccounts

Jump to

Keyboard shortcuts

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