Documentation ¶
Index ¶
- type AccountRepository
- type AccountRepositoryImplementation
- func (repository *AccountRepositoryImplementation) GetDataByIndex(indexName string, indexValue interface{}) *domain.Account
- func (repository *AccountRepositoryImplementation) PutData(account *domain.Account)
- func (repository *AccountRepositoryImplementation) UpdateData(accountID primitive.ObjectID, indexName string, indexValue interface{}) *domain.Account
- type MenfessPostRepository
- type MenfessPostRepositoryImplementation
- func (repository *MenfessPostRepositoryImplementation) GetDataByIndex(indexName string, indexValue interface{}) *domain.MenfessPost
- func (repository *MenfessPostRepositoryImplementation) GetDataList(limit int32, after primitive.ObjectID) []*domain.MenfessPost
- func (repository *MenfessPostRepositoryImplementation) GetDataListByIndex(indexName string, indexValue interface{}, limit int32, ...) []*domain.MenfessPost
- func (repository *MenfessPostRepositoryImplementation) PutData(post *domain.MenfessPost)
- type S3Repository
- type ShareAccountRepository
- type SharePostRepository
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{}) *domain.Account PutData(account *domain.Account) UpdateData(accountID primitive.ObjectID, indexName string, indexValue interface{}) *domain.Account }
AccountRepository is an interface for account repository
func NewAccountRepository ¶
func NewAccountRepository() AccountRepository
NewAccountRepository is Constructor for AccountRepository
type AccountRepositoryImplementation ¶
type AccountRepositoryImplementation struct {
// contains filtered or unexported fields
}
AccountRepositoryImplementation is Class for account repository implementation
func (*AccountRepositoryImplementation) GetDataByIndex ¶
func (repository *AccountRepositoryImplementation) GetDataByIndex(indexName string, indexValue interface{}) *domain.Account
GetDataByIndex is query for getting data list
func (*AccountRepositoryImplementation) PutData ¶
func (repository *AccountRepositoryImplementation) PutData(account *domain.Account)
PutData put
func (*AccountRepositoryImplementation) UpdateData ¶
func (repository *AccountRepositoryImplementation) UpdateData(accountID primitive.ObjectID, indexName string, indexValue interface{}) *domain.Account
UpdateData update
type MenfessPostRepository ¶
type MenfessPostRepository interface { GetDataByIndex(indexName string, indexValue interface{}) *domain.MenfessPost GetDataList(limit int32, after primitive.ObjectID) []*domain.MenfessPost GetDataListByIndex(indexName string, indexValue interface{}, limit int32, after primitive.ObjectID, sort int32) []*domain.MenfessPost PutData(account *domain.MenfessPost) }
MenfessPostRepository interface
func NewMenfessPostRepository ¶
func NewMenfessPostRepository() MenfessPostRepository
NewMenfessPostRepository constructor with singleton client
type MenfessPostRepositoryImplementation ¶
type MenfessPostRepositoryImplementation struct {
// contains filtered or unexported fields
}
MenfessPostRepositoryImplementation implement
func (*MenfessPostRepositoryImplementation) GetDataByIndex ¶
func (repository *MenfessPostRepositoryImplementation) GetDataByIndex(indexName string, indexValue interface{}) *domain.MenfessPost
GetDataByIndex Get
func (*MenfessPostRepositoryImplementation) GetDataList ¶
func (repository *MenfessPostRepositoryImplementation) GetDataList(limit int32, after primitive.ObjectID) []*domain.MenfessPost
GetDataList get
func (*MenfessPostRepositoryImplementation) GetDataListByIndex ¶
func (repository *MenfessPostRepositoryImplementation) GetDataListByIndex(indexName string, indexValue interface{}, limit int32, after primitive.ObjectID, sort int32) []*domain.MenfessPost
GetDataListByIndex get
func (*MenfessPostRepositoryImplementation) PutData ¶
func (repository *MenfessPostRepositoryImplementation) PutData(post *domain.MenfessPost)
PutData put
type S3Repository ¶
S3Repository interface
type ShareAccountRepository ¶
type ShareAccountRepository interface {}
ShareAccountRepository interface
func NewShareAccountRepository ¶
func NewShareAccountRepository() ShareAccountRepository
NewShareAccountRepository constructor
type SharePostRepository ¶
type SharePostRepository interface {}
SharePostRepository interface
func NewSharePostRepository ¶
func NewSharePostRepository() SharePostRepository
NewSharePostRepository constructor