Documentation ¶
Index ¶
- type AccountRepository
- type AccountRepositoryMongo
- func (repo *AccountRepositoryMongo) Create(account *model.Account) (*model.Account, error)
- func (repo *AccountRepositoryMongo) DeleteByAccountId(accountId string) error
- func (repo *AccountRepositoryMongo) DeleteByDomainIdEnvironment(domainId string, environment string) error
- func (repo *AccountRepositoryMongo) FetchAllAccounts() []model.Account
- func (repo *AccountRepositoryMongo) FetchAllByDomainId(domainId string) []model.Account
- func (repo *AccountRepositoryMongo) FetchByAccountId(accountId string) (*model.Account, error)
- func (repo *AccountRepositoryMongo) FetchByDomainIdEnvironment(domainId string, environment string) (*model.Account, error)
- func (repo *AccountRepositoryMongo) Update(account *model.Account) (*model.Account, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountRepository ¶
type AccountRepository interface { Create(account *model.Account) (*model.Account, error) FetchByAccountId(accountId string) (*model.Account, error) FetchByDomainIdEnvironment(domainId string, environment string) (*model.Account, error) FetchAllByDomainId(domainId string) []model.Account FetchAllAccounts() []model.Account Update(account *model.Account) (*model.Account, error) DeleteByAccountId(accountId string) error DeleteByDomainIdEnvironment(domainId string, environment string) error }
type AccountRepositoryMongo ¶
func NewAccountRepositoryMongo ¶
func NewAccountRepositoryMongo(db *mongo.Database) *AccountRepositoryMongo
func (*AccountRepositoryMongo) DeleteByAccountId ¶
func (repo *AccountRepositoryMongo) DeleteByAccountId(accountId string) error
func (*AccountRepositoryMongo) DeleteByDomainIdEnvironment ¶
func (repo *AccountRepositoryMongo) DeleteByDomainIdEnvironment(domainId string, environment string) error
func (*AccountRepositoryMongo) FetchAllAccounts ¶
func (repo *AccountRepositoryMongo) FetchAllAccounts() []model.Account
func (*AccountRepositoryMongo) FetchAllByDomainId ¶
func (repo *AccountRepositoryMongo) FetchAllByDomainId(domainId string) []model.Account
func (*AccountRepositoryMongo) FetchByAccountId ¶
func (repo *AccountRepositoryMongo) FetchByAccountId(accountId string) (*model.Account, error)
func (*AccountRepositoryMongo) FetchByDomainIdEnvironment ¶
Click to show internal directories.
Click to hide internal directories.