Documentation ¶
Index ¶
- type AccountRepository
- func (a *AccountRepository) Create(ctx context.Context, account *account.Account, user *user.User) error
- func (a *AccountRepository) Delete(ctx context.Context, accountID uuid.UUID) error
- func (a *AccountRepository) Find(ctx context.Context, username string) (account.Account, error)
- func (a *AccountRepository) List(ctx context.Context) ([]account.Account, error)
- func (a *AccountRepository) Update(ctx context.Context, account *account.Account) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountRepository ¶
type AccountRepository struct {
// contains filtered or unexported fields
}
AccountRepository represents the client to its persistent repository
func NewAccountRepository ¶
func NewAccountRepository(db *gorm.DB) *AccountRepository
NewAccountRepository instantiates an instance for data persistence
func (*AccountRepository) Create ¶
func (a *AccountRepository) Create(ctx context.Context, account *account.Account, user *user.User) error
Create creates an account with an associated and newly created user
Click to show internal directories.
Click to hide internal directories.