store

package
v0.0.0-...-d832ec4 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DatabaseURL string `toml:"database_url"`
}

func NewConfig

func NewConfig() *Config

type Store

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

func New

func New(config *Config) *Store

func TestStore

func TestStore(t *testing.T, databaseURL string) (*Store, func(...string))

func (*Store) Close

func (s *Store) Close()

func (*Store) Open

func (s *Store) Open() error

func (*Store) User

func (s *Store) User() *UserRepository

type UserRepository

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

func (*UserRepository) Create

func (r *UserRepository) Create(u *model.User) (*model.User, error)

func (*UserRepository) FindByEmail

func (r *UserRepository) FindByEmail(email string) (*model.User, error)

Jump to

Keyboard shortcuts

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