Documentation ¶
Index ¶
- type AccountRepository
- type AccountRepositoryMongo
- func (repo *AccountRepositoryMongo) Create(account *model.Account) (*model.Account, error)
- func (repo *AccountRepositoryMongo) DeleteByDomainId(domainId string) error
- func (repo *AccountRepositoryMongo) FetchAllActiveAccounts() ([]model.Account, error)
- func (repo *AccountRepositoryMongo) FetchByDomainId(domainId string) (*model.Account, error)
- func (repo *AccountRepositoryMongo) Update(account *model.Account) (*model.Account, error)
- type ErrAccountNotFound
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountRepository ¶
type AccountRepositoryMongo ¶
func NewAccountRepositoryMongo ¶
func NewAccountRepositoryMongo(db *mongo.Database) *AccountRepositoryMongo
func (*AccountRepositoryMongo) DeleteByDomainId ¶
func (repo *AccountRepositoryMongo) DeleteByDomainId(domainId string) error
func (*AccountRepositoryMongo) FetchAllActiveAccounts ¶
func (repo *AccountRepositoryMongo) FetchAllActiveAccounts() ([]model.Account, error)
func (*AccountRepositoryMongo) FetchByDomainId ¶
func (repo *AccountRepositoryMongo) FetchByDomainId(domainId string) (*model.Account, error)
type ErrAccountNotFound ¶
type ErrAccountNotFound struct {
DomainId string
}
func (ErrAccountNotFound) Error ¶
func (err ErrAccountNotFound) Error() string
Click to show internal directories.
Click to hide internal directories.