accountrepo

package
v0.0.0-...-bac0e4b Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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