Documentation ¶
Index ¶
- type AccountRepository
- type AccountRepositoryImplementation
- func (repository *AccountRepositoryImplementation) GetDataByIndex(indexName string, indexValue interface{}) *entity.Account
- func (repository *AccountRepositoryImplementation) PutData(account *entity.Account) string
- func (repository *AccountRepositoryImplementation) UpdateData(accountID string, indexName string, indexValue interface{}) *entity.Account
- type S3Repository
- type S3RepositoryImplementation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountRepository ¶
type AccountRepository interface { GetDataByIndex(indexName string, indexValue interface{}) *entity.Account PutData(account *entity.Account) string UpdateData(accountID string, indexName string, indexValue interface{}) *entity.Account }
interface for account repository
func NewAccountRepository ¶
func NewAccountRepository() AccountRepository
Constructor for AccountRepository
type AccountRepositoryImplementation ¶
type AccountRepositoryImplementation struct {
// contains filtered or unexported fields
}
Class for account repository implementation
func (*AccountRepositoryImplementation) GetDataByIndex ¶
func (repository *AccountRepositoryImplementation) GetDataByIndex(indexName string, indexValue interface{}) *entity.Account
func (*AccountRepositoryImplementation) PutData ¶
func (repository *AccountRepositoryImplementation) PutData(account *entity.Account) string
func (*AccountRepositoryImplementation) UpdateData ¶
func (repository *AccountRepositoryImplementation) UpdateData(accountID string, indexName string, indexValue interface{}) *entity.Account
type S3Repository ¶
func NewS3Repository ¶
func NewS3Repository() S3Repository
type S3RepositoryImplementation ¶
type S3RepositoryImplementation struct {
// contains filtered or unexported fields
}
func (*S3RepositoryImplementation) PutImage ¶
func (repository *S3RepositoryImplementation) PutImage(directory string) string
Click to show internal directories.
Click to hide internal directories.