accountrepo

package
v0.0.0-...-64b4b4f Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrConversion = errors.New("cant typecast string account id to int")
)

Functions

This section is empty.

Types

type Postgres

type Postgres struct {
	// contains filtered or unexported fields
}

func New

func New(conn *sql.DB) *Postgres

func (*Postgres) CreateAccount

func (p *Postgres) CreateAccount(cred account.Credentials) (account.Account, error)

func (*Postgres) GetAccountById

func (p *Postgres) GetAccountById(id string) (account.Account, error)

func (*Postgres) GetAccountByLogin

func (p *Postgres) GetAccountByLogin(login string) (account.Account, error)

Jump to

Keyboard shortcuts

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