Documentation ¶
Index ¶
- func BuscarSaldo(mySql *MySqlExtratoStore, idCliente string) (*types.Saldo, error)
- func BuscarTransacoes(mySql *MySqlExtratoStore, idCliente string) ([]*types.Transacao, error)
- func Init() *sql.DB
- type AppError
- type Cliente
- type Extrato
- type ExtratoStore
- type MySqlExtratoStore
- type MySqlTransacaoStore
- type TransacaoStore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuscarSaldo ¶
func BuscarSaldo(mySql *MySqlExtratoStore, idCliente string) (*types.Saldo, error)
func BuscarTransacoes ¶
func BuscarTransacoes(mySql *MySqlExtratoStore, idCliente string) ([]*types.Transacao, error)
Types ¶
type ExtratoStore ¶
type MySqlExtratoStore ¶
type MySqlExtratoStore struct {
// contains filtered or unexported fields
}
func NewMySqlExtratoStore ¶
func NewMySqlExtratoStore(db *sql.DB) *MySqlExtratoStore
func (*MySqlExtratoStore) BuscarExtrato ¶
func (mySql *MySqlExtratoStore) BuscarExtrato(idCliente string) (*Extrato, error)
type MySqlTransacaoStore ¶
type MySqlTransacaoStore struct {
// contains filtered or unexported fields
}
func NewMySqlTransacaoStore ¶
func NewMySqlTransacaoStore(db *sql.DB) *MySqlTransacaoStore
func (*MySqlTransacaoStore) RealizaTransacao ¶
func (mySql *MySqlTransacaoStore) RealizaTransacao(transacaoInput types.TransacaoInput) (*types.TransacaoResponse, error)
type TransacaoStore ¶
type TransacaoStore interface {
RealizaTransacao(types.TransacaoInput) (*types.TransacaoResponse, error)
}
Click to show internal directories.
Click to hide internal directories.