accountInfra

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: EPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountCmdRepo added in v0.1.2

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

func NewAccountCmdRepo added in v0.1.2

func NewAccountCmdRepo(
	persistentDbSvc *internalDbInfra.PersistentDatabaseService,
) *AccountCmdRepo

func (*AccountCmdRepo) Create added in v0.1.2

func (repo *AccountCmdRepo) Create(
	createDto dto.CreateAccount,
) (accountId valueObject.AccountId, err error)

func (*AccountCmdRepo) Delete added in v0.1.2

func (repo *AccountCmdRepo) Delete(accountId valueObject.AccountId) error

func (*AccountCmdRepo) UpdateApiKey added in v0.1.2

func (repo *AccountCmdRepo) UpdateApiKey(
	accountId valueObject.AccountId,
) (tokenValue valueObject.AccessTokenStr, err error)

func (*AccountCmdRepo) UpdatePassword added in v0.1.2

func (repo *AccountCmdRepo) UpdatePassword(
	accountId valueObject.AccountId, password valueObject.Password,
) error

type AccountQueryRepo added in v0.1.2

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

func NewAccountQueryRepo added in v0.1.2

func NewAccountQueryRepo(
	persistentDbSvc *internalDbInfra.PersistentDatabaseService,
) *AccountQueryRepo

func (*AccountQueryRepo) Read added in v0.1.2

func (repo *AccountQueryRepo) Read() ([]entity.Account, error)

func (*AccountQueryRepo) ReadById added in v0.1.2

func (repo *AccountQueryRepo) ReadById(
	accountId valueObject.AccountId,
) (accountEntity entity.Account, err error)

func (*AccountQueryRepo) ReadByUsername added in v0.1.2

func (repo *AccountQueryRepo) ReadByUsername(
	accountUsername valueObject.Username,
) (accountEntity entity.Account, err error)

Jump to

Keyboard shortcuts

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