repo

package
v0.0.0-...-75f25d5 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repo

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

Repo репозиторий для уведомлений.

func New

func New(pg storage.SQLDatabase) *Repo

New создает новый Repo.

func (*Repo) CheckNotification

func (r *Repo) CheckNotification(ctx context.Context, params model.NotificationDao) (bool, error)

CheckNotification проверяет наличие уведомления.

func (*Repo) DeleteOne

func (r *Repo) DeleteOne(ctx context.Context, email string) error

DeleteOne удаляет уведомление.

func (*Repo) GetEmailByUsername

func (r *Repo) GetEmailByUsername(ctx context.Context, username string) (string, error)

GetEmailByUsername возвращает email по username.

func (*Repo) InsertOne

func (r *Repo) InsertOne(ctx context.Context, params model.NotificationDao) error

InsertOne добавляет новое уведомление.

Jump to

Keyboard shortcuts

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