Documentation ¶
Index ¶
- Variables
- type MemoRepo
- type MemoRepoDynamoDB
- func (m *MemoRepoDynamoDB) Add(memo *entity.Memo) (string, error)
- func (m *MemoRepoDynamoDB) Delete(id string) error
- func (m *MemoRepoDynamoDB) GetByDateRange(start, end, userId string) ([]entity.Memo, error)
- func (m *MemoRepoDynamoDB) GetById(id string) (*entity.Memo, error)
- func (m *MemoRepoDynamoDB) GetByUserId(userId string) ([]entity.Memo, error)
- func (m *MemoRepoDynamoDB) Update(memo entity.Memo) error
- type MemoRepoMongoDB
- func (repo *MemoRepoMongoDB) Add(memo *entity.Memo) (string, error)
- func (repo *MemoRepoMongoDB) Delete(id string) error
- func (repo *MemoRepoMongoDB) GetByDateRange(start, end, userId string) ([]entity.Memo, error)
- func (repo *MemoRepoMongoDB) GetById(id string) (*entity.Memo, error)
- func (repo *MemoRepoMongoDB) GetByUserId(userId string) ([]entity.Memo, error)
- func (repo *MemoRepoMongoDB) Update(memo entity.Memo) error
Constants ¶
This section is empty.
Variables ¶
View Source
var MongoRepoSet = wire.NewSet(ProvideMemoRepoMongoDB, wire.Bind(new(MemoRepo), new(*MemoRepoMongoDB)))
View Source
var RepoSet = wire.NewSet(ProvideMemoRepoDynamoDB, wire.Bind(new(MemoRepo), new(*MemoRepoDynamoDB)))
Functions ¶
This section is empty.
Types ¶
type MemoRepoDynamoDB ¶
func ProvideMemoRepoDynamoDB ¶
func ProvideMemoRepoDynamoDB(awsService *config.AWSService) *MemoRepoDynamoDB
func (*MemoRepoDynamoDB) Delete ¶
func (m *MemoRepoDynamoDB) Delete(id string) error
func (*MemoRepoDynamoDB) GetByDateRange ¶
func (m *MemoRepoDynamoDB) GetByDateRange(start, end, userId string) ([]entity.Memo, error)
func (*MemoRepoDynamoDB) GetById ¶
func (m *MemoRepoDynamoDB) GetById(id string) (*entity.Memo, error)
func (*MemoRepoDynamoDB) GetByUserId ¶
func (m *MemoRepoDynamoDB) GetByUserId(userId string) ([]entity.Memo, error)
type MemoRepoMongoDB ¶
type MemoRepoMongoDB struct { ClientOptions *options.ClientOptions // contains filtered or unexported fields }
func ProvideMemoRepoMongoDB ¶
func ProvideMemoRepoMongoDB(awsService *aws.AWSService) *MemoRepoMongoDB
func (*MemoRepoMongoDB) Delete ¶
func (repo *MemoRepoMongoDB) Delete(id string) error
func (*MemoRepoMongoDB) GetByDateRange ¶
func (repo *MemoRepoMongoDB) GetByDateRange(start, end, userId string) ([]entity.Memo, error)
func (*MemoRepoMongoDB) GetById ¶
func (repo *MemoRepoMongoDB) GetById(id string) (*entity.Memo, error)
func (*MemoRepoMongoDB) GetByUserId ¶
func (repo *MemoRepoMongoDB) GetByUserId(userId string) ([]entity.Memo, error)
Click to show internal directories.
Click to hide internal directories.