Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrClientNotExist = fmt.Errorf("client not exists")
View Source
var ErrLimitExceeded = fmt.Errorf("client does not have sufficient limit")
Functions ¶
Types ¶
type Repository ¶
type Repository interface { SaveTransaction(ctx context.Context, clientID int, data *entity.TransactionInput) (*entity.TransactionOutput, error) GetUserStatement(ctx context.Context, clientID int) (*entity.StatementOutput, error) }
func NewMysqlRepository ¶
func NewMysqlRepository(dbUser, dbPass, dbName, dbAddress string) (Repository, error)
Click to show internal directories.
Click to hide internal directories.