sqlite

package
v0.0.0-...-71aa9d5 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 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)

New creates a new instance of the SQLite storage.

func (*Storage) App

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

func (*Storage) IsAdmin

func (s *Storage) IsAdmin(ctx context.Context, userID int) (bool, error)

func (*Storage) SaveUser

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

func (*Storage) User

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

Jump to

Keyboard shortcuts

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