Documentation ¶
Index ¶
- Variables
- type Postgres
- func (pg *Postgres) AccountAuthenticity(ctx context.Context, number int64, encPass string) error
- func (pg *Postgres) CreateAccount(ctx context.Context, acc *entity.Account) (int64, error)
- func (pg *Postgres) CreateAccountTable() error
- func (pg *Postgres) DeleteAccount(ctx context.Context, number int64) error
- func (pg *Postgres) GetAccountByNumber(ctx context.Context, number int64) (*entity.Account, error)
- func (pg *Postgres) Init() error
- func (pg *Postgres) TransferAmount(ctx context.Context, from, to, amount int64) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrTableCreation = errors.New("table creation failed")
)
Functions ¶
This section is empty.
Types ¶
type Postgres ¶
type Postgres struct {
// contains filtered or unexported fields
}
func NewPostgres ¶
func (*Postgres) AccountAuthenticity ¶
func (*Postgres) CreateAccount ¶
func (*Postgres) CreateAccountTable ¶
func (*Postgres) DeleteAccount ¶
func (*Postgres) GetAccountByNumber ¶
Click to show internal directories.
Click to hide internal directories.