sqliterepo

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSqliteRepository

func NewSqliteRepository(db *gorm.DB) (repository.UserRepository, error)

Types

type Sqlite

type Sqlite struct {
	repository.UserRepository
	// contains filtered or unexported fields
}

func (*Sqlite) Create

func (r *Sqlite) Create(c context.Context, user repository.UserModel) error

func (*Sqlite) CreateManifest

func (r *Sqlite) CreateManifest(c context.Context, manifest repository.ManifestModel) error

func (*Sqlite) Get

func (*Sqlite) GetByAddress

func (r *Sqlite) GetByAddress(c context.Context, address string) (repository.UserModel, error)

func (*Sqlite) GetByEmail

func (r *Sqlite) GetByEmail(c context.Context, email string) (repository.UserModel, error)

func (*Sqlite) GetManifests

func (r *Sqlite) GetManifests(c context.Context, userId string) ([]repository.ManifestModel, error)

func (*Sqlite) Migrate

func (r *Sqlite) Migrate() error

func (*Sqlite) NewLogin

func (r *Sqlite) NewLogin(c context.Context, id string, nonce string) error

Jump to

Keyboard shortcuts

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