repository

package
v0.0.0-...-b03bd75 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 13, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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

type S3Repository interface {
	PutImage(directory string) string
}

S3Repository interface

func NewS3Repository

func NewS3Repository() S3Repository

NewS3Repository constructor

type ShareAccountRepository

type ShareAccountRepository interface {
	GetDataByIndex(indexName string, indexValue interface{}) *domain.ShareAccount
	PutData(account *domain.ShareAccount)
	UpdateData(accountID primitive.ObjectID, indexName string, indexValue interface{}) *domain.ShareAccount
}

ShareAccountRepository interface

func NewShareAccountRepository

func NewShareAccountRepository() ShareAccountRepository

NewShareAccountRepository constructor

type SharePostRepository

type SharePostRepository interface {
	GetDataByIndex(indexName string, indexValue interface{}) *domain.SharePost
	PutData(account *domain.SharePost)
	GetDataList() []*domain.SharePost
}

SharePostRepository interface

func NewSharePostRepository

func NewSharePostRepository() SharePostRepository

NewSharePostRepository constructor

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL