sqlite

package
v0.0.0-...-b48969e Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

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

func New

func New(storagePath string) (*Storage, error)

Конструктор Storage

func (*Storage) App

func (s *Storage) App(ctx context.Context, id int) (models.App, error)

App returns app by id.

func (*Storage) SaveUser

func (s *Storage) SaveUser(ctx context.Context, email string, passHash []byte) (int64, error)

SaveUser saves user to db.

func (*Storage) User

func (s *Storage) User(ctx context.Context, email string) (models.User, error)

User returns user by email.

Jump to

Keyboard shortcuts

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