postgre

package
v0.0.0-...-9e7b3df Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: MIT Imports: 8 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 NewStorage

func NewStorage(logger *slog.Logger, ctx context.Context, client postgre.PostgresClient) *Storage

func (*Storage) App

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

func (*Storage) Delete

func (s *Storage) Delete(ctx context.Context, id int64) error

func (*Storage) IsAdmin

func (s *Storage) IsAdmin(ctx context.Context, id int64) (bool, error)

func (*Storage) Register

func (s *Storage) Register(ctx context.Context, email, password string) (int64, error)

func (*Storage) Update

func (s *Storage) Update(ctx context.Context, id int64, email, password string) 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
JackTT - Gopher 🇻🇳