repository

package
v0.0.0-...-a594eb7 Latest Latest
Warning

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

Go to latest
Published: May 30, 2020 License: MIT Imports: 9 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{}) *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

type S3Repository interface {
	PutImage(directory string) string
}

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

Jump to

Keyboard shortcuts

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