postgres

package
v0.0.0-...-be43ff6 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2015 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

func New

func New(h hash.Hasher, db *sql.DB) *Store

func (*Store) Authenticate

func (s *Store) Authenticate(username, password string) (account.Account, error)

func (*Store) Create

func (*Store) CreateSchemas

func (s *Store) CreateSchemas() error

func (*Store) Delete

func (s *Store) Delete(id string) (err error)

func (*Store) Get

func (s *Store) Get(id string) (account.Account, error)

func (*Store) UpdateData

func (s *Store) UpdateData(id string, r account.UpdateDataRequest) (acc account.Account, err error)

func (*Store) UpdatePassword

func (s *Store) UpdatePassword(id string, r account.UpdatePasswordRequest) (acc account.Account, err error)

func (*Store) UpdateUsername

func (s *Store) UpdateUsername(id string, r account.UpdateUsernameRequest) (acc account.Account, err error)

Jump to

Keyboard shortcuts

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